Skip to content

check accepts XPath with a qualified enumeration literal and with like; both fail the build with CE0161 #1686

Open

Description

@GlennCorvers

What happens

mxcli check accepts an XPath constraint that mxbuild then rejects with CE0161 ("Error(s) in XPath constraint"):

  • an enumeration compared with its qualified literal (Status = Mod.ENUM_X.VALUE), and
  • like in an XPath (Name like 'A-%').

Both were found in a test file: check passes, and the failure only shows at the test build, where it fails the whole run (see the companion issue on mxcli test output).

Expected

check refuses (or warns on) both, with a hint to the valid form: Status = 'VALUE' and starts-with(Name, 'A-') / contains(...).

Reproduction

retrieve $L from Mod.Item where Status = Mod.ENUM_X.VALUE and Name like 'A-%';

mxcli check passes; the build reports CE0161.

Related: #1325 and #1466 (closed; other XPath shapes that passed check and failed with CE0161), #1515.

Environment

mxcli 0.28.0, Studio Pro 11.12.4, Windows 11. Found by the AppGen tooling (Ciphix) on a test app.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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