Uploaded image for project: 'Wink'
  1. Wink
  2. WINK-72

consistent behavior for mis-quoted etag header values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1
    • 0.1
    • Server
    • None
    • Patch Available

    Description

      Currently, the runtime will throw an IllegalArgumentException (and thus a 500 response code) if an ETag (in the form of an If-Match or If-None-Match header value) with no quotes is passed to the server. If the ETag has a single quote at the front, or a single quote at the back, but is not fully wrapped, we'll get a 412 response code. I know this is very nit-picky, but I'd like to see consistency here.

      Current behavior:
      "etag" --> success
      "etag --> 412
      etag" --> 412
      etag --> 500

      Desired behavior is for that 500 to be a 412. Please see patch, which has tests and fix.

      Attachments

        1. patch.txt
          7 kB
          Michael Rheinheimer
        2. WINK-72.update.patch
          8 kB
          Nadav Fischer

        Activity

          People

            nfischer Nadav Fischer
            rott Michael Rheinheimer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: