Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-8823

PathMatcher doesn't prefer overloaded templated resources

    Details

      Description

      I have two resources:

      /resource/{version}/subresource/{id}/{other}
      /resource/{version}/subresource/{id}/entities
      

      Both have different permissions associated with them.

      I want to access targetUri

      /resource/v1/subresource/0/entities
      

      but access depends on which of the two resources has a lower index on the resource list.

      PathMatcher should prefer overloaded resources- with less brackets in the uri.

      I attach a diff with fixed PathMatcher and a unit test.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pcraveiro Pedro Igor Silva
                Reporter:
                tomasz.pretki Tomasz Prętki
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: