-
Bug
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
7941
This is a more specific description of the "output" part of NETCONF-361.
Since YANGTOOLS-663 Carbon internally treats Yang modelled RPCs without output statement as containing an empty output statement.
This should be affecting what the Restconf response looks like.
In Boron-SR2, the Restconf POST to such an RPC-modeled URL returns no text reponse (a zero-length string) with HTTP status code 200 (which is wrong, it should be 204, not sure if that has a Bug open).
But after NETCONF-361, the response (for Accept headers implying JSON) should be '{"output":{}}' (without single quotes) and HTTP status code 200.
Currently, Carbon snapshot builds show [0][1] Boron-SR2 behavior.
It is probably too late in the release cycle for changing Carbon behavior (some CSIT tests may be relying on response text and/or status code), so I guess the best thing to do is to document that the Boron-SR2 behavior is kept in Carbon, but it will be fixed in Nitrogen.
[0] https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/604/archives/log.html.gz#s1-s8-t2-k2-k4-k7-k1
[1] https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/604/archives/log.html.gz#s1-s8-t2-k2-k4-k7-k2