mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 15:52:36 +01:00
fix: validate work product execution workspace references (#14063)
Reject invalid and cross-company execution workspace references with a useful 422 before changing the work product. Hold the validated reference through the transaction so concurrent deletion cannot turn validation into a 500. Verified 13 focused tests, full typecheck/build, and green PR CI. Greptile 5/5 with no unresolved comments. The known UI copy-toast flake passed on an unchanged-commit retry and in a focused local run. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
96bf004a79
commit
c3ddb288b1
3 files changed
+150
-1
No files matched your search
@@ -173,6 +173,13 @@ Use `type: "artifact"`, `provider: "paperclip"`, and metadata containing the
|
||||
uploaded `attachmentId`. The server canonicalizes `contentType`, `byteSize`,
|
||||
`contentPath`, `openPath`, `downloadPath`, and `originalFilename`.
|
||||
|
||||
The optional `executionWorkspaceId` on work-product create and update requests
|
||||
must identify an execution workspace in the same company. A project workspace
|
||||
ID is a different identifier and cannot be used here. Omit the field when no
|
||||
execution workspace is available, or send `null` to clear an existing link.
|
||||
Invalid references return `422` without changing the work product or the current
|
||||
primary product.
|
||||
|
||||
## Verification
|
||||
|
||||
The file-delivery integration suite runs the real helper through queue and
|
||||
|
||||
Reference in new issue
Block a user