You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/04/17 13:37:58 UTC
[jira] [Resolved] (CXF-6352) ContainerResponseContext.getLinks()
loses links if they have no 'rel' parameter
[ https://issues.apache.org/jira/browse/CXF-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-6352.
-----------------------------------
Resolution: Fixed
Fix Version/s: (was: 3.0.3)
3.0.5
3.1.0
Assignee: Sergey Beryozkin
Thanks for the patch - actually I've realized I haven't mention your name in the commit, sorry about it, will mention it on dev too
> ContainerResponseContext.getLinks() loses links if they have no 'rel' parameter
> --------------------------------------------------------------------------------
>
> Key: CXF-6352
> URL: https://issues.apache.org/jira/browse/CXF-6352
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.0.0, 3.0.2, 3.0.3
> Reporter: iris ding
> Assignee: Sergey Beryozkin
> Fix For: 3.1.0, 3.0.5
>
>
> in org.apache.cxf.jaxrs.impl.ResponseImpl.getAllLinks() , we put link into a LinkedHashMap and use link.getRel() as key:
> links.put(link.getRel(), link);
> However, link.getRel() may return null, in such case, we will lose links if two links's rel is null.
> See below javadoc for Link:
> getRel()
> Returns the value associated with the link rel param, or null if this param is not specified.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)