Skip to content

getSimpleSearchKwargs fails when called from relative path criteria parsing with plain dict #61

@AAClause

Description

@AAClause

In nodeHandler.py, relative path criteria (e.g., U{"role": 8}) are parsed using literal_eval() which returns a plain Python dict:

criteria = literal_eval(match.group())
searchKwargs = getSimpleSearchKwargs(criteria)

However, getSimpleSearchKwargs assumes the parameter has a .dump() method:

for prop, expr in list(criteria.dump().items()):

Impact: Relative path expressions with criteria (uppercase letters like U, D, A, etc.) raise AttributeError: 'dict' object has no attribute 'dump'.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions