[NETCONF-499] Support for Root Resource Discovery is missing Created: 16/Jan/18  Updated: 10/Feb/21  Resolved: 18/Dec/20

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

Type: New Feature Priority: Medium
Reporter: Vratko Polak Assignee: Iaroslav Kholiavko
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

manual testing


Issue Links:
Duplicate
is duplicated by NETCONF-662 [RFC8040] Implement RESTCONF Extensib... Resolved
is duplicated by NETCONF-739 RFC8040 compliance: Root Resource Dis... Resolved
Relates
relates to NETCONF-757 `/.well-known/*` endpoint responses o... Resolved

 Description   

Both RFC8040 [0] and draft 18 [1] define Root Resource Discovery mechanism. Neither Draft18 in Nitrogen snapshots, not rfc8040 in oxygen snapshots seem to have that implemented.

$ curl -v -u admin:admin -H "Accept:application/xrd+xml" http://127.0.0.1:8181/.well-known/host-meta

*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8181 (#0)
* Server auth using Basic with user 'admin'
> GET /.well-known/host-meta HTTP/1.1
> Host: 127.0.0.1:8181
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.52.1
> Accept:application/xrd+xml
>
< HTTP/1.1 404 Not Found
< Content-Type: text/html; charset=ISO-8859-1
< Cache-Control: must-revalidate,no-cache,no-store
< Content-Length: 305
<
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /.well-known/host-meta. Reason:
<pre>    Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>

</body>
</html>
* Curl_http_done: called premature == 0
* Connection #0 to host 127.0.0.1 left intact

[0] https://tools.ietf.org/html/rfc8040#section-3.1
[1] https://tools.ietf.org/html/draft-ietf-netconf-restconf-18#section-3.1



 Comments   
Comment by Jamo Luhrsen [ 21/May/20 ]

wsx25289, did you have any plans to work on this ticket?

Comment by wang senxiao [ 22/May/20 ]

this https://git.opendaylight.org/gerrit/c/netconf/+/89484

Comment by Jamo Luhrsen [ 22/May/20 ]

ah, that's why I missed it. the Jira in the gerrit is wrong. I'll put a comment there.

Comment by Iaroslav Kholiavko [ 16/Nov/20 ]

Patch:

https://git.opendaylight.org/gerrit/c/netconf/+/89419

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