Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-159

[PATCH] long <title> will hang HTML parser

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: modules/examples
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      24301

      Description

      A <title> longer than about 1000 characters will hang the parser in getSummary(). The
      problem was already described and a solution was suggested 2003-01-25 by Michael
      Wechner. I will attach a patch that implementes Michael's suggestion.

        Activity

        Hide
        daniel.naber@t-online.de Daniel Naber added a comment -

        Created an attachment (id=8852)
        maximum wait patch to avoid endless loop

        Show
        daniel.naber@t-online.de Daniel Naber added a comment - Created an attachment (id=8852) maximum wait patch to avoid endless loop
        Hide
        goller@detego-software.de Christoph Goller added a comment -

        There was a deadlock between the indexing thread and the parsing thread, which
        occured for long titles. Parsing thread waited for indexing thread to read from
        piped reader, indexing thread waited for summary. Bug was fixed by adding an
        additional abort condition to getTitle, getSummary, and getMeta which checks
        whether the pipe is full.

        Show
        goller@detego-software.de Christoph Goller added a comment - There was a deadlock between the indexing thread and the parsing thread, which occured for long titles. Parsing thread waited for indexing thread to read from piped reader, indexing thread waited for summary. Bug was fixed by adding an additional abort condition to getTitle, getSummary, and getMeta which checks whether the pipe is full.

          People

          • Assignee:
            java-dev@lucene.apache.org Lucene Developers
            Reporter:
            daniel.naber@t-online.de Daniel Naber
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development