Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 849192

Summary: Breaking changes to AS5 Plugin -- This can break other plugins that depend on the AS5 plugin
Product: [JBoss] JBoss Operations Network Reporter: Stefan Negrea <snegrea>
Component: Plugin -- OtherAssignee: Stefan Negrea <snegrea>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: JON 3.1.0CC: jsanda, mfoley, snegrea
Target Milestone: ---   
Target Release: JON 3.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 848800 Environment:
Last Closed: 2013-09-11 11:01:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 848800    
Bug Blocks:    

Description Stefan Negrea 2012-08-17 16:16:36 UTC
+++ This bug was initially created as a clone of Bug #848800 +++

Description of problem:


jopr-jboss-as-5-plugin-4.4.0.JON311-SNAPSHOT.signature-check.xml

<?xml version="1.0"?>
<diffreport>
  <difference binseverity="ERROR" srcseverity="ERROR" 
class="org.rhq.plugins.jbossas5.Ejb2BeanComponent" method="protected 
org.jboss.managed.api.ManagedComponent getManagedComponent()">In method 
'protected org.jboss.managed.api.ManagedComponent getManagedComponent()' the 
number of arguments has changed</difference>
  <difference binseverity="ERROR" srcseverity="ERROR" 
class="org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate" 
method="public 
CreateChildResourceFacetDelegate(org.rhq.plugins.jbossas5.ProfileServiceComponent)">In 
method 'public 
CreateChildResourceFacetDelegate(org.rhq.plugins.jbossas5.ProfileServiceComponent)' 
the number of arguments has changed</difference>
</diffreport>

These should be fixed just in case the plugins that depend on AS5 plugin use
these methods.

--- Additional comment from snegrea on 2012-08-17 09:50:03 EDT ---

<difference binseverity="ERROR" srcseverity="ERROR" 
class="org.rhq.plugins.jbossas5.Ejb2BeanComponent" method="protected 
org.jboss.managed.api.ManagedComponent getManagedComponent()">In method 
'protected org.jboss.managed.api.ManagedComponent getManagedComponent()' the 
number of arguments has changed</difference>

This difference is due to fixes applied for bug 835113. The old method signature cannot be added back because it would re-introduce the problem fixed by bug 835113. 

This method is just protected so it is not visible (or available for use) outside of inheriting classes. Also, this method is just an override for a base method from ManagedComponentComponent. The base class, ManagedComponentComponent, still has both methods available for use. The fix for bug 835113 had the Ejb2BeanComponent override a different base method. 


Based on this, no action to be taken for this difference.

--- Additional comment from snegrea on 2012-08-17 12:16:02 EDT ---

<difference binseverity="ERROR" srcseverity="ERROR" 
class="org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate" 
method="public CreateChildResourceFacetDelegate(org.rhq.plugins.jbossas5.ProfileServiceComponent)">In method 'public CreateChildResourceFacetDelegate(org.rhq.plugins.jbossas5.ProfileServiceComponent)' the number of arguments has changed</difference>

Added back the old constructor and marked it as deprecated. The old constructor is not used by RHQ code. If external plugins make use of this constructor, the only downside is the SHA256 computation for exploded content. The SHA256 will not be calculated based on the unexploded content but rather on the exploded files on disk. And this calculation will be done by the content discovery process rather than the deployment process (done in normal circumstances).

Comment 1 Stefan Negrea 2012-08-17 16:22:57 UTC
<difference binseverity="ERROR" srcseverity="ERROR" 
class="org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate" 
method="public CreateChildResourceFacetDelegate(org.rhq.plugins.jbossas5.ProfileServiceComponent)">In method 'public CreateChildResourceFacetDelegate(org.rhq.plugins.jbossas5.ProfileServiceComponent)' the number of arguments has changed</difference>


release/jon3.1.x branch commit to fix the difference above:

http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?h=release/jon3.1.x&id=2e4713e24ff482c937eabeefe7eb690461c479a6

Comment 2 John Sanda 2012-08-22 05:46:12 UTC
Moving to ON_QA. The JON 3.1.1 ER3 build is available at https://brewweb.devel.redhat.com/buildinfo?buildID=230321.

Comment 3 Mike Foley 2012-08-31 18:41:40 UTC
verification by soa team testing with jon 3.1.1