[NETCONF-929] Cannot retrieve operation resource Created: 12/Dec/22 Updated: 24/May/23 Resolved: 24/May/23 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0, 4.0.7, 5.0.7 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Ivan Hrasko | Assignee: | Yaroslav Lastivka |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
It not possible to retrieve operation resource, for example when invoked: GET: rests/operations/aaa-cert-rpc:getODLCertificate The response is error 400 with message:
{
"errors": {
"error": [
{
"error-tag": "invalid-value",
"error-message": "URI has bad format. If operations behind mount point should be showed, URI has to end with yang-ext:mountyang-ext:mount",
"error-type": "protocol"
}
]
}
}
According to RFC 8040, p. 22an empty leaf should be returned. |
| Comments |
| Comment by Ivan Hrasko [ 12/Dec/22 ] |
|
IMO: we can reuse solution of |
| Comment by Ivan Hrasko [ 14/Dec/22 ] |
|
We have to refactor OperationsContent class - split bodyFor method, create overloaded methods - which contain and does not contain identifier as parameter. |