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

Expires header value is incorrectly formatted in S3 upsert requests

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.2.0, 2.1.1, 2.1.2, 2.1.3
    • Fix Version/s: 2.2.1, 2.3.0
    • Component/s: jclouds-core
    • Labels:

      Description

      The Expires header value has 5, rather than 4, digits for the year portion of the date, e.g.:

       

      Expires: Wed, 22 Jan 02020 22:19:26 +0000
      

       

      DefaultContentMetadataCodec contains:

       

      httpExpiresDateCodec = dateCodecs.rfc1123();
      

       

      and SimpleDateFormatDateService, where the RFC1123 codec is implemented, contains:

       

      private static final SimpleDateFormat rfc1123SimpleDateFormat = new SimpleDateFormat("EEE, dd MMM yyyyy HH:mm:ss Z", Locale.US);
      

       

      Note, it contains 'yyyyy', rather than 'yyyy'.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ian.springer Ian Springer

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                  Issue deployment