Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2134

ResponseBuilder implementation sets date headers with Date.toString() method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.2.1
    • JAX-RS
    • None

    Description

      expires() and lastModified() methods of ResponseBuilderImpl sets response headers with Date.toString() method, while they should obey time format specified by RFC1123.

      This means that the date should be formated like

      new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH).format(expires);
      

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            romkal Roman Kalukiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: