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

OpenAPI: invalid explorer redirection URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 5.0.10, 6.0.8, 7.0.4
    • None
    • netconf

      The redirection path for the OpenAPI explorer is incorrectly set, leading users to a non-existent URL. As a result, attempting to access the OpenAPI explorer results in a 404 Not Found error.

      Steps to reproduce:
      1. run karaf
      2. Install features by `feature:install odl-netconf-topology odl-restconf-nb odl-restconf-openapi`
      3. Attempt to access the OpenAPI UI by navigating to `http://localhost:8181/openapi/api/v3/ui`.

      Expected Behavior:
      The browser should redirect to http://localhost:8181/openapi/explorer/index.html, where the OpenAPI explorer is accessible.

      Actual Behavior:
      The browser is incorrectly redirected to http://localhost:8181/openapi/api/explorer/index.html, resulting in a 404 Not Found error page.

      <html>
      
      <head>
          <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
          <title>Error 404 Not Found</title>
      </head>
      
      <body>
          <h2>HTTP ERROR 404 Not Found</h2>
          <table>
              <tr>
                  <th>URI:</th>
                  <td>/openapi/api/v3/../explorer/index.html</td>
              </tr>
              <tr>
                  <th>STATUS:</th>
                  <td>404</td>
              </tr>
              <tr>
                  <th>MESSAGE:</th>
                  <td>Not Found</td>
              </tr>
              <tr>
                  <th>SERVLET:</th>
                  <td>default</td>
              </tr>
          </table>
      
      </body>
      
      </html>
      

            yaroslav.lastivka Yaroslav Lastivka
            yaroslav.lastivka Yaroslav Lastivka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: