Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-9210

Cancel on close all tabs dialog doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: CMS-10.0-alpha-1, 2.28.00, 2.28.02
    • Fix Version/s: CMS-10.0-GA, 2.28.03
    • Component/s: None
    • Labels:
    • Similar issues:
    • Story Points:
      1
    • Sprint:
      Tiger Sprint 107

      Description

      When a document cannot be saved due to validation errors, the close all tabs dialog stops working. Here is the reproduction path, from the forum.

      I could reproduce it against the 10.0-alpha tag.

      We could reproduce this behaviour:

      1.) hippo project:
      mvn archetype:generate \
      -DarchetypeGroupId=org.onehippo.cms7 \
      -DarchetypeArtifactId=hippo-project-archetype \
      -DarchetypeVersion=2.00.05 \
      -DarchetypeRepository=http://maven.onehippo.com/maven2

      in cms:
      2.) create a document that contains a required field but leave the required field empty (= invalid)

      3.) right click on the document's tab and choose "Close All"
      -> the "Close all tabs" window opens

      4.) click "Save All" (which of course leads to an error, since the document is not valid)

      5.) now click "Cancel" (to get back to your document) /"Discard All"
      -> nothing happens
      -> only way to close the window is by click on "X"

      6.) error log:
      "Cancel button:"
      [INFO] [talledLocalContainer] 27.04.2015 10:01:11 ERROR http-bio-8080-exec-5 [DefaultExceptionMapper.internalMap:129] Unexpected error occurred
      [INFO] [talledLocalContainer] org.apache.wicket.WicketRuntimeException: Component 'dialog:content:form:buttons:3:button' has been removed from page.
      "Discard All" button:
      [INFO] [talledLocalContainer] 27.04.2015 10:02:05 ERROR http-bio-8080-exec-8 [DefaultExceptionMapper.internalMap:129] Unexpected error occurred
      [INFO] [talledLocalContainer] org.apache.wicket.WicketRuntimeException: Component 'dialog:content:form:buttons:1:button' has been removed from page.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pgupta Pankaj Gupta (Inactive)
                Reporter:
                bleunis Bert Leunis (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: