[NETCONF-410] Apidoc: Incomprehensible 500 id model is wrong Created: 26/Apr/17  Updated: 15/Mar/19  Resolved: 02/May/17

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Vratko Polak 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
Platform: All


External issue ID: 8311

 Description   

This is exactly NETCONF-402 but instead of fixing the offending model, this Bug is to ensure ODL return a readable explanation what went wrong.

I am not sure what is the contract between apidoc and Yangtools. Should the offending model be rejected already when installing its feature?

To fix, the error message should locate the offending Yang statement. Not sure what the correct Http status code would be, but so far 500 was always a bug.



 Comments   
Comment by Robert Varga [ 27/Apr/17 ]

Since it's a NPE in the generator, it has to be handled there.

Comment by Miroslav Kovac [ 28/Apr/17 ]

https://git.opendaylight.org/gerrit/#/c/56240/

Comment by Miroslav Kovac [ 02/May/17 ]

new fix was created -> https://git.opendaylight.org/gerrit/#/c/56386/

old one caused a faulty leafref resolving in some of the yang files

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