Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.0.1
-
None
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
Commit db2f86bcecfe0d68183a166ad07a7f996d332539 in jclouds's branch refs/heads/master from nacx
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=db2f86b ]
JCLOUDS-1295: Support deprecated date formats in the Expires header