Bug 535215 (RHQ-1935)

Summary: Plugin dependency checking should be more lenient
Product: [Other] RHQ Project Reporter: Jay Shaughnessy <jshaughn>
Component: PluginsAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED NEXTRELEASE QA Contact: Pavel Kralik <pkralik>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: mvecera
Target Milestone: ---Keywords: Improvement
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1935
Whiteboard:
Fixed In Version: 1.2 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jay Shaughnessy 2009-04-06 15:03:00 UTC
If plugin A declares <depends plugin="B" useClasses="false"> and plugin B does not exist then plugin A's deployment fails.  This should be made more lenient as the deployment of A should still be valid and useful.  It may still be able to run independently and may still inject successfully into other, existing plugins.



Comment 1 Charles Crouch 2009-04-20 21:45:52 UTC
So, from greg, one use case for this feature would be 

(4:37:50 PM) ghinkle: i want to be able to inject my plugin into other people's plugins even if i'm not sure the user will have all of them
(4:41:03 PM) ccrouch: but will you really get inject just through the <depends> clause
(4:41:04 PM) ccrouch: ?
(4:41:47 PM) ghinkle: not just through it
(4:41:55 PM) ghinkle: but its needed if you want to inject
(4:42:14 PM) ccrouch: ok, necessary but not sufficient
(4:43:02 PM) ghinkle: e.g. the hibernate plugin could written to work in both jbossas and tomcat
(4:43:08 PM) ghinkle: (and probably should at some point)

Comment 2 Jay Shaughnessy 2009-04-22 15:37:45 UTC
This has been at least partially implemented.  A final solution may be more robust but rev3810 implemented leniency towards missing plugin dependencies and rev3816 prevented invalid deploymentService execution.

Comment 3 Jay Shaughnessy 2009-04-22 15:43:20 UTC
No more work on this defined at this time, so we'll resolve and create new jiras if and when we have more improvement work for plugin dependency

Comment 4 Pavel Kralik 2009-04-23 12:23:53 UTC
A hot-plug test with the Hibernate and JBossAS plugin. The Hibernate plugin registration failed first, but was successful after a while when the JBossAS plugin was registered. rev3819 

Comment 5 Red Hat Bugzilla 2009-11-10 20:49:49 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1935
This bug is related to RHQ-571
This bug is related to RHQ-1205