List cap (F4): a server read with overrideAccess: true that passes a request on is not capped (the cookie scanner's scheduled crawl read its review list through the token request); reference types without the e2e fixtures; changelog heading covers all of 1.18.0

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 17:22:10 +01:00
co-authored by Claude Opus 5.5
parent e23edb2429
commit 2af8ef180f
9 changed files with 48 additions and 1297 deletions
+1
View File
@@ -249,6 +249,7 @@ describe('denial of service and injection — lists from outside (F4, F5)', () =
it('F4: staff, the Local API, one document by id and listLimit: false are left alone; max / exclude / staff adapt it', () => {
expect(run({ limit: 5000 }, staff)).toEqual({ limit: 5000 })
expect(run({ limit: 5000 }, { ...visitor, payloadAPI: 'local' })).toEqual({ limit: 5000 })
expect(run({ limit: 0, overrideAccess: true, pagination: false }, visitor)).toEqual({ limit: 0, overrideAccess: true, pagination: false })
expect(run({ id: 'a', limit: 5000 }, visitor)).toEqual({ id: 'a', limit: 5000 })
expect(run({ limit: 5000 }, visitor, 'read', buildQueryGuardHook({ listLimit: false }))).toEqual({ limit: 5000 })
expect(run({ limit: 5000 }, visitor, 'read', buildQueryGuardHook({ listLimit: { max: 20 } }))).toMatchObject({ limit: 20 })