[NETCONF-757] `/.well-known/*` endpoint responses only once Created: 10/Feb/21  Updated: 11/Feb/21  Resolved: 11/Feb/21

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: 1.13.0, Aluminium SR2
Fix Version/s: 1.13.0, Aluminium SR3

Type: Bug Priority: Medium
Reporter: Michal Banik Assignee: Michal Banik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to NETCONF-499 Support for Root Resource Discovery i... Resolved

 Description   

/.well-know/* REST endpoint introduced in NETCONF-499 response only once. For every other request it is stucked.

javax.ws.rs.core.Response.status(Status.OK) creates new OutboundMessageContext with CommittingOutputStream instance, which is closed during the process of sending the response to client.
Closed output-stream causes

java.lang.IllegalStateException: The output stream has already been closed.

when `/.well-known/*` endpoint is requesting multiple times, which makes the endpoint working only once.


Generated at Wed Feb 07 20:15:49 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.