Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-499

Support for Root Resource Discovery is missing

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.13.0, Aluminium SR2
    • Component/s: Restconf
    • Labels:
    • Environment:

      manual testing

      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

        Attachments

          Issue Links

          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              IaroslavK Iaroslav Kholiavko
              Reporter:
              vrpolak Vratko Polak
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: