Wicket
  1. Wicket
  2. WICKET-4055

LocaleFirstMapper does not strip Locale from url in getCompatibilityScore()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.1
    • Component/s: wicket-examples
    • Labels:
      None

      Description

      LocaleFirstMapper delegates the call to getCompatibilityScore() to the chained IRequestMapper without stripping the locale from the url.
      Since most request mappers generate a compatibility score by counting the number of matching segments from the start of the url, they will mostly return a score of 0.
      Practically this means that all request mappers behind the LocaleFirstMapper stop responding to urls.

        Activity

        Sebastian Gooren created issue -
        Igor Vaynberg made changes -
        Field Original Value New Value
        Assignee Igor Vaynberg [ ivaynberg ]
        Igor Vaynberg made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Martin Grigorov made changes -
        Fix Version/s 1.5.1 [ 12315430 ]

          People

          • Assignee:
            Igor Vaynberg
            Reporter:
            Sebastian Gooren
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

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

                Development