chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florent Guillaume (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-1079) ETag header (and others) should be sent even when returning 304 Not Modified
Date Wed, 24 Jul 2019 16:37:00 GMT
Florent Guillaume created CMIS-1079:
---------------------------------------

             Summary: ETag header (and others) should be sent even when returning 304 Not
Modified
                 Key: CMIS-1079
                 URL: https://issues.apache.org/jira/browse/CMIS-1079
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-server
    Affects Versions: OpenCMIS 1.1.0
            Reporter: Florent Guillaume


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|https://tools.ietf.org/html/rfc7232#section-4.1] explicitly states:
{quote}
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.
{quote}

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



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message