Skip to content

Commit

Permalink
Fix issue with xpath query
Browse files Browse the repository at this point in the history
A "malformed-message" error is returned if an xpath query of the type
"/oc-sys:system/processes/process/state/name"
is made, where the xpath consists of a filter to match on the
leaf-nodes ("name") associated with multiple list entries("process").
This is because no matching apteryx-xml schema is found for this
type of XPATH query.
The proposed change fixes this issue.
  • Loading branch information
psiyengar committed Mar 18, 2024
1 parent b65ba5e commit d2d5c57
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -2625,8 +2625,6 @@ _sch_path_to_gnode (sch_instance * instance, sch_node ** rschema, sch_node ** vs
char *name = NULL;
char *last_good_schema_name = NULL;
sch_node *last_good_schema = NULL;
_Atomic static sch_node *last_valid_schema = NULL;


if (path && path[0] == '/')
{
Expand Down

0 comments on commit d2d5c57

Please sign in to comment.