Uploaded image for project: 'eXo-JCR'
  1. eXo-JCR
  2. EXOJCR-774

If-Modified-Since doesn't seem to be well managed in the Wevdav Component

    Details

      Description

      In the class GetCommand, the test that check if the resource has been modified seems to be incorrect, see the code below:

                  // check before any other reads
                  if ((ifModifiedSince != null) && (ifModifiedSince.equals(lastModifiedProperty.getValue())))
                  {
                     return Response.notModified().entity("Not Modified").build();
                  }
      

      ifModifiedSince and lastModifiedProperty should be converted first in date format and the expected test (functionally speaking) is not ifModifiedSince == lastModifiedProperty but lastModifiedProperty <= ifModifiedSince

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dkatayev Dmytro Katayev
                Reporter:
                nfilotto Nicolas Filotto
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified