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

apidocs explorer reffers to non-existing CSS resource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Oxygen SR3, Fluorine
    • Nitrogen SR1, Fluorine, Oxygen SR1
    • restconf-nb
    • None

      apidocs explorer refers to non-existent file.

      While this is harmless and normally hidden from user, on some servlet configurations this leads to double authentication of page (first is for index.html in apidocs and second goes to "catch all" servlet filter.

       

      How to reproduce:

      • load apidocs explorer
      • press F12 (to open developer tools in browser)
      • refresh page

      HTTP404 http://localhost:8181/css/opendaylight.css

       

      Problematic code seems to be restconf/sal-rest-docgen/src/main/resources/explorer/index.html:11

       

      <link rel="stylesheet" type="text/css" href="/css/opendaylight.css">

      Leading slash in front of "css" should be removed I guess.

       

      This bug is present in nitrogen, oxygen and master.

            rkosegi Richard Kosegi
            rkosegi Richard Kosegi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: