Skip to content

Conversation

graalvmbot
Copy link
Collaborator

This PR adds support for registering resources requested with a non-canonical path. This could happen when:

  • agent finds that user requested resource (with getResource or getResourceAsStream for example) with a non-canonical path (e.g. foo/../test.txt should be just test.txt)
  • when user manually writes globs in the non-canonical form (same example as above)

Note: if a resource comes from a jar and it is requested with a non-canonical path, we should return null in order to have the same behavior as Java (and our current implementation does that)

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 28, 2024
@graalvmbot graalvmbot closed this Aug 28, 2024
@graalvmbot graalvmbot deleted the dnestoro/GR-41981/UseCanonicalPathsForResourceRegistration branch August 28, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants