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

Expires header value is incorrectly formatted in S3 upsert requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.2.0, 2.1.1, 2.1.2, 2.1.3
    • 2.2.1, 2.3.0
    • jclouds-core

    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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ian.springer Ian Springer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              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