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

ClassCastException in WebRequestCodingStrategy

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

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.2.6
    • 1.2.7
    • wicket
    • None

    Description

      I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.

      Attachments

        Issue Links

        Activity

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

          People

            ehillenius Eelco Hillenius
            atberman Andrew Berman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment