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

Improve PageInstanceMapper#getCompatibilityScore() to return higher value if the request starts with 'wicket/page'

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC7
    • Fix Version/s: 1.5.1
    • Component/s: wicket
    • Labels:
      None

      Description

      org.apache.wicket.request.mapper.PageInstanceMapper.getCompatibilityScore(Request) currently returns 0 to give users mappers a chance but requests to 'wicket/page?...' are really requests to PIM and there is no need to execute all other mappers #mapRequest(Url).

      If user app wants to handle requests to 'wicket/page' then it should override getCompatibilityScore() and return the same or higher value than PIM.

        Activity

        Hide
        mgrigorov Martin Grigorov added a comment -

        The same is valid for BookmarkableMapper and its 'wicket/bookmarkable' prefix of the urls.

        Show
        mgrigorov Martin Grigorov added a comment - The same is valid for BookmarkableMapper and its 'wicket/bookmarkable' prefix of the urls.

          People

          • Assignee:
            mgrigorov Martin Grigorov
            Reporter:
            mgrigorov Martin Grigorov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development