Tamás Marcinkovics created KNOX-3576:
----------------------------------------
Summary: HTML rewrite misses URLs that span a text segment
boundary of the streaming HTML parser
Key: KNOX-3576
URL: https://issues.apache.org/jira/browse/KNOX-3576
Project: Apache Knox
Issue Type: Bug
Components: Server
Affects Versions: 3.1.0
Reporter: Tamás Marcinkovics
Assignee: Tamás Marcinkovics
{{HtmlFilterReaderBase}} parses response bodies with Jericho's
{{StreamedSource}} and rewrites each segment separately.
{{StreamedSource}} doesn't return long text between two tags as one segment. It
splits it into chunks the size of its buffer, about 8K characters.
{{processCurrentSegment()}} passes each chunk to {{processText()}} on its own.
So a URL that starts of one chunk and continues in the next is matched by
neither, and it reaches the client unrewritten.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)