You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Mike Rheinheimer (JIRA)" <ji...@apache.org> on 2009/07/11 00:09:14 UTC

[jira] Updated: (WINK-72) consistent behavior for mis-quoted etag header values

     [ https://issues.apache.org/jira/browse/WINK-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer updated WINK-72:
---------------------------------

    Attachment: patch.txt

> consistent behavior for mis-quoted etag header values
> -----------------------------------------------------
>
>                 Key: WINK-72
>                 URL: https://issues.apache.org/jira/browse/WINK-72
>             Project: Wink
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.1
>            Reporter: Mike Rheinheimer
>             Fix For: 0.1
>
>         Attachments: patch.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.