Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-4642

CLONE - Admincentral fails to start when JSESSIONID present in URI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.0
    • None
    • admincentral
    • None

      Same cause same effects as MGNLUI-2291 in Magnolia 5.0; I'd like to revisit this now for the 6.0 admincentral. In particular, Vaadin won't work without cookies anyway, so we could consider disabling the URL tracking method on servlet side—and or amend the login redirect and make the assumption there to skip the rewrite.

      I'll time-box that or revive Tobias's fix if it doesn't prove successful.

      Cloned description:

      Vaadin requires cookies to work and does not expect JSESSIONID to be present in the URI. When it is things break.

      We used to have a problem where logging in would result in a 404, this was fixed in MAGNOLIA-5382 and the request is now correctly routed to the servlet.

      This exposes another problem, a problem this ticket fixes.

      Vaadin fails to start showing an alert about it being unable to load vaadinBootstrap.js. This error message is used irregardless of which resource it fails to load. In our case its actually resources set using @JavaScript and @StyleSheet. The reason is that the client appends the resource name to location.href. Location.href contains the JSESSIONID so the URI ends up being /.magnolia/admincentral;JSESSIONID=123/APP/PUBLISHED/...

      The client will only use location.href if a 'serviceUrl' has not been sent from the server. It is normally not sent. By modifying AdmincentralVaadinServlet to include a serviceUrl this problem goes away.

        Acceptance criteria

              mgeljic Mikaël Geljić
              mgeljic Mikaël Geljić
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 0.5d Remaining Estimate - 0.5d
                    0.5d
                    Logged:
                    Time Spent - 0.5d Remaining Estimate - 0.5d
                    0.5d