Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-589

Jericho java.lang.IllegalStateException: StreamedText position 10773 has been discarded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.8.0
    • None

    Description

      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.

      Attachments

        1. KNOX-589.patch
          2 kB
          Jeffrey E Rodriguez

        Activity

          People

            jeffreyr97 Jeffrey E Rodriguez
            jeffreyr97 Jeffrey E Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: