PageIndex/pageindex
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
..
backend fix: enforce collection membership on cloud doc-scoped operations 2026-07-16 06:20:24 +08:00
index refactor: move _coerce_bool to index/utils as the shared home 2026-07-16 02:24:52 +08:00
parser fix: empty-list scope, get_tree bool casing, md fence tracking; dedupe base URL 2026-07-10 11:17:20 +08:00
storage fix: resolve concurrency and DoS pitfalls from PR #272 review 2026-07-10 14:49:55 +08:00
__init__.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00
agent.py fix: address max-effort review findings 2026-07-13 18:49:09 +08:00
client.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00
cloud_api.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00
collection.py fix: enforce collection membership on cloud doc-scoped operations 2026-07-16 06:20:24 +08:00
config.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00
config.yaml fix: restore config.yaml as the CLI config base 2026-07-13 19:28:39 +08:00
errors.py fix: address max-effort review findings 2026-07-13 18:49:09 +08:00
events.py feat: add PageIndex SDK with local/cloud dual-mode support (#207) 2026-04-08 20:21:58 +08:00
page_index.py fix: CMYK image drop, empty-doc crash, page_index shadowing, sqlite hardening, flaky tests 2026-07-09 11:58:59 +08:00
page_index_md.py fix: address xhigh code-review findings on 2d46d68..8f536cb 2026-07-08 21:56:41 +08:00
retrieve.py fix: CMYK image drop, empty-doc crash, page_index shadowing, sqlite hardening, flaky tests 2026-07-09 11:58:59 +08:00
tokens.py refactor(sdk): typed returns, protocol contract, parser layering 2026-07-07 12:15:34 +08:00
types.py fix: CMYK image drop, empty-doc crash, page_index shadowing, sqlite hardening, flaky tests 2026-07-09 11:58:59 +08:00
utils.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00