Wicket
  1. Wicket
  2. WICKET-1648

AbstractRequestTargetUrlCodingStrategy(line 174) throws confusing exception. It would be better redirect to 404-page in this case.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4-M1
    • Fix Version/s: 1.3.5, 1.4-RC1
    • Component/s: wicket
    • Labels:
      None

      Description

      Steps to reproduce:
      When user manually types incorrect URL, this confusing exception will be thrown.

      SEVERE: Internal error for /eshop/profile/p
      java.lang.IllegalStateException: URL fragment has unmatched key/value pair: p
      at org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
      at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
      at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:476)
      at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)

        Activity

        Andrey Tuzhikov created issue -
        Andrey Tuzhikov made changes -
        Field Original Value New Value
        Description Steps to reproduce:
        Then user manually types incorrect URL, this confusing exception will be thrown.

        SEVERE: Internal error for /eshop/profile/p
        java.lang.IllegalStateException: URL fragment has unmatched key/value pair: p
        at org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
        at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
        at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:476)
        at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)

        Steps to reproduce:
        When user manually types incorrect URL, this confusing exception will be thrown.

        SEVERE: Internal error for /eshop/profile/p
        java.lang.IllegalStateException: URL fragment has unmatched key/value pair: p
        at org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
        at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
        at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:476)
        at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)

        Igor Vaynberg made changes -
        Assignee Gerolf Seitz [ seitz ]
        Igor Vaynberg made changes -
        Fix Version/s 1.3.4 [ 12313089 ]
        Igor Vaynberg made changes -
        Fix Version/s 1.4-M2 [ 12312911 ]
        Frank Bille Jensen made changes -
        Fix Version/s 1.4-M3 [ 12312912 ]
        Fix Version/s 1.4-M2 [ 12312911 ]
        Martijn Dashorst made changes -
        Fix Version/s 1.3.4 [ 12313089 ]
        Fix Version/s 1.4-M3 [ 12312912 ]
        Fix Version/s 1.3.5 [ 12313175 ]
        Igor Vaynberg made changes -
        Assignee Gerolf Seitz [ seitz ]
        Timo Rantalaiho made changes -
        Assignee Timo Rantalaiho [ thrantal ]
        Igor Vaynberg made changes -
        Resolution Fixed [ 1 ]
        Assignee Timo Rantalaiho [ thrantal ] Igor Vaynberg [ ivaynberg ]
        Fix Version/s 1.4-M4 [ 12313295 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Igor Vaynberg
            Reporter:
            Andrey Tuzhikov
          • Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 48h
              48h
              Remaining:
              Remaining Estimate - 48h
              48h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development