* RESTCONF strict namespace validation of data in POST and PUT.

* Accepted:
  ```
    curl -X PUT http://localhost/restconf/data/mod:a -d {"mod:a":"x"}
  ```
  * Not accepted (must prefix "a" with module):
  ```
    curl -X PUT http://localhost/restconf/data/mod:a -d {"a":"x"}
  ```
  * Undefine `RESTCONF_NS_DATA_CHECK` in include/clixon_custom.h to disable strict check.
This commit is contained in:
Olof hagsand 2019-06-10 16:15:02 +02:00
parent 40f3d48f2b
commit de15b2bf80
9 changed files with 132 additions and 45 deletions

View file

@ -44,3 +44,7 @@
/* Use new xml_insert code on sorted xml lists
*/
#define USE_XML_INSERT
/* Make namespace check on RESTCONF PUT and POST -d data
*/
#define RESTCONF_NS_DATA_CHECK