Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1314

Impose a limit on the length of outlink target urls

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4
    • None
    • None
    • Patch Available

    Description

      In the past we have encountered situations where crawling specific broken sites resulted in ridiciously long urls that caused the stalling of tasks. The regex plugins (normalizing/filtering) processed single urls for hours, if not indefinitely hanging.

      My suggestion is to limit the outlink url target length as soon possible. It is a configurable limit, the default is 3000. This should be reasonably long enough for most uses. But sufficienly strict enough to make sure regex plugins do not choke on urls that are too long. Please see attached patch for the Nutchgora implementation.

      I'd like to hear what you think about this.

      Attachments

        1. NUTCH-1314-v4.patch
          5 kB
          Canan Girgin
        2. NUTCH-1314-v3.patch
          2 kB
          Canan Girgin
        3. NUTCH-1314-trunk.patch
          3 kB
          Lewis John McGibbney
        4. NUTCH-1314-v2.patch
          4 kB
          Lewis John McGibbney
        5. NUTCH-1314.patch
          2 kB
          Ferdy

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lewismc Lewis John McGibbney
            ferdy.g Ferdy
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment