Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Done
-
3.0.0, 2.0.14, 2.0.16, 3.0.5
-
None
-
Low
Description
RFC8040 section 4.8.1 specifies as url 'content' parameter the value 'nonconfig'.
In case the wrong value 'non-config' is used, an error '400 Bad Request' is returned - which is correct. Just the returned error message is misleading:
curl "http:/localhost:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=after-disaster/yang-ext:mount/tapi-common:context?content=non-config" -u "admin:admin" { "errors": { "error": [ { "error-tag": "invalid-value", "error-info": "Value can be 'all', 'config' or 'non-config', not 'non-config'", "error-message": "Invalid content value: Value can be 'all', 'config' or 'non-config', not 'non-config'", "error-type": "protocol" } ] }
Please correct the error-info and error-message text and list 'nonconfig' as valid parameter, instead of 'non-config'.
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 101167,1 | Fix error message typo | 3.0.x | netconf | Status: MERGED | +2 | +1 |
| 101168,1 | Fix error message typo | 2.0.x | netconf | Status: MERGED | +2 | +1 |
| 101604,3 | Fix error message typo | master | netconf | Status: MERGED | +2 | +1 |