Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Can not handle comparisons with multiple fixed path elements in a row #2

@jonathon-lockett

Description

@jonathon-lockett

List<String> uriValues = Arrays.asList(StringUtils.split(request.getPath().getValue(), "/"));
List<UriTemplateComponent> uriComponents = new UriTemplateParser().scan(resource.getUri());
if (uriValues.size() != uriComponents.size())
return false;

Can not compare /a/{a}/b/{b}/c/d != /a/1/b/1/c/d

uriComponents is one element short and will have the element c/d as one item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions