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.
fix commit: e24f75a56fa6dabe7ee32216dd5d27b83c1e8834 allow repeated execution of the get destination step.
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.
Mass-closure of verified bugs against JON.