Skip to content

The subpath normalization algorithm should follow RFC 3986 #405

Open
@dwalluck

Description

@dwalluck

Simply dropping '..' from the output leads to the case where the normal (human) interpretation of a path containing two dots differs from what the spec says.

For example, the normal interpretation of the fragment of a URI like pkg:golang/google.golang.org/genproto#googleapis/../api/annotations is googleapis/annotations, not googleapis/api/annotations as in the spec.

If someone provides that URI as input, they are most likely intending the later version to be the output.

I am suggesting just following https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4 instead so that the usual meaning is preserved.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions