Description of problem: A client-side exception is thrown when I click the "Back to List" button after pinning a snapshot to a template. The exception in the javascript console is: (-:-) 2011-11-13 20:48:16,551 [TRACE] RPCTracker success: TrackingRequestCallback[id=131, name=DriftGWTService_Proxy.findDriftDefinitionsByCriteria, age=19] 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919(-:-) 2011-11-13 20:48:16,552 [TRACE] RPCTracker queue depth is 0 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919(-:-) 2011-11-13 20:48:16,555 [ERROR] At [Sun Nov 13 20:48:16 GMT-500 2011] MessageCenter received: Globally uncaught exception 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919(-:-) 2011-11-13 20:48:16,567 [WARN ] Globally uncaught exception 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919java.lang.IndexOutOfBoundsException: 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919Index: 0, Size: 0 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919 at Unknown.at com_google_gwt_core_client_impl_StackTraceCreator$CollectorMoz_$collect__Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorMoz_2Lcom_google_gwt_core_client_JsArrayString_2(Unknown source:0) 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919 at Unknown.at Object.com_google_gwt_core_client_impl_StackTraceCreator$CollectorMoz_collect__Lcom_google_gwt_core_client_JsArrayString_2 [as collect__Lcom_google_gwt_core_client_JsArrayString_2](Unknown source:0) 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919 at Unknown.at com_google_gwt_core_client_impl_StackTraceCreator_createStackTrace__Lcom_google_gwt_core_client_JsArrayString_2(Unknown source:0) 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919 at Unknown.at Object.com_google_gwt_core_client_impl_StackTraceCreator$Collector_fillInStackTrace__Ljava_lang_Throwable_2V [as fillInStackTrace__Ljava_lang_Throwable_2V](Unknown source:0) 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919 at Unknown.at com_google_gwt_core_client_impl_StackTraceCreator_fillInStackTrace__Ljava_lang_Throwable_2V(Unknown source:0) 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919 at Unknown.at Object.java_lang_Throwable_fillInStackTrace__Ljava_lang_Throwable_2 [as fillInStackTrace__Ljava_lang_Throwable_2](Unknown source:0) 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919 at Unknown.at java_lang_Throwable_$$init__Ljava_lang_Throwable_2V(Unknown source:0) 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919 at Unknown.at java_lang_Throwable_$Throwable__Ljava_lang_Throwable_2Ljava_lang_String_2Ljava_lang_Throwable_2(Unknown source:0) 7ABA75261D9DD4BA3331DAB553DCCCD6.cache.html:1919 at Unknown.at java_lang_Exception_$Exception__Ljava_lang_Exception_2Ljava_lang_String_2Ljava_lang_Exception_2(Unknown source:0) Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Create a user defined template. 2. Create a definition from that template. 3. When the initial snapshot is generated, go to the snapshot view. 4. Click the "Pin to Template" button. 5. Once successful completion of the operation is reported, click "Back to List" Actual results: Exception is thrown and a blank definitions view is displayed Expected results: Additional info:
master commit: 77d9e38f36a5401ecb287ffea42335fc5c9e9463 A subtle issue having to do with the fact that pinning can remove existing entities therefore invalidating previous views. A couple of changes to address this and make things, hopefully, more intuitive: - When navigating from the definitions list to the initial snapshot the "Back to List" button now brings you directly back to the defs list. It previously would bring you to the carousel, which was confusing because that's not where you navigated from. - When pinning a snapshot to a template the wizard will, if successful, navigate you back to the definitions list view automatically. This higher level view is guaranteed to be valid, and will reflect any new pinning-related state changes. On cancel or failure the use will remain on the snapshot view.
Verified on latest master build#787 Created a drift definition. Navigated to the initial snapshot. Clicking on "Back to List" button navigates directly back to the definitions list. Clicked on the "Pin to Template" button. Verified that on clicking cancel button, it remains on the snapshot view. On successful completion of the operation, it automatically navigates back to the definitions list view.
moving to ON_DEV so it can go to the JON 3 branch.
release_jon3.x commit 21e1403c8ec12b4c5a665231806b3267dc9f58b1 moving back to on_qa for release branch.
Verified on build#106 (From https://hudson.qa.jboss.com/hudson/view/JON3%20Core/job/rhq-release/106/) Verified that clicking "Back to List" button on the initial snapshot navigates directly back to the definitions list. Verified that on clicking cancel button on the 'Pin Drift Definition Template Wizard', it remains on the snapshot view. On successful completion of the operation, it automatically navigates back to the definitions list view. Marking as verified.
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE
marking VERIFIED JON 3 bugs to CLOSED/CURRENTRELEASE