Skip to content

ALTER SNIPPET looks up page namespace instead of snippet namespace #402

@retran

Description

@retran

Impact

ALTER SNIPPET is non-functional — always fails with "page not found" even when snippet exists.

Steps to Reproduce

./mxcli -p project.mpr -c "DESCRIBE SNIPPET Module.MySnippet"
# Works — snippet exists

./mxcli -p project.mpr -c "ALTER SNIPPET Module.MySnippet { SET Title = 'Test' }"
# Error: page not found: Module.MySnippet

Root Cause

ALTER SNIPPET searches the page registry instead of the snippet registry.

Comparison

Command Target exists Result
ALTER PAGE Module.MyPage Yes Works
ALTER SNIPPET Module.MySnippet Yes "page not found"

Expected Behavior

ALTER SNIPPET operates on the snippet registry, matching DESCRIBE SNIPPET behavior.

Severity

Medium — no workaround for in-place snippet modification.


Discovered during AI-assisted manual testing session (2026-04-29, mxcli v0.7.0-257-ga07e7e0).

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