[
https://issues.apache.org/jira/browse/SLING-13268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Munteanu reassigned SLING-13268:
---------------------------------------
Assignee: Rishabh Daim
> PartialReader section slicing breaks when Reader.skip() returns 0
> -----------------------------------------------------------------
>
> Key: SLING-13268
> URL: https://issues.apache.org/jira/browse/SLING-13268
> Project: Sling
> Issue Type: Bug
> Reporter: Rishabh Daim
> Assignee: Rishabh Daim
> Priority: Major
>
> h3. Summary
> PartialReader assumes a single Reader.skip(startCharIndex) fully advances to
> section start.
> With commons-io 2.22.0 behavior exposure, section boundaries can shift.
> h3. Impact
> Schema aggregation may leak raw section headers (QUERY:/TYPES: separators)
> into SDL and break GraphQL parsing.
> h3. Fix
> Skip robustly until the requested offset is reached (or EOF), instead of
> relying on one skip() call.
> h3. Reproducer
> Unit test with a Reader whose skip() returns 0 reproduces the bug.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)