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/16 00:29:14 UTC

[jira] Created: (WINK-106) return path check for q=0 Accept-Encoding

return path check for q=0 Accept-Encoding
-----------------------------------------

                 Key: WINK-106
                 URL: https://issues.apache.org/jira/browse/WINK-106
             Project: Wink
          Issue Type: Bug
          Components: Server
    Affects Versions: 0.1
            Reporter: Mike Rheinheimer
             Fix For: 0.1


This Jira is related to WINK-104:  see commented testcase method in the patch there.

When a method is annotated as such:

     @GET
     @Produces(" * / * ")

And the client sends:

     Accept-Encoding: text/xml;q=0

That method should not send text/xml content type.  I'm guessing the place to check for this (and return 406?) would be in wink-server, in:

org.apache.wink.server.internal.handlers.PopulateResponseMediaTypeHandler

See WINK-104 and http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more info.  (I'm on vacation until Monday 7/20 -- I can look at this then, if no one else has got to it yet.)

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


[jira] Resolved: (WINK-106) return path check for q=0 Accept header

Posted by "Michael Elman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Elman resolved WINK-106.
--------------------------------

    Resolution: Duplicate
      Assignee: Michael Elman

This issue was already fixed by fixing [WINK-104], so I'm marking it as duplicate.
I've added explicit unit tests though.

> return path check for q=0 Accept header
> ---------------------------------------
>
>                 Key: WINK-106
>                 URL: https://issues.apache.org/jira/browse/WINK-106
>             Project: Wink
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.1
>            Reporter: Mike Rheinheimer
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>
> This Jira is related to WINK-104:  see commented testcase method in the patch there.
> When a method is annotated as such:
>      @GET
>      @Produces(" * / * ")
> And the client sends:
>      Accept: text/xml;q=0
> That method should not send text/xml content type.  I'm guessing the place to check for this (and return 406?) would be in wink-server, in:
> org.apache.wink.server.internal.handlers.PopulateResponseMediaTypeHandler
> See WINK-104 and http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more info.  (I'm on vacation until Monday 7/20 -- I can look at this then, if no one else has got to it yet.)

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


[jira] Updated: (WINK-106) return path check for q=0 Accept header

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer updated WINK-106:
----------------------------------

    Description: 
This Jira is related to WINK-104:  see commented testcase method in the patch there.

When a method is annotated as such:

     @GET
     @Produces(" * / * ")

And the client sends:

     Accept: text/xml;q=0

That method should not send text/xml content type.  I'm guessing the place to check for this (and return 406?) would be in wink-server, in:

org.apache.wink.server.internal.handlers.PopulateResponseMediaTypeHandler

See WINK-104 and http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more info.  (I'm on vacation until Monday 7/20 -- I can look at this then, if no one else has got to it yet.)

  was:
This Jira is related to WINK-104:  see commented testcase method in the patch there.

When a method is annotated as such:

     @GET
     @Produces(" * / * ")

And the client sends:

     Accept-Encoding: text/xml;q=0

That method should not send text/xml content type.  I'm guessing the place to check for this (and return 406?) would be in wink-server, in:

org.apache.wink.server.internal.handlers.PopulateResponseMediaTypeHandler

See WINK-104 and http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more info.  (I'm on vacation until Monday 7/20 -- I can look at this then, if no one else has got to it yet.)

        Summary: return path check for q=0 Accept header  (was: return path check for q=0 Accept-Encoding)

> return path check for q=0 Accept header
> ---------------------------------------
>
>                 Key: WINK-106
>                 URL: https://issues.apache.org/jira/browse/WINK-106
>             Project: Wink
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.1
>            Reporter: Mike Rheinheimer
>             Fix For: 0.1
>
>
> This Jira is related to WINK-104:  see commented testcase method in the patch there.
> When a method is annotated as such:
>      @GET
>      @Produces(" * / * ")
> And the client sends:
>      Accept: text/xml;q=0
> That method should not send text/xml content type.  I'm guessing the place to check for this (and return 406?) would be in wink-server, in:
> org.apache.wink.server.internal.handlers.PopulateResponseMediaTypeHandler
> See WINK-104 and http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more info.  (I'm on vacation until Monday 7/20 -- I can look at this then, if no one else has got to it yet.)

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


[jira] Closed: (WINK-106) return path check for q=0 Accept header

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer closed WINK-106.
---------------------------------


> return path check for q=0 Accept header
> ---------------------------------------
>
>                 Key: WINK-106
>                 URL: https://issues.apache.org/jira/browse/WINK-106
>             Project: Wink
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.1
>            Reporter: Mike Rheinheimer
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>
> This Jira is related to WINK-104:  see commented testcase method in the patch there.
> When a method is annotated as such:
>      @GET
>      @Produces(" * / * ")
> And the client sends:
>      Accept: text/xml;q=0
> That method should not send text/xml content type.  I'm guessing the place to check for this (and return 406?) would be in wink-server, in:
> org.apache.wink.server.internal.handlers.PopulateResponseMediaTypeHandler
> See WINK-104 and http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more info.  (I'm on vacation until Monday 7/20 -- I can look at this then, if no one else has got to it yet.)

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


[jira] Commented: (WINK-106) return path check for q=0 Accept header

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732997#action_12732997 ] 

Hudson commented on WINK-106:
-----------------------------

Integrated in Wink-Trunk-JDK1.5 #21 (See [http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5/21/])
    Add unit test. See []


> return path check for q=0 Accept header
> ---------------------------------------
>
>                 Key: WINK-106
>                 URL: https://issues.apache.org/jira/browse/WINK-106
>             Project: Wink
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.1
>            Reporter: Mike Rheinheimer
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>
> This Jira is related to WINK-104:  see commented testcase method in the patch there.
> When a method is annotated as such:
>      @GET
>      @Produces(" * / * ")
> And the client sends:
>      Accept: text/xml;q=0
> That method should not send text/xml content type.  I'm guessing the place to check for this (and return 406?) would be in wink-server, in:
> org.apache.wink.server.internal.handlers.PopulateResponseMediaTypeHandler
> See WINK-104 and http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more info.  (I'm on vacation until Monday 7/20 -- I can look at this then, if no one else has got to it yet.)

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