[
https://issues.apache.org/jira/browse/CXF-4921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin resolved CXF-4921.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.8.0
Assignee: Sergey Beryozkin
Hi - this can only be fixed at 2.8.0.
Note, the actual re-usability of individual builders is not recommended as the
parameters not reset and left over from the previous link state, will be
inherited - I've actually raised the issue at the spec level but they seem to
be have no problems with that - nothing I can do I'm afraid. That said, the
actual fix to do with copying the parameters is nice, thanks
> LinkBuilder can't be reused
> ---------------------------
>
> Key: CXF-4921
> URL: https://issues.apache.org/jira/browse/CXF-4921
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.7.3
> Reporter: Stian Soiland-Reyes
> Assignee: Sergey Beryozkin
> Priority: Minor
> Labels: link
> Fix For: 2.8.0
>
>
> Currently the linkbuilder will do the 'wrong' thing if it is reused, because
> it does not copy the map of parameters on .build) - so later changes to the
> linkbuilder will affect previously built links.
> The suggested patch at https://github.com/apache/cxf/pull/6 includes a unit
> test to verify the bug, and copies the parameters on build() to fix it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira