Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1295

Azure ARM Improve "Expires" header handling

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: jclouds-compute

      Description

      Each response contains the header

      Expires: Thu Jan 01 02:00:00 EET 1970
      

      which results in the debug message

      Invalid Expires header (-1); should be in RFC-1123 format; treating as already expired: Error parsing data at 0
      

      While in the end it does the right thing, would be nicer if the header is parsed correctly. Couldn't figure out how it goes from the date in the header to "-1".

      Here's a complete request-response pair.

      2017-05-12 12:34:30,102 DEBUG 106 j.headers [ager-NxN8ADpS-22] >> GET https://management.azure.com/subscriptions/<subscription id>/locations?api-version=2015-11-01 HTTP/1.1
      2017-05-12 12:34:30,102 DEBUG 106 j.headers [ager-NxN8ADpS-22] >> Accept: application/json
      2017-05-12 12:34:30,244 DEBUG 106 o.j.i.ContentMetadataCodec$DefaultContentMetadataCodec [ager-NxN8ADpS-22] Invalid Expires header (-1); should be in RFC-1123 format; treating as already expired: Error parsing data at 0
      2017-05-12 12:34:30,245 DEBUG 106 o.j.h.o.OkHttpCommandExecutorService [ager-NxN8ADpS-22] Receiving response -126171253: HTTP/1.1 200 OK
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << HTTP/1.1 200 OK
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << Date: Fri, 12 May 2017 09:34:29 GMT
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << OkHttp-Received-Millis: 1494581670244
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << OkHttp-Selected-Protocol: http/1.1
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << OkHttp-Sent-Millis: 1494581670103
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << Pragma: no-cache
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << Strict-Transport-Security: max-age=31536000; includeSubDomains
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << Vary: Accept-Encoding
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << x-ms-correlation-request-id: f1b11eb2-c5bf-4500-9e70-08f0fbea71b8
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << x-ms-ratelimit-remaining-subscription-reads: 14815
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << x-ms-request-id: f1b11eb2-c5bf-4500-9e70-08f0fbea71b8
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << x-ms-routing-request-id: CANADAEAST:20170512T093430Z:f1b11eb2-c5bf-4500-9e70-08f0fbea71b8
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << Cache-Control: no-cache
      2017-05-12 12:34:30,245 DEBUG 106 j.headers [ager-NxN8ADpS-22] << Content-Type: application/json; charset=utf-8
      2017-05-12 12:34:30,246 DEBUG 106 j.headers [ager-NxN8ADpS-22] << Expires: Thu Jan 01 02:00:00 EET 1970
      
      

        Attachments

          Activity

            People

            • Assignee:
              nacx Ignasi Barrera
              Reporter:
              svet Svetoslav Neykov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: