[NETCONF-402] Apidoc explorer is broken after installing Boron SR3 Created: 20/Apr/17 Updated: 15/Mar/19 Resolved: 09/May/17 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | JALPA MODASIYA | Assignee: | Miroslav Kovac |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 8266 |
| Comments |
| Comment by JALPA MODASIYA [ 20/Apr/17 ] |
|
Restconf url <controller-ip>:8181/apidoc/explorer/index.html giving 500 response code but I can get 200 response from http://<controller-ip>:8181/restconf/operational/opendaylight-inventory:nodes/ |
| Comment by JALPA MODASIYA [ 20/Apr/17 ] |
|
Attachment RestconfUrl.PNG has been added with description: Restconf url <controller-ip>:8181/apidoc/explorer/index.html giving 500 response code |
| Comment by JALPA MODASIYA [ 20/Apr/17 ] |
|
Attachment karaflog.png has been added with description: Added karaf log |
| Comment by Ajay L [ 21/Apr/17 ] |
|
Issue is seen only when BGP feature is installed (feature:install odl-bgpcep-bgp-all). Swagger doc generator barfs while processing openconfig-bgp-multiprotocol.yang. There has been no change in this model. Earlier Boron release is fine, so this is most likely a regression. 2017-04-21 16:21:35,590 | DEBUG | qtp1660493819-61 | ModelGenerator | 273 - org.opendaylight.netconf.sal-rest-docgen - 1.4.3.Boron-SR3 | >> processLeafRef: xPathString=../config/afi-safi-name |
| Comment by Vratko Polak [ 25/Apr/17 ] |
|
We now have an apidocs suite. It seems to detect this Bug in Boron |
| Comment by Vratko Polak [ 25/Apr/17 ] |
|
Visible on Carbon |
| Comment by Miroslav Kovac [ 25/Apr/17 ] |
|
In yangtools SchemaContextUtil.findDataSchemaNodeForRelativeXPath returns null on openconfig-bgp-multiprotocol.yang leafref-> leaf afi-safi-name { description which is not correct in this case moving this bug to yangtools |
| Comment by Vratko Polak [ 26/Apr/17 ] |
|
> moving this bug to yangtools
|
| Comment by Peter Kajsa [ 27/Apr/17 ] |
|
Based on performed investigation it seems that Restconf is passing incorrect arguments to the method SchemaContextUtil.findDataSchemaNodeForRelativeXPath and so it returns null. Therefore I am moving this bug back to the Restconf. In more details, actual schema node (LeafEffectiveStatementImpl[qname=(http://openconfig.net/yang/bgp?revision=2015-10-09)afi-safi-name, path=AbsoluteSchemaPath {path=[(http://openconfig.net/yang/bgp?revision=2015-10-09)bgp, (http://openconfig.net/yang/bgp?revision=2015-10-09)global, (http://openconfig.net/yang/bgp?revision=2015-10-09)afi-safis, (http://openconfig.net/yang/bgp?revision=2015-10-09)afi-safi, (http://openconfig.net/yang/bgp?revision=2015-10-09)afi-safi-name]}]) |
| Comment by Miroslav Kovac [ 28/Apr/17 ] |
|
master fix -> https://git.opendaylight.org/gerrit/#/c/56240/ this will be cherry-picked to carbon as soon as merged in master |
| Comment by Miroslav Kovac [ 02/May/17 ] |
|
Hello since there is just target for carbon sr1. This is cherry picked just to stable/carbon. But the name of this bug is - Apidoc explorer is broken after installing Boron SR3 - I want to ask if you need this for boron too. carbon patch -> https://git.opendaylight.org/gerrit/#/c/56371/ |
| Comment by Miroslav Kovac [ 02/May/17 ] |
|
new fix was created for nitrogen will be cherry picked to carbon and possibly to boron -> https://git.opendaylight.org/gerrit/#/c/56386/ old one caused a faulty leafref resolving in some of the yang files. |
| Comment by Miroslav Kovac [ 03/May/17 ] |
|
stable/carbon -> https://git.opendaylight.org/gerrit/#/c/56425/ |
| Comment by Ivan Hrasko [ 09/May/17 ] |
|
cherry picked to stable/boron: https://git.opendaylight.org/gerrit/#/c/56386/ |