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

Allow Sending an empty http.agent.version

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.13
    • Fix Version/s: 2.4, 1.14
    • Component/s: fetcher, protocol
    • Labels:
      None

      Description

      http.agent.version defaults in nutch-default.xml to Nutch-1.14-SNAPSHOT (depending on the version of course).
      If I want to override it to not send a version as part of the user-agent, there is nothing I can do in nutch-site.xml, since putting an empty string there causes the default to be taken, and putting any value there causes a slash to be appended to the http.agent.name.
      As far as I can see, the only way to override it is to remove the value in nutch-default.xml, which is probably not the “correct” way, considering it contains a comment saying “Do not modify this file directly”.
      The suggested solution is to treat a white-space-only value as empty.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                yossi Yossi Tamari
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: