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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0, 3.0.2, 3.0.3
    • 3.1, 3.0.5
    • JAX-RS
    • None
    • Moderate
    • 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

            sergey_beryozkin Sergey Beryozkin
            irisding Iris Ding
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: