Startup transactions did not mark added tree with XML_FLAG_ADD as it should
This commit is contained in:
parent
9085432aa7
commit
7e109d1d4b
2 changed files with 2 additions and 0 deletions
|
|
@ -184,6 +184,7 @@
|
||||||
|
|
||||||
### Corrected Bugs
|
### Corrected Bugs
|
||||||
|
|
||||||
|
* Startup transactions did not mark added tree with XML_FLAG_ADD as it should.
|
||||||
* Restconf PUT different keys detected (thanks @dcornejo) and fixed
|
* Restconf PUT different keys detected (thanks @dcornejo) and fixed
|
||||||
* This was accepted but shouldn't be: `PUT http://restconf/data/A=hello/B -d '{"B":"goodbye"}'`
|
* This was accepted but shouldn't be: `PUT http://restconf/data/A=hello/B -d '{"B":"goodbye"}'`
|
||||||
* See RFC 8040 Sec 4.5
|
* See RFC 8040 Sec 4.5
|
||||||
|
|
|
||||||
|
|
@ -212,6 +212,7 @@ startup_common(clicon_handle h,
|
||||||
xt = NULL;
|
xt = NULL;
|
||||||
x = NULL;
|
x = NULL;
|
||||||
while ((x = xml_child_each(td->td_target, x, CX_ELMNT)) != NULL){
|
while ((x = xml_child_each(td->td_target, x, CX_ELMNT)) != NULL){
|
||||||
|
xml_flag_set(x, XML_FLAG_ADD);
|
||||||
if (cxvec_append(x, &td->td_avec, &td->td_alen) < 0)
|
if (cxvec_append(x, &td->td_avec, &td->td_alen) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue