Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
Helium
-
None
-
None
-
Operating System: Mac OS
Platform: PC
-
1582
Description
I found that if I perform a PUT to toaster I am able to define any content for the outer module name. That is I can do a PUT to:
http://localhost:8181/restconf/config/toaster:toaster
with this body:
{
"ANY_TEXT_YOU_WANT":
}
Essentially the ANY_TEXT_YOU_WANT is completely ignored by the parser. We should either validate it, or better yet, do NOT require it. That is I should be able to PUT to the above toaster URL just
{
darknessFactor:"4"
}
since I am already in the context of toaster based on the URL.
I do not know if the same problem exists with XML.