cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "iris ding (JIRA)" <>
Subject [jira] [Created] (CXF-6352) ContainerResponseContext.getLinks() lose links
Date Wed, 15 Apr 2015 14:11:59 GMT
iris ding created CXF-6352:

             Summary: ContainerResponseContext.getLinks() lose links
                 Key: CXF-6352
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.0.3, 3.0.2, 3.0.0
            Reporter: iris ding
             Fix For: 3.0.3

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:
Returns the value associated with the link rel param, or null if this param is not specified.

This message was sent by Atlassian JIRA

View raw message