restconf-server-jaxrs endpoint returns 500 error for host-meta requests

Description

when requesting host meta information the 500 error returned for both host-meta and host-meta.json

none of the headers being used by client, bruno log:

response body like below

server log stack-trace attached

 

Environment

None

Attachments

2

Activity

Show:

Robert Varga August 9, 2024 at 12:37 PM

now we are going through whiteboard, so this applies: https://docs.osgi.org/specification/osgi.cmpn/8.0.0/service.http.whiteboard.html#org.osgi.service.http.whiteboard.HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME
which says:

so we have a disconnect between API and impl, because WebContextBuilder's name says the name is 'descriptive' and then the implementation is using them as is.

Robert Varga August 9, 2024 at 12:14 PM

right-o, so logs do not show anything. intercepting the exception shows:

  • HttpCookie[_name="JSESSIONID", _value="node030fapth33t451rteqordexlug0.well-known#RFC6415 Web Host Metadata.node0"]

so the description is creeping into the value without being escaped.

Done

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created August 9, 2024 at 9:19 AM
Updated August 28, 2024 at 5:10 PM
Resolved August 28, 2024 at 5:10 PM