Bug 605336 - bundle deploy wizard "previous" button support is broken
Summary: bundle deploy wizard "previous" button support is broken
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Provisioning
Version: 3.0.0
Hardware: All
OS: All
urgent
medium
Target Milestone: ---
: ---
Assignee: Jay Shaughnessy
QA Contact: Sunil Kondkar
URL:
Whiteboard:
Depends On:
Blocks: jon24-provisioning
TreeView+ depends on / blocked
 
Reported: 2010-06-17 16:37 UTC by John Mazzitelli
Modified: 2010-08-12 16:47 UTC (History)
0 users

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-12 16:47:09 UTC
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2010-06-17 16:37:11 UTC
go to the deploy wizard, enter the destination info, get to the next step, hit the previous button, hit the next button, get this error:

org.hibernate.exception.ConstraintViolationException:Could not execute JDBC batch update -> java.sql.BatchUpdateException:Batch entry 0 insert into RHQ_BUNDLE_DESTINATION (NAME, DESCRIPTION, DEPLOY_DIR, CTIME, MTIME, BUNDLE_ID, GROUP_ID, ID) values ('home', NULL, '/home/mazz/tmp/deleteme', '1276792430528', '1276792430528', '10001', '10001', '10002') was aborted. Call getNextException to see the cause.[SQLException=Batch entry 0 insert into RHQ_BUNDLE_DESTINATION (NAME, DESCRIPTION, DEPLOY_DIR, CTIME, MTIME, BUNDLE_ID, GROUP_ID, ID) values ('home', NULL, '/home/mazz/tmp/deleteme', '1276792430528', '1276792430528', '10001', '10001', '10002') was aborted. Call getNextException to see the cause. -> ERROR: duplicate key value violates unique constraint "rhq_bundle_destination_unique"(error-code=0,sql-state=23505)]

the wizard should know that it already created the destination and should not try to create it again. note that since it seems the destination is created on "next" and not at the end on "finish", the "cancel" button needs to ensure that it deletes the destination if one was created.

we need to test the previous button on each step and make sure that it can be cleaned up after a cancel as well as being able to finish if the steps go on to full completion.

Comment 1 Jay Shaughnessy 2010-06-21 18:58:55 UTC
fix commit: e24f75a56fa6dabe7ee32216dd5d27b83c1e8834

allow repeated execution of the get destination step.

Comment 2 Sunil Kondkar 2010-06-29 11:36:37 UTC
Verified on JON 2.4 GA_QA build

On deploy wizard clicked on 'Previous' and 'Next' buttons as well as on 'Cancel' button on each step. Also verified that clicking on 'Finish' button completes the deployment.
No exception is observed.

Comment 3 Corey Welton 2010-08-12 16:47:09 UTC
Mass-closure of verified bugs against JON.


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