Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4609

Javascript header references without cookies with CryptoMapper not working

    XMLWordPrintableJSON

    Details

      Description

      Preconditions:

      • disabled cookies
      • CryptoMapper enabled (set as root mapper)

      When contributing Javascript (CSS contributions are affected too) to head, URLs are rendered WITHOUT jsessionid. Thus CryptoMapper can't find its key in session when cookies are disabled. This affects wicket-ajax.js contribution in AbstractDefaultAjaxBehavior too! So Wicket is not working at all.

      I found out, that in HeaderResponse#internalRenderJavaScriptReference is line:

      String urlWoSessionId = Strings.stripJSessionId(url);

      which strips session id (that was previously encoded into by HttpServletResponse) from URL explicitly. I wonder WHY? Does the jsessionid parametr in URL break something else?

      internalRenderCSSReference method is affected too.

        Attachments

        1. crypto-demo.tgz
          6 kB
          Martin Tzvetanov Grigorov

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                davesman David Rain
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: