PageIndex/pageindex/backend
Ray 929b3dfc7c fix: enforce collection membership on cloud doc-scoped operations
CloudBackend ignored the collection argument on get_document,
get_document_structure, get_page_content and delete_document, so a
doc_id addressed through the wrong collection was served or deleted
globally — deletion could destroy a document in another collection.

Add _require_document (mirroring LocalBackend): compare the doc's
folderId against the collection's folder and raise
DocumentNotFoundError on mismatch. get_document reuses its existing
metadata call, so no extra round-trip there; plans without folders
skip the check. Legacy client methods keep global-by-id semantics.
Pin the contract in the Backend protocol.
2026-07-16 06:20:24 +08:00
..
__init__.py feat: add PageIndex SDK with local/cloud dual-mode support (#207) 2026-04-08 20:21:58 +08:00
cloud.py fix: enforce collection membership on cloud doc-scoped operations 2026-07-16 06:20:24 +08:00
local.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00
protocol.py fix: enforce collection membership on cloud doc-scoped operations 2026-07-16 06:20:24 +08:00