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

wicket-autocomplete.js not CSP compliant

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.6.0
    • None
    • wicket-extensions
    • None

    Description

      While upgrading from wicket 8 to 9.6 we are trying to implement CSP. We also use the autocompletebehavior. This in turn call wicket-autocomplete.js (wicket-extensions\src\main\java\org\apache\wicket\extensions\ajax\markup\html\autocomplete).

      This js file contains "handleSelection" function trying to "eval(attr.value)" throwing a CSP 'unsafe-eval' exception.

      So the autocomplete textfield will display choices, but won't handle user selection.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            alfortin Alexandre

            Dates

              Created:
              Updated:

              Slack

                Issue deployment