[NETCONF-551] apidocs explorer reffers to non-existing CSS resource Created: 26/Jul/18  Updated: 06/Aug/18  Resolved: 06/Aug/18

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: Nitrogen SR1, Fluorine, Oxygen SR1
Fix Version/s: Oxygen SR3, Fluorine

Type: Bug Priority: Medium
Reporter: Richard Kosegi Assignee: Richard Kosegi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.


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