Added error handling in yang_path_arg triggered by no filter in get paginated
Fixed cornercase of restconf error return when no body Fixed cornercase when exactly / given as xpath Better error message when YANG not found: added which YANG file imports it
This commit is contained in:
parent
a4b4dc97ce
commit
2dcc14a0db
9 changed files with 39 additions and 14 deletions
|
|
@ -526,6 +526,10 @@ xpath_parse(const char *xpath,
|
|||
clixon_xpath_yacc xpy = {0,};
|
||||
cbuf *cb = NULL;
|
||||
|
||||
if (xpath == NULL){
|
||||
clicon_err(OE_XML, EINVAL, "XPath is NULL");
|
||||
goto done;
|
||||
}
|
||||
xpy.xpy_parse_string = xpath;
|
||||
xpy.xpy_name = "xpath parser";
|
||||
xpy.xpy_linenum = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue