Skip to content

Commit 9aa77b4

Browse files
committed
fix(metadata-protocol): a refused targetNamespace answers 400 INVALID_REQUEST with its reason
The two targetNamespace refusals of the unmanaged import (the namespace rule; the shared namespaces base/system/sys) carried no code, so the boundary answered VALIDATION_ERROR and the install-local door withheld the reason. They now answer INVALID_REQUEST with details.targetNamespace, as the install-modes guide documents. Door pins with the real import, and the Q6 pair: a managed install beside a renamed copy is admitted; beside an unrenamed copy it is refused 409. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2ewD2rAszkPvzKBT8T
1 parent 9cecea4 commit 9aa77b4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): a refused `targetNamespace` on an unmanaged install answers `400 INVALID_REQUEST` with the reason, as documented
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An unmanaged install whose `targetNamespace` the namespace rule refuses (`Acme`, `my-ns`, too long), or that names a shared namespace (`base`, `system`, `sys`), was refused with a 400 that carried no code. The boundary answered it as `VALIDATION_ERROR`, and the install-local door (`POST /api/v1/marketplace/install-local`) withheld the reason, answering only that it was in the server log.
11+
12+
Both refusals now answer `400 INVALID_REQUEST`, the code the install-modes guide and the other rename refusals already give, with `details.targetNamespace`. Through the install-local door the answer now carries the reason, for example `Invalid package namespace 'Acme' on targetNamespace. ...`. Nothing else changes: the refusal still comes before anything is written, and a `targetPackageId` the id rule refuses still answers `VALIDATION_ERROR`.

0 commit comments

Comments
 (0)