Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1, nutchgora
    • Fix Version/s: 1.10
    • Component/s: protocol
    • Patch Info:
      Patch Available

      Description

      I've created a patch against the trunk which adds support for very rudimentary POST-based authentication support. It takes a link from nutch-site.xml with a site to POST to and its respective parameters (username, password, etc.). It then checks upon every request whether any cookies have been initialized, and if none have, it fetches them from the given link.

      This isn't perfect but Works For Me (TM) as I generally only need to retrieve results from a single domain and so have no cookie overlap (i.e. if the domain cookies expire, all cookies disappear from the HttpClient and I can simply re-fetch them). A natural improvement would be to be able to specify one particular cookie to check the expiration-date against. If anyone is interested in this beside me I'd be glad to put some more effort into making this more universally applicable.

      1. nutch-http-cookies.patch
        9 kB
        Jasper van Veghel
      2. NUTCH-827-trunk-v3.patch
        27 kB
        Sebastian Nagel
      3. NUTCH-827-trunkv2.patch
        27 kB
        Lewis John McGibbney
      4. NUTCH-827-trunk.patch
        29 kB
        Lewis John McGibbney
      5. http-client-form-authtication.patch
        17 kB
        jefferyyuan

        Issue Links

          Activity

          Lewis John McGibbney made changes -
          Labels authentication authentication memex
          Lewis John McGibbney made changes -
          Link This issue relates to NUTCH-1943 [ NUTCH-1943 ]
          Lewis John McGibbney made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Sebastian Nagel made changes -
          Attachment NUTCH-827-trunk-v3.patch [ 12698825 ]
          Lewis John McGibbney made changes -
          Link This issue is related to NUTCH-1940 [ NUTCH-1940 ]
          Lewis John McGibbney made changes -
          Fix Version/s 2.4 [ 12324540 ]
          Lewis John McGibbney made changes -
          Attachment NUTCH-827-trunkv2.patch [ 12697655 ]
          Lewis John McGibbney made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Lewis John McGibbney made changes -
          Fix Version/s 1.10 [ 12327187 ]
          Fix Version/s 1.11 [ 12329358 ]
          Lewis John McGibbney made changes -
          Link This issue is related to NUTCH-1929 [ NUTCH-1929 ]
          Lewis John McGibbney made changes -
          Link This issue is blocked by NUTCH-1086 [ NUTCH-1086 ]
          Lewis John McGibbney made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Lewis John McGibbney made changes -
          Attachment NUTCH-827-trunk.patch [ 12696328 ]
          Lewis John McGibbney made changes -
          Fix Version/s 2.4 [ 12324540 ]
          Lewis John McGibbney made changes -
          Assignee Lewis John McGibbney [ lewismc ]
          Lewis John McGibbney made changes -
          Fix Version/s 1.11 [ 12329358 ]
          Fix Version/s 1.10 [ 12327187 ]
          Julien Nioche made changes -
          Fix Version/s 1.10 [ 12327187 ]
          Fix Version/s 1.9 [ 12324611 ]
          Sebastian Nagel made changes -
          Link This issue relates to NUTCH-1613 [ NUTCH-1613 ]
          Sebastian Nagel made changes -
          Link This issue is duplicated by NUTCH-1518 [ NUTCH-1518 ]
          Julien Nioche made changes -
          Component/s protocol [ 12318529 ]
          Component/s fetcher [ 11591 ]
          jefferyyuan made changes -
          Attachment http-client-form-authtication.patch [ 12632311 ]
          Lewis John McGibbney made changes -
          Fix Version/s 1.9 [ 12324611 ]
          Fix Version/s 2.3 [ 12324325 ]
          Fix Version/s 1.8 [ 12324326 ]
          Sebastian Nagel made changes -
          Fix Version/s 1.8 [ 12324326 ]
          Lewis John McGibbney made changes -
          Fix Version/s 2.3 [ 12324325 ]
          Fix Version/s 1.7 [ 12323281 ]
          Fix Version/s 2.2 [ 12323285 ]
          Lewis John McGibbney made changes -
          Fix Version/s 2.2 [ 12323285 ]
          Lewis John McGibbney made changes -
          Fix Version/s 1.7 [ 12323281 ]
          Fix Version/s 1.6 [ 12319941 ]
          Markus Jelsma made changes -
          Fix Version/s 1.6 [ 12319941 ]
          Fix Version/s 1.5 [ 12318246 ]
          Lewis John McGibbney made changes -
          Link This issue is blocked by NUTCH-1086 [ NUTCH-1086 ]
          Markus Jelsma made changes -
          Fix Version/s 1.5 [ 12318246 ]
          Jasper van Veghel made changes -
          Field Original Value New Value
          Attachment nutch-http-cookies.patch [ 12445647 ]
          Jasper van Veghel created issue -

            People

            • Assignee:
              Lewis John McGibbney
              Reporter:
              Jasper van Veghel
            • Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development