Test denied actions through a PDF API

3 November 2026

Hands typing on a laptop at a wooden table.
Illustrative photograph. Cropped and resized. Photo: “Computer Laptop Working” — Kristin Hardwick / NegativeSpace. · CC0 1.0

A reviewer cannot replace a PDF through the application. To test the permission boundary, repeat the same harmless replacement through the supported API with an authorised test client carrying that reviewer's effective rights. Keep the actor, organisation, target file and requested change constant. A hidden button answers a different question from a refused service operation.

Establish what should stay unchanged

Use a disposable draft containing a unique marker and record its resource ID, current version, byte digest and access rules. Prepare a replacement with a different marker. First verify that the reviewer can read the correct original. A failed request from an invalid token cannot establish how the system treats an authenticated reviewer.

Evidence to collectInterface pathAPI path
Effective identityRecord account, role and workspace.Confirm the client acts as the same test principal or an explicitly equivalent one.
Attempted operationRecord whether the replacement control exists and what submitting it does.Use the documented replacement operation and preserve the non-secret request reference.
DecisionRetain the actual client-visible outcome.Trace the final authorisation and processing outcome where available.
Resource stateReopen the original using a separately authorised observer.Verify the expected version, original bytes and absence of an unintended replacement.

The source’s RBAC-06 row expects a service refusal independently of interface availability, but contains no observed result. No response code or status label has been supplied for your application. A consistent digest establishes the bytes compared at two moments; it does not prove that no other version was created. Negative tests

Interpret an asynchronous response

An initial acceptance response may refer to transport, staging or a queued action. It does not establish that the replacement was authorised. Wait for the supported terminal state, then reconcile the resource and any successor version with the actual event record. Record any staged test bytes separately from access to the target document.

If the interface refuses the change but the API changes the document, preserve the disposable evidence and have the application owner investigate that route before approving the role. Rerun both paths and a permitted read after correction. If the final effect cannot be inspected, retain an unresolved outcome and name the missing observation.

Part of the Design roles and permissions for a PDF workspace guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).