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

RequestImpl.ifModifiedSince not comparing same precisions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.6.0.Final, 4.5.10.Final
    • 2.1.0.GA
    • None
    • None

    Description

      The implementation of RequestImpl.ifModifiedSince takes a date as a String and another as a Date. The String date has precision up to seconds (because its an HTTP header), but the Date argument may have milliseconds.

      Thus, comparing these dates using getTime() (millisecond precision) will always (almost) be false. The comparison should use precision up to the second since this is the most HTTP headers can provide.

      Attachments

        Issue Links

          Activity

            People

              rsigal@redhat.com Ronald Sigal
              plaflamme Philippe Laflamme (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: