pjfanning opened a new pull request, #139:
URL: https://github.com/apache/poi-xmlbeans/pull/139

   Follow-up to #138.
   
   `StscImporter.resolve` removed `/..` segments after `!/` by hand. Replace 
that loop with `URI.normalize()` on the jar entry path:
   
   - `./` segments are now resolved (`./common/./b.xsd` → `!/xsd/common/b.xsd`).
   - Names that merely start with `..` (`..b.xsd`, `.../b.xsd`) are no longer 
treated as parent references.
   - `..` segments that climb above the jar root are still left in place 
(`../../b.xsd` → `!/../b.xsd`), matching #138, so the lookup fails with a 
normal compile error instead of resolving to another entry.
   - Query/fragment on the child are preserved.
   
   Tests:
   - use `jar:file:/nonexistent/schemas.jar!` so the compile test can't be 
affected by a real file
   - assert the unresolved result for the above-root case, not just termination
   - add cases for `./`, `..`-prefixed names and fragments
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to