Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-1079

ETag header (and others) should be sent even when returning 304 Not Modified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • OpenCMIS 1.1.0
    • None
    • opencmis-server
    • None

    Description

      In org.apache.chemistry.opencmis.server.shared.AbstractServiceCall#sendContentStreamHeaders, if the ETag is determined to be identical to the If-None-Match criteria, a status 304 (Not Modified) is returned immediately.

      However RFC 7232 §4.1 explicitly states:

      The server generating a 304 response MUST generate any of the following header fields that would have been sent in a 200 (OK) response to the same request: Cache-Control, Content-Location, Date, ETag, Expires, and Vary.

      So the Etag header (and Expires if applicable) is missing from what OpenCMIS is returning.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fguillaume Florent Guillaume
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: