Skip to content

[GR-79039] Restore aggregate resource filesystem lookup. - #14327

Open
graalvmbot wants to merge 1 commit into
masterfrom
pwoegere/GR-79039
Open

[GR-79039] Restore aggregate resource filesystem lookup.#14327
graalvmbot wants to merge 1 commit into
masterfrom
pwoegere/GR-79039

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

Summary

  • Treat bare resource:/ filesystems as aggregate views instead of binding them to concrete root 0.
  • Preserve strict isolation for root-qualified resource URIs.
  • Convert aggregate paths to URIs using the concrete root that supplied the selected first resource variant.
  • Add regression coverage for a resource contributed by a different classpath root.

Motivation

Preserving resource roots caused an unqualified resource filesystem to inherit concrete root 0. As a result, a lookup failed when the requested resource was contributed by another classpath root. Bare resource:/ filesystems historically provide aggregate, first-match behavior, while explicitly root-qualified resource URIs must remain isolated.

Fixes #13920

Testing

  • mx build
  • mx checkstyle
  • mx native-unittest com.oracle.svm.test.NativeImageResourceFileSystemProviderTest
  • mx native-unittest com.oracle.svm.test.NativeImageResourceTest
  • Built the Quarkus Liquibase native integration reproducer with the local Native Image and verified that both affected endpoints return HTTP 200.

Treat bare resource:/ filesystems as aggregate views instead of binding them to concrete root zero. Aggregate lookups select the first available resource variant, preserving legacy ClassLoader lookup behavior, while root-qualified resource URIs remain strict.

Resolve aggregate paths back to the concrete root that supplied the selected variant when creating URIs. Keep directory traversal consistent with the aggregate view and add coverage for resources contributed by a different classpath root.
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 28, 2026
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.

[Native Image] [GR-79039] Duplicate resource preservation causes regression in quarkus liquibase integration test

2 participants