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

Page mount with an optional named parameter overtakes a mount with more specific path

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.6.0
    • Fix Version/s: 6.9.0, 7.0.0-M1
    • Component/s: wicket
    • Labels:
      None

      Description

      See the discussion in http://markmail.org/thread/sgpiku27ah2tmcim

      Having:
      mountPage("/all/sindex",Page1.class);
      mountPage("/all/#

      {exp}

      ", Page2.class);

      Request to /all/sindex will be handled by Page2.

      Compatibility score for optional parameters should be lower than mandatory parameters which should be lower than exact value.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: