You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Minder (JIRA)" <ji...@apache.org> on 2015/11/23 21:43:11 UTC
[jira] [Commented] (KNOX-589) Jericho
java.lang.IllegalStateException: StreamedText position 10773 has been
discarded
[ https://issues.apache.org/jira/browse/KNOX-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022958#comment-15022958 ]
Kevin Minder commented on KNOX-589:
-----------------------------------
[~jeffreyr97] < Is there any test case you can provide? I've recently been working with gateway-provider-rewrite/src/test/java/org/apache/hadoop/gateway/filter/rewrite/api/UrlRewriteServletFilterTest.java a bit for various doc efforts and it might be a good place to provide such a unit test.
> Jericho java.lang.IllegalStateException: StreamedText position 10773 has been discarded
> ---------------------------------------------------------------------------------------
>
> Key: KNOX-589
> URL: https://issues.apache.org/jira/browse/KNOX-589
> Project: Apache Knox
> Issue Type: Bug
> Affects Versions: 0.7.0
> Reporter: Jeffrey E Rodriguez
> Labels: patch
> Fix For: 0.7.0
>
> Attachments: KNOX-589.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Jericho java.lang.IllegalStateException: StreamedText position 10773 has been discarded.
> This would cause some embedded JavaScript rewriting to fail.
> To reproduce:
> 1. Set Yarn
> 2. Get Yarn UI through Knox.
> 3. Add more than 10 jobs (any type, Spark, Oozie, Mapreduce, etc).
> 4. Before around 10 the rewriting works but after that it doesn't..
> I debugged this into a call to org.apache.hadoop.gateway.filter.rewrite.impl.html.HtmlFilterReaderBase
> Recent code added to rewrite JavaScript is calling:
> String tagType = stack.peek().getTag().getAttributeValue("type");
> Which would failed with the IllegalException in the logs.
> Since we are processing Script and most of it is JavaScript, do we need this check??
> Removing this call and JSTYPES.contains(tagType) seem to fix the issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)