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

Url regex normalizer: default pattern for session id removal not to match "newsId"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.6, 2.2
    • Component/s: None
    • Labels:
      None

      Description

      Hey,

      I encountered the following problem while trying to crawl a site using
      nutch-trunk. In the file regex-normalize.xml, the following regex is
      used to remove session ids:

      <pattern>([;_]?((?i)l|j|bv_)?((?i)sid|phpsessid|sessionid)=.*?)(?|&|#|$)</pattern>.

      This pattern also transforms a url, such as,
      "&newsId=2000484784794&newsLang=en" into "&new&newsLang=en" (since it
      matches 'sId' in the 'newsId'), which is incorrect and hence does not
      get fetched. This expression needs to be changed to prevent this.

      Thanks,
      Meghna

        Attachments

        1. NUTCH-706-2.patch
          3 kB
          Sebastian Nagel
        2. NUTCH-706.patch
          2 kB
          Sebastian Nagel

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                omegta Meghna Kukreja
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: