Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1714

GetHTTP fails to parse certain cookie expiration dates

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.6.1
    • Component/s: Extensions
    • Labels:
      None

      Description

      I'm trying to use GetHTTP to access a web server that assigns a _session cookie then redirects to another URL that expects that cookie to be set. Normally the Apache HTTPComponents HttpClient handles this.

      Unfortunately, due to a bug HTTPCLIENT-1640, the HttpClient fails to parse this particular server's _session cookie expiration date. The error is

      WARN o.a.h.c.p.ResponseProcessCookies Invalid Cookie Header: "Set-Cookie: _session=abc123; path=/; expires=Wed, 06 Apr 2016 22:10:16 -0000". Invalid 'expires' attribute: Wed, 06 Apr 2016 22:10:16 -000
      ERROR o.a.n.p.s.GetHTTP Failed to retrieve file from http://fqdn/url due to null; rolling back session: org.apache.http.client.ClientProtocolException

        Attachments

        1. NIFI-1714.patch
          2 kB
          Michael W Moser
        2. NIFI-1714-withtests.patch
          10 kB
          Michael W Moser

          Activity

            People

            • Assignee:
              mosermw Michael W Moser
              Reporter:
              mosermw Michael W Moser
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: