This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 212165 - Deactivating "Software as a Service" plugin requires deactivating PHP, PHP Zend Framework, and possibly other plugins.
Summary: Deactivating "Software as a Service" plugin requires deactivating PHP, PHP Ze...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-07 19:18 UTC by BullfrogBlues
Modified: 2013-02-22 07:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BullfrogBlues 2012-05-07 19:18:56 UTC
Deactivating the "Software as a Service [1.13.1]" prompts with message:

"The following plugins need to be deactivated because they require one or more of the plugins you are about to deactivate:

    PHP [1.27.2]
    PHP Zend Framework [1.9.1]"


Expected: To be able to deactivate the "Software as a Service" without deactivating any other plugins.

Product Version: NetBeans IDE 7.1 (Build 201112071828)


PS: no idea what component this is for, not even sure I selected the correct product. The bug report form should probably have a "Haven't a clue" category. it's very difficult to know sometimes.
Comment 1 Denis Anisimov 2012-05-10 05:46:10 UTC
PHP has a dependency to SaaS modules. So PHP will no work without SaaS.
So this is not a bug.
Anyway this issue is PHP related: it has a dep to SaaS.
Comment 2 BullfrogBlues 2012-05-10 13:23:25 UTC
The plugin description for SaS says:

"Provides support for consuming numerous services exposed on the web, including services from Google, Amazon, Facebook, Flicker, Twitter and others"

How is PHP dependent on this? In what way is it dependent.
Comment 3 Tomas Mysik 2012-05-10 13:39:52 UTC
No idea, sorry. Perhaps Denis would know?

Thanks.
Comment 4 Denis Anisimov 2012-05-10 13:47:17 UTC
(In reply to comment #3)
> No idea, sorry. Perhaps Denis would know?
> 
> Thanks.

There is a possibility to generate client code ( to invoke WS ) for PHP 
( DnD WS method to PHP code ).
I don't know whether there are other usages.
Really it is not SaaS or WS issue: the issue means some PHP modules has some
dependency on SaaS modules. I don't know exact dependencies. PHP is not my area.
( Mentioned usecase actually doesn't require dep from PHP to SaaS. There is a SaaS codegen module that generate corresponing PHP code ). Please review PHP deps 
and find the SaaS deps in PHP. Probably the dep could be reverted or other module
could be created that will eliminate dep.
Comment 5 BullfrogBlues 2012-05-11 17:49:12 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > No idea, sorry. Perhaps Denis would know?
> > 
> > Thanks.
> 
> There is a possibility to generate client code ( to invoke WS ) for PHP 
> ( DnD WS method to PHP code ).
> I don't know whether there are other usages.
> Really it is not SaaS or WS issue: the issue means some PHP modules has some
> dependency on SaaS modules. I don't know exact dependencies. PHP is not my
> area.
> ( Mentioned usecase actually doesn't require dep from PHP to SaaS. There is a
> SaaS codegen module that generate corresponing PHP code ). Please review PHP
> deps 
> and find the SaaS deps in PHP. Probably the dep could be reverted or other
> module
> could be created that will eliminate dep.

What you say must be true: something within the PHP plugin has dependency on SaS, because you can deactivate PHP and SaS will not be deactivated, but you can't deactivate SaS without PHP being deactivated.


Whatever the dep. is it should be elimated and if a feature can't work without the dependency then disable the feature.

Note: It is different when a plugin is *useless* or *absolutley* dependent on another plugin. e.g. Deactivating the PHP plugin deactivates the PHP Zend framework: that's ok, because the Zend Framework plugin is completley useless/redundant if you deactivate the PHP plugin. The same is not true when deactivating the SaS plugin, the PHP plugin should still be able to function, possibly with less features, but still work nonetheless.

Arcitecture Improvement: Maybe if a plugin is absolutley dependent on another plugin it can be part of the plugin description or *metadata* in some way:

Plugin: PHP Zend Framework (Requires: PHP > 1.1.2, Whatever > 2.0.1)
Comment 6 BullfrogBlues 2012-06-16 18:52:38 UTC
Before I reopen this, why was this resolved as Invalid? You should be able to deactivate the Software as Service without deactivating the PHP plugin.

Sure, "PHP has a dependency to SaaS modules" but that doesn't make this bug report invalid.
Comment 7 Tomas Mysik 2012-07-26 04:36:05 UTC
Should be fixed now, I hope. Please verify. Thanks.

http://hg.netbeans.org/web-main/rev/d9dd4fc1f3da
Comment 8 Tomas Mysik 2012-07-26 05:52:20 UTC
Reopening, commit validation fails with message [1]. I am going to backout the change.

[1] Some regular modules (that no one depends on) neither AutoUpdate-Show-In-Client=true nor AutoUpdate-Essential-Module=true (thus unreachable through Plugin Manager)
org.netbeans.modules.websvc.saas.codegen.php
Comment 9 Tomas Mysik 2012-07-26 05:56:57 UTC
Fix reverted, I will need to discuss the correct fix with some module dependencies expert.

http://hg.netbeans.org/web-main/rev/816c7310876f
Comment 10 Quality Engineering 2012-07-27 02:27:03 UTC
Integrated into 'main-golden', will be available in build *201207270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d9dd4fc1f3da
User: Tomas Mysik <tmysik@netbeans.org>
Log: #212165 - Deactivating "Software as a Service" plugin requires deactivating PHP, PHP Zend Framework, and possibly other plugins.
Comment 11 Tomas Mysik 2012-10-09 12:11:37 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/c429bc1c016e
Comment 12 Quality Engineering 2012-10-10 03:03:32 UTC
Integrated into 'main-golden', will be available in build *201210100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c429bc1c016e
User: Tomas Mysik <tmysik@netbeans.org>
Log: #212165 - Deactivating "Software as a Service" plugin requires deactivating PHP, PHP Zend Framework, and possibly other plugins.
Comment 13 BullfrogBlues 2013-02-22 07:19:16 UTC
This has been renamed "Service Registry" in 7.3, Yes?

The dependecies issues with PHP and PHP Zend Framework are fixed, kudos, however, now in 7.3 it can't be disabled. http://netbeans.org/bugzilla/show_bug.cgi?id=226500