Skip to content

JSONPointer pre-existing bug in toURIFragment() #1082

Description

@stleary

toURIFragment() percent-encodes each reference token but never applies the
~0/~1 escaping required by RFC 6901. Since refTokens holds decoded
literal key names, any token containing ~ or / produces a URI fragment that
does not parse back to the same pointer. This should be fixed after #1078, but before the next release.

If anyone wants to work on this, ping me for more details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions