[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:
Blocks
blocks NETCONF-928 Discover mountpoint RPC operation thr... Resolved

 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 NETCONF-822. The getOperationsJSON/getOperationsXML methods can be enhanced with identifier and lookup for just one RPC/action can be made.

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.

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