Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

JSONPointer pre-existing bug in toURIFragment()

Open Beginner friendly
#1,082 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
backend

Research direction

Start at the toURIFragment() entry point and inspect how decoded refTokens are converted into the URI fragment. Check the RFC 6901 handling for tokens containing ~ and /, then verify that the resulting fragment parses back to the same pointer, including both characters. Ask the issue author for details if the expected behavior remains unclear.

Written by the indexing model from the issue text.

Description

Fix before the next release

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.

Dominant language
Java
Stars
4.7k
Forks
2.6k
Avg merge
6d 20h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stleary/JSON-java

All issues in stleary/JSON-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.