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

evaluatePreconditions() in RequestImpl should also check the If-None-Match header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.5
    • 2.2.6
    • JAX-RS
    • None

    Description

      Currently the code is:

      public ResponseBuilder evaluatePreconditions(Date lastModified, EntityTag eTag) {
      ResponseBuilder rb = evaluatePreconditions(eTag);
      if (rb != null)

      { return rb; }

      return evaluatePreconditions(lastModified);
      }
      public ResponseBuilder evaluatePreconditions(EntityTag eTag)

      { String ifMatch = getHeaderValue(HttpHeaders.IF_MATCH); ... }

      which is checking the If-Match header. While it is fine to check the If-Match header, it should also check the
      If-None-Match header which is more often used for GET requests, along with the If-Modified-Since header.
      This is what the two-argument version of evaluatePreconditions() is supposed to do.

      Attachments

        Activity

          People

            Unassigned Unassigned
            freemant Kent Tong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: