Skip to content

[ContentRouter] Error on flow install if using certain xpath #494

@Hooghof

Description

@Hooghof

Describe the bug
Using this xpath in a content router causes the error below on install: //*:DELIVERY_LEADTIME[text() = '1.0']

Error message
Failed to create route: 695cbef2f7168600130000bf-1cf1155b-0651-433e-8416-f4743a32e64a at: >>> Choice[[When[xpath{//*:DELIVERY_LEADTIME[text() = '1.0']} -> [to[sync:b799646e-c3d0-49cf-a30b-a5d5c2c7bb42?exchangePattern=InOut]]]] Otherwise[[to[sync:4e7bccff-9820-454d-91c3-f5907771ff71?exchangePattern=InOut]]]] <<< in route: Route(695cbef2f7168600130000bf-1cf1155b-0651-433e-8416-f4743... because: javax.xml.xpath.XPathExpressionException: org.apache.xpath.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace:

To Reproduce
Install the flow

Expected behavior
In 4.17.10, this flow can be installed

Flow
Name: ContentRouterXpath
Version: 3
Tenant: Regression Tests
Group: zIssues
URL: https://next.dovetail.world/flowdesigner/695cbef2f7168600130000bf/3/flow

Screenshots
Not applicable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions