Bug 818751 - cannot deploy a bundle with config whose previous deployment didn't have any config
Summary: cannot deploy a bundle with config whose previous deployment didn't have any ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHQ 4.5.0
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 820333 828843
TreeView+ depends on / blocked
 
Reported: 2012-05-03 20:42 UTC by John Mazzitelli
Modified: 2013-09-01 10:00 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
: 820333 (view as bug list)
Environment:
Last Closed: 2013-09-01 10:00:24 UTC
Embargoed:


Attachments (Terms of Use)
first bundle version - small-v1.jar (594 bytes, application/x-java-archive)
2012-05-03 20:43 UTC, John Mazzitelli
no flags Details
second bundle version - small-v2.zip (648 bytes, application/zip)
2012-05-03 20:44 UTC, John Mazzitelli
no flags Details
bug818751.patch (2.44 KB, patch)
2012-05-04 18:43 UTC, John Mazzitelli
no flags Details | Diff

Description John Mazzitelli 2012-05-03 20:42:50 UTC
Create two bundle distro files - the first version has no input property configurations and second version has input properties in its configuration (where the properties have required="true").

Deploy the first bundle version. Then immediately deploy the second bundle version.

The second deployment fails with this that shows in the wizard error area:

Failed to create deployment: java.lang.RuntimeException:[1336077634224] javax.ejb.EJBException:java.lang.IllegalArgumentException: Invalid Configuration: [Required property 'name' has a null value in Configuration[id=0].] -> java.lang.IllegalArgumentException:Invalid Configuration: [Required property 'name' has a null value in Configuration[id=0].]

Comment 1 John Mazzitelli 2012-05-03 20:43:46 UTC
Created attachment 581959 [details]
first bundle version - small-v1.jar

Comment 2 John Mazzitelli 2012-05-03 20:44:44 UTC
Created attachment 581960 [details]
second bundle version - small-v2.zip

Comment 3 John Mazzitelli 2012-05-04 18:43:32 UTC
Created attachment 582186 [details]
bug818751.patch

this is the patch that I will apply to master. not committing yet since we are in the middle of producing a release

Comment 4 John Mazzitelli 2012-05-08 16:08:26 UTC
git commit to master: 184dabf

Comment 6 Heiko W. Rupp 2013-09-01 10:00:24 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.


Note You need to log in before you can comment on or make changes to this bug.