Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6352

ContainerResponseContext.getLinks() loses links if they have no 'rel' parameter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.0.2, 3.0.3
    • Fix Version/s: 3.1, 3.0.5
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Moderate
    • Flags:
      Patch

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              irisding iris ding
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: