You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Donal Fellows (JIRA)" <ji...@apache.org> on 2010/07/22 03:04:51 UTC
[jira] Created: (CXF-2904) Request.selectVariant unimplemented
Request.selectVariant unimplemented
-----------------------------------
Key: CXF-2904
URL: https://issues.apache.org/jira/browse/CXF-2904
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 2.2.9
Reporter: Donal Fellows
Is the implementation of the {{javax.ws.rs.core.Request}} interface incomplete? I ask because I was trying to use its {{selectVariant}} method and always getting a {{null}} returned, even when doing an exact match between a supplied singleton variant list and the input type. A simple, perfect match opportunity is completely missed...
I worked around it by using {{HttpHeaders}} instead, but that requires manual work on the behalf of implementors so it's less than ideal. FWIW, my workaround is rather messy and only handles a limited subset of what variant matching is supposed to do (but it is enough for my immediate requirements).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2904) Request.selectVariant unimplemented
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893380#action_12893380 ]
Sergey Beryozkin commented on CXF-2904:
---------------------------------------
http://svn.apache.org/viewvc?rev=980236&view=rev
> Request.selectVariant unimplemented
> -----------------------------------
>
> Key: CXF-2904
> URL: https://issues.apache.org/jira/browse/CXF-2904
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.2.9
> Reporter: Donal Fellows
>
> Is the implementation of the {{javax.ws.rs.core.Request}} interface incomplete? I ask because I was trying to use its {{selectVariant}} method and always getting a {{null}} returned, even when doing an exact match between a supplied singleton variant list and the input type. A simple, perfect match opportunity is completely missed...
> I worked around it by using {{HttpHeaders}} instead, but that requires manual work on the behalf of implementors so it's less than ideal. FWIW, my workaround is rather messy and only handles a limited subset of what variant matching is supposed to do (but it is enough for my immediate requirements).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2904) Request.selectVariant unimplemented
Posted by "Donal Fellows (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893569#action_12893569 ]
Donal Fellows commented on CXF-2904:
------------------------------------
That looks like a fix to me. :-)
> Request.selectVariant unimplemented
> -----------------------------------
>
> Key: CXF-2904
> URL: https://issues.apache.org/jira/browse/CXF-2904
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.2.9
> Reporter: Donal Fellows
>
> Is the implementation of the {{javax.ws.rs.core.Request}} interface incomplete? I ask because I was trying to use its {{selectVariant}} method and always getting a {{null}} returned, even when doing an exact match between a supplied singleton variant list and the input type. A simple, perfect match opportunity is completely missed...
> I worked around it by using {{HttpHeaders}} instead, but that requires manual work on the behalf of implementors so it's less than ideal. FWIW, my workaround is rather messy and only handles a limited subset of what variant matching is supposed to do (but it is enough for my immediate requirements).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-2904) Request.selectVariant unimplemented
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-2904.
-----------------------------------
Assignee: Sergey Beryozkin
Fix Version/s: 2.3
Resolution: Fixed
> Request.selectVariant unimplemented
> -----------------------------------
>
> Key: CXF-2904
> URL: https://issues.apache.org/jira/browse/CXF-2904
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.2.9
> Reporter: Donal Fellows
> Assignee: Sergey Beryozkin
> Fix For: 2.3
>
>
> Is the implementation of the {{javax.ws.rs.core.Request}} interface incomplete? I ask because I was trying to use its {{selectVariant}} method and always getting a {{null}} returned, even when doing an exact match between a supplied singleton variant list and the input type. A simple, perfect match opportunity is completely missed...
> I worked around it by using {{HttpHeaders}} instead, but that requires manual work on the behalf of implementors so it's less than ideal. FWIW, my workaround is rather messy and only handles a limited subset of what variant matching is supposed to do (but it is enough for my immediate requirements).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.