Skip to content

CREATE OR MODIFY REST CLIENT reports 'Created' for existing client #421

@retran

Description

@retran

Description

When using CREATE OR MODIFY on an existing REST client, the success message says "Created rest client: Module.Name" instead of "Modified rest client: Module.Name". It's unclear whether the operation actually performs an upsert or silently creates a duplicate.

Steps to Reproduce

./mxcli -p project.mpr -c "CREATE REST CLIENT MyModule.TestClient (BaseUrl: 'https://example.com')"
./mxcli -p project.mpr -c "CREATE OR MODIFY REST CLIENT MyModule.TestClient (BaseUrl: 'https://changed.com')"

Second command reports "Created" instead of "Modified".

Expected

Message should say "Modified rest client: MyModule.TestClient" when the client already exists.

Severity

Medium — misleading output, possible duplicate creation.

Reproducing test cases

  • integration-test-cases.md § 31.2 (CREATE OR MODIFY existing)

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