You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Rakesh A (JIRA)" <ji...@apache.org> on 2016/09/26 06:53:21 UTC

[jira] [Created] (WICKET-6248) Issue with modal dialog cookie when CryptoMapper & mounted page recreation is disabled

Rakesh A created WICKET-6248:
--------------------------------

             Summary: Issue with modal dialog cookie when CryptoMapper & mounted page recreation is disabled
                 Key: WICKET-6248
                 URL: https://issues.apache.org/jira/browse/WICKET-6248
             Project: Wicket
          Issue Type: Bug
          Components: wicket-extensions
    Affects Versions: 6.24.0
            Reporter: Rakesh A


ModalWindow position/dimension cookie, is not sent (on close) for mounted pages. This seems to be due to the 'path' value of cookie being set to mount path. Please find the details about reproduction scenario below

1. Enable CryptoMapper
2. Set mounted page recreation after expiry to false (getPageSettings().setRecreateMountedPagesAfterExpiry(false);)
3. Mount a page with more than one mount path segments (or path parameter)

With #1 and #2 - encrypted URLs for ajax calls will not have page mount segments in it and will look like - /<context>/<encrypted>
But the page itself has URL like - /<context>/<segment1>/<segment2>, in this case when we use 'document.cookie', to set a cookie, 'path' value for this cookie will have mount segments in it.

Please find the attached quick start to reproduce this issue.
Try accessing URL '<domain>:<port>/<context>/modal-ex/my-page/01' 




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)