Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1322

Resteasy processes If-Modified-Since header even when If-None-Match header is present

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.17.Final
    • 3.0.16.Final
    • jaxrs
    • None

    Description

      When both LastModifiedDate and ETag are passed to evaluatePreconditions(java.util.Date lastModified, EntityTag eTag) method, RestEasy will return NotModifies status code if any of them match with request headers.

      However ETag should have higher priority.

      Extract from RFC 7232:

      A recipient must ignore If-Modified-Since if the request contains an If-None-Match header field; the condition in If-None-Match is considered to be a more accurate replacement for the condition in If-Modified-Since, and the two are only combined for the sake of interoperating with older intermediaries that might not implement If-None-Match.

      A recipient MUST ignore If-Unmodified-Since if the request contains an If-Match header field; the condition in If-Match is considered to be a more accurate replacement for the condition in If-Unmodified-Since, and the two are only combined for the sake of interoperating with older intermediaries that might not implement If-Match.

      Attachments

        Issue Links

          Activity

            People

              weinanli Weinan Li
              bedrin_jira Dmitry Bedrin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2 hours Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h