cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <>
Subject Re: ContainerResponseContext.getLinks() lose links
Date Fri, 17 Apr 2015 11:40:34 GMT

Thanks for your patch and sorry I forgot to mention your name in the 
commit message, the fact you did a patch was appreciated.

I'm not sure to be honest what does it mean to have multiple Links 
without a relationship, how would you identify which URI points to what 
? May be you use some custom parameters for that but if so then you can 
equally model that with a 'rel'.

Either way, technically it was a bug, thanks for identifying it

On 15/04/15 15:20, iris ding wrote:
> HI,
> 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
> multiple links's rel is null due to duplicate key.
> See below javadoc for Link:
> getRel()
> Returns the value associated with the link rel param, or null if this param
> is not specified.
> Can you please take a look at the problem? I have already created a jira
> for it and attached a
> proposed fix.
> Thanks a lot!
> Iris Ding
> --
> View this message in context:
> Sent from the cxf-dev mailing list archive at

View raw message