Compare commits

..
Author SHA1 Message Date
Trenton H 7aad30b134 Fix: sign cache entries so values planted in Redis are never unpickled 2026-11-30 20:28:25 -08:00
dependabot[bot] 8464a91b4c Chore(deps-dev): Bump @playwright/test from 1.64.1 to 1.65.1 in /src-ui (#14938)
Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.64.1 to 1.65.1.
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.64.1...v1.65.1)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-version: 1.65.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-30 19:12:17 -08:00
GitHub Actions 2d28fc216c Auto translate strings 2026-12-01 02:55:10 +00:00
dependabot[bot] e399937109 Chore(deps): Bump the frontend-angular-dependencies group (#14932)
Bumps the frontend-angular-dependencies group in /src-ui with 19 updates:

| Package | From | To |
| --- | --- | --- |
| [@angular/cdk](https://github.com/angular/components) | `22.2.4` | `22.3.0` |
| [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) | `22.2.3` | `22.3.0` |
| [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) | `22.2.3` | `22.3.0` |
| [@angular/core](https://github.com/angular/angular/tree/HEAD/packages/core) | `22.2.3` | `22.3.0` |
| [@angular/forms](https://github.com/angular/angular/tree/HEAD/packages/forms) | `22.2.3` | `22.3.0` |
| [@angular/localize](https://github.com/angular/angular) | `22.2.3` | `22.3.0` |
| [@angular/platform-browser](https://github.com/angular/angular/tree/HEAD/packages/platform-browser) | `22.2.3` | `22.3.0` |
| [@angular/router](https://github.com/angular/angular/tree/HEAD/packages/router) | `22.2.3` | `22.3.0` |
| [ngx-cookie-service](https://github.com/stevermeister/ngx-cookie-service) | `22.0.0` | `22.2.0` |
| [@angular-devkit/core](https://github.com/angular/angular-cli) | `22.2.4` | `22.3.0` |
| [@angular-devkit/schematics](https://github.com/angular/angular-cli) | `22.2.4` | `22.3.0` |
| [@angular-eslint/builder](https://github.com/angular-eslint/angular-eslint/tree/HEAD/packages/builder) | `22.6.0` | `22.8.0` |
| [@angular-eslint/eslint-plugin](https://github.com/angular-eslint/angular-eslint/tree/HEAD/packages/eslint-plugin) | `22.6.0` | `22.8.0` |
| [@angular-eslint/eslint-plugin-template](https://github.com/angular-eslint/angular-eslint/tree/HEAD/packages/eslint-plugin-template) | `22.6.0` | `22.8.0` |
| [@angular-eslint/schematics](https://github.com/angular-eslint/angular-eslint/tree/HEAD/packages/schematics) | `22.6.0` | `22.8.0` |
| [@angular-eslint/template-parser](https://github.com/angular-eslint/angular-eslint/tree/HEAD/packages/template-parser) | `22.6.0` | `22.8.0` |
| [@angular/build](https://github.com/angular/angular-cli) | `22.2.4` | `22.3.0` |
| [@angular/cli](https://github.com/angular/angular-cli) | `22.2.4` | `22.3.0` |
| [@angular/compiler-cli](https://github.com/angular/angular/tree/HEAD/packages/compiler-cli) | `22.2.3` | `22.3.0` |


Updates `@angular/cdk` from 22.2.4 to 22.3.0
- [Release notes](https://github.com/angular/components/releases)
- [Changelog](https://github.com/angular/components/blob/main/CHANGELOG.md)
- [Commits](https://github.com/angular/components/compare/v22.2.4...v22.3.0)

Updates `@angular/common` from 22.2.3 to 22.3.0
- [Release notes](https://github.com/angular/angular/releases)
- [Commits](https://github.com/angular/angular/commits/v22.3.0/packages/common)

Updates `@angular/compiler` from 22.2.3 to 22.3.0
- [Release notes](https://github.com/angular/angular/releases)
- [Commits](https://github.com/angular/angular/commits/v22.3.0/packages/compiler)

Updates `@angular/core` from 22.2.3 to 22.3.0
- [Release notes](https://github.com/angular/angular/releases)
- [Commits](https://github.com/angular/angular/commits/v22.3.0/packages/core)

Updates `@angular/forms` from 22.2.3 to 22.3.0
- [Release notes](https://github.com/angular/angular/releases)
- [Commits](https://github.com/angular/angular/commits/v22.3.0/packages/forms)

Updates `@angular/localize` from 22.2.3 to 22.3.0
- [Release notes](https://github.com/angular/angular/releases)
- [Commits](https://github.com/angular/angular/compare/v22.2.3...v22.3.0)

Updates `@angular/platform-browser` from 22.2.3 to 22.3.0
- [Release notes](https://github.com/angular/angular/releases)
- [Commits](https://github.com/angular/angular/commits/v22.3.0/packages/platform-browser)

Updates `@angular/router` from 22.2.3 to 22.3.0
- [Release notes](https://github.com/angular/angular/releases)
- [Commits](https://github.com/angular/angular/commits/v22.3.0/packages/router)

Updates `ngx-cookie-service` from 22.0.0 to 22.2.0
- [Release notes](https://github.com/stevermeister/ngx-cookie-service/releases)
- [Changelog](https://github.com/stevermeister/ngx-cookie-service/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stevermeister/ngx-cookie-service/compare/v22.0.0...v22.2.0)

Updates `@angular-devkit/core` from 22.2.4 to 22.3.0
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v22.2.4...v22.3.0)

Updates `@angular-devkit/schematics` from 22.2.4 to 22.3.0
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v22.2.4...v22.3.0)

Updates `@angular-eslint/builder` from 22.6.0 to 22.8.0
- [Release notes](https://github.com/angular-eslint/angular-eslint/releases)
- [Changelog](https://github.com/angular-eslint/angular-eslint/blob/main/packages/builder/CHANGELOG.md)
- [Commits](https://github.com/angular-eslint/angular-eslint/commits/v22.8.0/packages/builder)

Updates `@angular-eslint/eslint-plugin` from 22.6.0 to 22.8.0
- [Release notes](https://github.com/angular-eslint/angular-eslint/releases)
- [Changelog](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/angular-eslint/angular-eslint/commits/v22.8.0/packages/eslint-plugin)

Updates `@angular-eslint/eslint-plugin-template` from 22.6.0 to 22.8.0
- [Release notes](https://github.com/angular-eslint/angular-eslint/releases)
- [Changelog](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/CHANGELOG.md)
- [Commits](https://github.com/angular-eslint/angular-eslint/commits/v22.8.0/packages/eslint-plugin-template)

Updates `@angular-eslint/schematics` from 22.6.0 to 22.8.0
- [Release notes](https://github.com/angular-eslint/angular-eslint/releases)
- [Changelog](https://github.com/angular-eslint/angular-eslint/blob/main/packages/schematics/CHANGELOG.md)
- [Commits](https://github.com/angular-eslint/angular-eslint/commits/v22.8.0/packages/schematics)

Updates `@angular-eslint/template-parser` from 22.6.0 to 22.8.0
- [Release notes](https://github.com/angular-eslint/angular-eslint/releases)
- [Changelog](https://github.com/angular-eslint/angular-eslint/blob/main/packages/template-parser/CHANGELOG.md)
- [Commits](https://github.com/angular-eslint/angular-eslint/commits/v22.8.0/packages/template-parser)

Updates `@angular/build` from 22.2.4 to 22.3.0
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v22.2.4...v22.3.0)

Updates `@angular/cli` from 22.2.4 to 22.3.0
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v22.2.4...v22.3.0)

Updates `@angular/compiler-cli` from 22.2.3 to 22.3.0
- [Release notes](https://github.com/angular/angular/releases)
- [Commits](https://github.com/angular/angular/commits/v22.3.0/packages/compiler-cli)

---
updated-dependencies:
- dependency-name: "@angular/cdk"
  dependency-version: 22.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/common"
  dependency-version: 22.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/compiler"
  dependency-version: 22.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/core"
  dependency-version: 22.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/forms"
  dependency-version: 22.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/localize"
  dependency-version: 22.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/platform-browser"
  dependency-version: 22.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/router"
  dependency-version: 22.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: ngx-cookie-service
  dependency-version: 22.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular-devkit/core"
  dependency-version: 22.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular-devkit/schematics"
  dependency-version: 22.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular-eslint/builder"
  dependency-version: 22.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular-eslint/eslint-plugin"
  dependency-version: 22.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular-eslint/eslint-plugin-template"
  dependency-version: 22.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular-eslint/schematics"
  dependency-version: 22.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular-eslint/template-parser"
  dependency-version: 22.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/build"
  dependency-version: 22.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/cli"
  dependency-version: 22.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
- dependency-name: "@angular/compiler-cli"
  dependency-version: 22.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-angular-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-30 18:53:37 -08:00
dependabot[bot] 9c8fd02bf8 Chore(deps-dev): Bump the frontend-eslint-dependencies group (#14933)
Bumps the frontend-eslint-dependencies group in /src-ui with 4 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin), [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser), [@typescript-eslint/utils](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/utils) and [eslint](https://github.com/eslint/eslint).


Updates `@typescript-eslint/eslint-plugin` from 8.72.0 to 8.74.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.74.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.72.0 to 8.74.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.74.0/packages/parser)

Updates `@typescript-eslint/utils` from 8.72.0 to 8.74.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/utils/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.74.0/packages/utils)

Updates `eslint` from 10.13.0 to 10.15.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.13.0...v10.15.0)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.74.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-eslint-dependencies
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.74.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-eslint-dependencies
- dependency-name: "@typescript-eslint/utils"
  dependency-version: 8.74.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-eslint-dependencies
- dependency-name: eslint
  dependency-version: 10.15.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-eslint-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-01 02:23:22 +00:00
dependabot[bot] ec82da6d9a Chore(deps-dev): Bump prettier from 3.9.10 to 3.10.1 in /src-ui (#14937)
Bumps [prettier](https://github.com/prettier/prettier) from 3.9.10 to 3.10.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.9.10...3.10.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.10.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-01 02:10:36 +00:00
dependabot[bot] 00a73a24d2 Chore(deps): Bump tslib from 2.8.1 to 2.9.1 in /src-ui (#14934)
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.8.1 to 2.9.1.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/v2.8.1...v2.9.1)

---
updated-dependencies:
- dependency-name: tslib
  dependency-version: 2.9.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-01 02:00:08 +00:00
dependabot[bot] 9d8903b32d Chore(deps): Bump pdfjs-dist from 6.4.299 to 6.5.438 in /src-ui (#14936)
Bumps [pdfjs-dist](https://github.com/mozilla/pdf.js) from 6.4.299 to 6.5.438.
- [Release notes](https://github.com/mozilla/pdf.js/releases)
- [Commits](https://github.com/mozilla/pdf.js/compare/v6.4.299...v6.5.438)

---
updated-dependencies:
- dependency-name: pdfjs-dist
  dependency-version: 6.5.438
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-01 01:43:48 +00:00
dependabot[bot] 637d190332 Chore(deps): Bump marked from 18.1.1 to 18.2.1 in /src-ui (#14940)
Bumps [marked](https://github.com/markedjs/marked) from 18.1.1 to 18.2.1.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](https://github.com/markedjs/marked/compare/v18.1.1...v18.2.1)

---
updated-dependencies:
- dependency-name: marked
  dependency-version: 18.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-01 01:28:04 +00:00
dependabot[bot] 8b34780d3e Chore(deps-dev): Bump @types/node from 26.6.5 to 26.6.6 in /src-ui (#14939)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 26.6.5 to 26.6.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-01 01:06:53 +00:00
dependabot[bot] bb3604624b Chore(deps): Bump bootstrap from 5.3.8 to 5.3.9 in /src-ui (#14935)
Bumps [bootstrap](https://github.com/twbs/bootstrap) from 5.3.8 to 5.3.9.
- [Release notes](https://github.com/twbs/bootstrap/releases)
- [Commits](https://github.com/twbs/bootstrap/compare/v5.3.8...v5.3.9)

---
updated-dependencies:
- dependency-name: bootstrap
  dependency-version: 5.3.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-01 00:38:56 +00:00
shamoon 8591e71a4e Fix: fix failing timezone tests 2026-11-30 16:13:43 -08:00
shamoon 5f6617ff29 Fix: correct default user deletion handler key (#14942) 2026-11-30 15:57:49 -08:00
tooomm 56a77ed914 Remove uv dependabot beta flag (#14780) 2026-11-30 11:16:38 -08:00
GitHub Actions 970aab73ea Auto translate strings 2026-11-30 18:40:17 +00:00
Trenton H d1251aaef6 Fix: return a JSON 404 for unmatched API URLs and non-numeric document ids (#14917) 2026-11-30 18:38:51 +00:00
Trenton H fca95bc821 Fix: validate the TOTP activation request with a serializer so a missing field is a 400 (#14920) 2026-11-30 18:02:08 +00:00
shamoon f684baaea8 Fix: ensure tika metadata is string (#14925) 2026-11-30 09:45:01 -08:00
GitHub Actions e7ead755d3 Auto translate strings 2026-11-30 04:06:20 +00:00
Trenton H be4c4cdbfe Chore: document missing parameters and response shapes in the OpenAPI schema (#14916)
* Chore: document missing parameters and response shapes in the OpenAPI schema

* Chore: use the log files constant directly instead of a duplicate class attribute
2026-11-30 04:04:54 +00:00
Trenton H 3e6e1e6efd Fix: queue one consumption chord per mail so it produces a single ProcessedMail row (#14915)
With the "everything" consumption scope the eml and the attachments were each queued
as their own chord, so each ran its own mail action and wrote its own ProcessedMail row.
A mail without attachments also got an early PROCESSED_WO_CONSUMPTION row alongside the
eml's SUCCESS row.

Build the eml and attachment tasks separately, then queue them together once per message.
2026-11-30 03:45:04 +00:00
24 changed files with 2054 additions and 1902 deletions

No files matched your search

-2
View File
@@ -1,8 +1,6 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
# Required for uv support for now
enable-beta-ecosystems: true
updates:
# Enable version updates for pnpm
- package-ecosystem: "npm"
+1 -1
View File
@@ -193,7 +193,7 @@ jobs:
runs-on: ubuntu-26.04
permissions:
contents: read
container: mcr.microsoft.com/playwright:v1.64.1-resolute
container: mcr.microsoft.com/playwright:v1.65.1-resolute
env:
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
+35 -35
View File
@@ -5,14 +5,14 @@
<trans-unit id="ngb.alert.close" datatype="html">
<source>Close</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/alert/alert.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/alert/alert.ts</context>
<context context-type="linenumber">38,39</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.carousel.slide-number" datatype="html">
<source> Slide <x id="INTERPOLATION" equiv-text="source?: NgbSli"/> of <x id="INTERPOLATION_1" equiv-text="s._cycleToSelec"/> </source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/carousel/carousel.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/carousel/carousel.ts</context>
<context context-type="linenumber">386,393</context>
</context-group>
<note priority="1" from="description">Currently selected slide number read by screen reader</note>
@@ -20,219 +20,219 @@
<trans-unit id="ngb.carousel.previous" datatype="html">
<source>Previous</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/carousel/carousel.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/carousel/carousel.ts</context>
<context context-type="linenumber">425,426</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.carousel.next" datatype="html">
<source>Next</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/carousel/carousel.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/carousel/carousel.ts</context>
<context context-type="linenumber">452,453</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.datepicker.select-month" datatype="html">
<source>Select month</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/datepicker/datepicker-navigation-select.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/datepicker/datepicker-navigation-select.ts</context>
<context context-type="linenumber">52</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/datepicker/datepicker-navigation-select.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/datepicker/datepicker-navigation-select.ts</context>
<context context-type="linenumber">52</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.datepicker.select-year" datatype="html">
<source>Select year</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/datepicker/datepicker-navigation-select.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/datepicker/datepicker-navigation-select.ts</context>
<context context-type="linenumber">52</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/datepicker/datepicker-navigation-select.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/datepicker/datepicker-navigation-select.ts</context>
<context context-type="linenumber">52</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.datepicker.previous-month" datatype="html">
<source>Previous month</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/datepicker/datepicker-navigation.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/datepicker/datepicker-navigation.ts</context>
<context context-type="linenumber">73,76</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/datepicker/datepicker-navigation.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/datepicker/datepicker-navigation.ts</context>
<context context-type="linenumber">73,76</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.datepicker.next-month" datatype="html">
<source>Next month</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/datepicker/datepicker-navigation.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/datepicker/datepicker-navigation.ts</context>
<context context-type="linenumber">73,74</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/datepicker/datepicker-navigation.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/datepicker/datepicker-navigation.ts</context>
<context context-type="linenumber">73,74</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.pagination.first" datatype="html">
<source>««</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/pagination/pagination.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/pagination/pagination.ts</context>
<context context-type="linenumber">277,278</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.pagination.previous" datatype="html">
<source>«</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/pagination/pagination.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/pagination/pagination.ts</context>
<context context-type="linenumber">277,278</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.pagination.next" datatype="html">
<source>»</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/pagination/pagination.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/pagination/pagination.ts</context>
<context context-type="linenumber">277</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.pagination.last" datatype="html">
<source>»»</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/pagination/pagination.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/pagination/pagination.ts</context>
<context context-type="linenumber">277</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.pagination.first-aria" datatype="html">
<source>First</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/pagination/pagination.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/pagination/pagination.ts</context>
<context context-type="linenumber">277,278</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.pagination.previous-aria" datatype="html">
<source>Previous</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/pagination/pagination.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/pagination/pagination.ts</context>
<context context-type="linenumber">277,278</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.pagination.next-aria" datatype="html">
<source>Next</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/pagination/pagination.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/pagination/pagination.ts</context>
<context context-type="linenumber">277,278</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.pagination.last-aria" datatype="html">
<source>Last</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/pagination/pagination.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/pagination/pagination.ts</context>
<context context-type="linenumber">277,278</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.progressbar.value" datatype="html">
<source><x id="INTERPOLATION"/></source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/progressbar/progressbar.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/progressbar/progressbar.ts</context>
<context context-type="linenumber">39,40</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.HH" datatype="html">
<source>HH</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.hours" datatype="html">
<source>Hours</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.MM" datatype="html">
<source>MM</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.minutes" datatype="html">
<source>Minutes</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.increment-hours" datatype="html">
<source>Increment hours</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.decrement-hours" datatype="html">
<source>Decrement hours</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.increment-minutes" datatype="html">
<source>Increment minutes</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.decrement-minutes" datatype="html">
<source>Decrement minutes</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.SS" datatype="html">
<source>SS</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.seconds" datatype="html">
<source>Seconds</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.increment-seconds" datatype="html">
<source>Increment seconds</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.decrement-seconds" datatype="html">
<source>Decrement seconds</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.timepicker.PM" datatype="html">
<source><x id="INTERPOLATION"/></source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/timepicker/timepicker.ts</context>
<context context-type="linenumber">442</context>
</context-group>
</trans-unit>
<trans-unit id="ngb.toast.close-aria" datatype="html">
<source>Close</source>
<context-group purpose="location">
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.2.3_@angular+core@22.2.3_@angular+_2a970977f09c8afdd1f9933e219c8db5/node_modules/src/toast/toast.ts</context>
<context context-type="sourcefile">node_modules/.pnpm/@ng-bootstrap+ng-bootstrap@21.0.0_@angular+common@22.3.0_@angular+core@22.3.0_@angular+_a7f2e22ebef7f277c3d304e2c62cd610/node_modules/src/toast/toast.ts</context>
<context context-type="linenumber">80</context>
</context-group>
</trans-unit>
+30 -30
View File
@@ -15,60 +15,60 @@
},
"private": true,
"dependencies": {
"@angular/cdk": "^22.2.4",
"@angular/common": "~22.2.3",
"@angular/compiler": "~22.2.3",
"@angular/core": "~22.2.3",
"@angular/forms": "~22.2.3",
"@angular/localize": "~22.2.3",
"@angular/platform-browser": "~22.2.3",
"@angular/router": "~22.2.3",
"@angular/cdk": "^22.3.0",
"@angular/common": "~22.3.0",
"@angular/compiler": "~22.3.0",
"@angular/core": "~22.3.0",
"@angular/forms": "~22.3.0",
"@angular/localize": "~22.3.0",
"@angular/platform-browser": "~22.3.0",
"@angular/router": "~22.3.0",
"@ng-bootstrap/ng-bootstrap": "^21.0.0",
"@ng-select/ng-select": "~24.2.1",
"@ngneat/dirty-check-forms": "^3.0.3",
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.8",
"bootstrap": "^5.3.9",
"bootstrap-icons": "^1.13.2",
"file-saver": "^2.0.5",
"lodash-es": "^4.18.1",
"marked": "~18.1.1",
"marked": "~18.2.1",
"mime-names": "^1.0.0",
"ngx-color": "^10.1.0",
"ngx-cookie-service": "^22.0.0",
"ngx-cookie-service": "^22.2.0",
"ngx-device-detector": "^12.0.0",
"ngx-ui-tour-ng-bootstrap": "^19.0.0",
"normalize-diacritics": "^5.0.0",
"pdfjs-dist": "^6.4.299",
"pdfjs-dist": "^6.5.438",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"tslib": "^2.9.1",
"utif": "^3.1.0",
"uuid": "^14.0.3"
},
"devDependencies": {
"@angular-builders/jest": "^22.0.1",
"@angular-devkit/core": "^22.2.4",
"@angular-devkit/schematics": "^22.2.4",
"@angular-eslint/builder": "22.6.0",
"@angular-eslint/eslint-plugin": "22.6.0",
"@angular-eslint/eslint-plugin-template": "22.6.0",
"@angular-eslint/schematics": "22.6.0",
"@angular-eslint/template-parser": "22.6.0",
"@angular/build": "22.2.4",
"@angular/cli": "22.2.4",
"@angular/compiler-cli": "~22.2.3",
"@playwright/test": "^1.64.1",
"@angular-devkit/core": "^22.3.0",
"@angular-devkit/schematics": "^22.3.0",
"@angular-eslint/builder": "22.8.0",
"@angular-eslint/eslint-plugin": "22.8.0",
"@angular-eslint/eslint-plugin-template": "22.8.0",
"@angular-eslint/schematics": "22.8.0",
"@angular-eslint/template-parser": "22.8.0",
"@angular/build": "22.3.0",
"@angular/cli": "22.3.0",
"@angular/compiler-cli": "~22.3.0",
"@playwright/test": "^1.65.1",
"@types/jest": "^30.0.0",
"@types/node": "^26.6.5",
"@typescript-eslint/eslint-plugin": "^8.72.0",
"@typescript-eslint/parser": "^8.72.0",
"@typescript-eslint/utils": "^8.72.0",
"eslint": "^10.13.0",
"@types/node": "^26.6.6",
"@typescript-eslint/eslint-plugin": "^8.74.0",
"@typescript-eslint/parser": "^8.74.0",
"@typescript-eslint/utils": "^8.74.0",
"eslint": "^10.15.0",
"jest": "30.5.2",
"jest-environment-jsdom": "^30.5.2",
"jest-junit": "^17.0.0",
"jest-preset-angular": "^17.0.3",
"jest-websocket-mock": "^2.5.0",
"prettier": "^3.9.10",
"prettier": "^3.10.1",
"prettier-plugin-organize-imports": "^4.3.0",
"ts-node": "~10.9.2",
"typescript": "^6.0.3"
+1670 -1235
View File
File diff suppressed because it is too large. Load diff
+21 -137
View File
@@ -6,17 +6,13 @@ import json
import logging
import operator
from contextlib import contextmanager
from datetime import UTC
from datetime import timedelta
from decimal import Decimal
from decimal import InvalidOperation
from typing import TYPE_CHECKING
from typing import Any
from django import forms
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.db.models import Case
from django.db.models import CharField
from django.db.models import Count
@@ -33,15 +29,13 @@ from django.db.models.functions import NullIf
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from django_filters import DateFilter
from django_filters.fields import IsoDateTimeField
from django_filters.filters import IsoDateTimeFilter
from django_filters.rest_framework import BooleanFilter
from django_filters.rest_framework import CharFilter
from django_filters.rest_framework import DateTimeFilter
from django_filters.rest_framework import Filter
from django_filters.rest_framework import FilterSet
from django_filters.rest_framework import MultipleChoiceFilter
from django_filters.rest_framework import NumberFilter
from django_filters.rest_framework.filterset import FILTER_FOR_DBFIELD_DEFAULTS
from drf_spectacular.utils import extend_schema_field
from guardian.utils import get_group_obj_perms_model
from guardian.utils import get_user_obj_perms_model
@@ -101,100 +95,7 @@ CUSTOM_FIELD_QUERY_MAX_ATOMS = 20
logger = logging.getLogger("paperless.api")
# The smallest and largest values a 64 bit integer column can hold. Nothing outside can
# match a row, and handing it to the database raises an error on some backends.
INT64_MIN = -(2**63)
INT64_MAX = 2**63 - 1
# Real UTC offsets run from -12:00 to +14:00, databases reject anything much larger.
MAX_UTC_OFFSET = timedelta(hours=14)
DATE_PART_BOUNDS = {"year": (1, 9999), "month": (1, 12), "day": (1, 31)}
# A datetime year is turned into UTC boundaries in the active timezone, so the first
# and last year overflow for any timezone other than UTC
DATETIME_YEAR_BOUNDS = (2, 9998)
def in_id_range(value: int) -> bool:
return INT64_MIN <= value <= INT64_MAX
class BoundedDecimalField(forms.DecimalField):
"""
django-filter only bounds numbers at 1e50, which is far past any integer column
"""
def __init__(self, **kwargs: Any) -> None:
kwargs.setdefault("min_value", INT64_MIN)
kwargs.setdefault("max_value", INT64_MAX)
super().__init__(**kwargs)
class BoundedNumberFilter(NumberFilter):
field_class = BoundedDecimalField
class BoundedDateTimeField(IsoDateTimeField):
def clean(self, value: Any) -> Any:
value = super().clean(value)
if value is not None and timezone.is_aware(value):
offset = value.utcoffset()
if offset is not None and abs(offset) > MAX_UTC_OFFSET:
raise forms.ValidationError(
_("Enter a valid UTC offset."),
code="invalid",
)
try:
value.astimezone(UTC)
except OverflowError:
raise forms.ValidationError(
_("Enter a valid date and time."),
code="invalid",
)
return value
class BoundedDateTimeFilter(IsoDateTimeFilter):
field_class = BoundedDateTimeField
class BoundedFilterSet(FilterSet):
"""
A FilterSet whose generated number and datetime filters reject values the database
cannot hold, as a 400, instead of failing later as a server error
"""
FILTER_DEFAULTS = {
**FILTER_FOR_DBFIELD_DEFAULTS,
**{
field: {"filter_class": BoundedNumberFilter}
for field in (
models.AutoField,
models.BigAutoField,
models.SmallAutoField,
models.IntegerField,
models.BigIntegerField,
models.SmallIntegerField,
models.PositiveIntegerField,
models.PositiveSmallIntegerField,
models.PositiveBigIntegerField,
)
},
models.DateTimeField: {"filter_class": BoundedDateTimeFilter},
}
@classmethod
def filter_for_field(cls, field, field_name, lookup_expr=None):
filter_ = super().filter_for_field(field, field_name, lookup_expr)
# The lookup resolves to a plain integer field, so only here is it known to be
# a year, month or day
bounds = DATE_PART_BOUNDS.get(lookup_expr)
if lookup_expr == "year" and isinstance(field, models.DateTimeField):
bounds = DATETIME_YEAR_BOUNDS
if bounds is not None and isinstance(filter_, NumberFilter):
filter_.extra["min_value"], filter_.extra["max_value"] = bounds
return filter_
class CorrespondentFilterSet(BoundedFilterSet):
class CorrespondentFilterSet(FilterSet):
class Meta:
model = Correspondent
fields = {
@@ -203,7 +104,7 @@ class CorrespondentFilterSet(BoundedFilterSet):
}
class TagFilterSet(BoundedFilterSet):
class TagFilterSet(FilterSet):
class Meta:
model = Tag
fields = {
@@ -218,7 +119,7 @@ class TagFilterSet(BoundedFilterSet):
)
class DocumentTypeFilterSet(BoundedFilterSet):
class DocumentTypeFilterSet(FilterSet):
class Meta:
model = DocumentType
fields = {
@@ -227,7 +128,7 @@ class DocumentTypeFilterSet(BoundedFilterSet):
}
class StoragePathFilterSet(BoundedFilterSet):
class StoragePathFilterSet(FilterSet):
class Meta:
model = StoragePath
fields = {
@@ -254,21 +155,9 @@ class ObjectFilter(Filter):
return qs
if self.in_list:
qs = qs.filter(
**{
f"{self.field_name}__id__in": [
obj_id for obj_id in object_ids if in_id_range(obj_id)
],
},
).distinct()
qs = qs.filter(**{f"{self.field_name}__id__in": object_ids}).distinct()
else:
for obj_id in object_ids:
if not in_id_range(obj_id):
# No row has this id: excluding it changes nothing, requiring it
# matches nothing
if self.exclude:
continue
return qs.none()
if self.exclude:
qs = qs.exclude(**{f"{self.field_name}__id": obj_id})
else:
@@ -353,7 +242,7 @@ class SharedByUser(Filter):
)
class CustomFieldFilterSet(BoundedFilterSet):
class CustomFieldFilterSet(FilterSet):
class Meta:
model = CustomField
fields = {
@@ -362,8 +251,8 @@ class CustomFieldFilterSet(BoundedFilterSet):
}
class WorkflowFilterSet(BoundedFilterSet):
trigger_type = BoundedNumberFilter(field_name="triggers__type", distinct=True)
class WorkflowFilterSet(FilterSet):
trigger_type = NumberFilter(field_name="triggers__type", distinct=True)
class Meta:
model = Workflow
@@ -963,7 +852,7 @@ class CustomFieldQueryFilter(Filter):
return qs.filter(pk__in=matching_ids)
class DocumentFilterSet(BoundedFilterSet):
class DocumentFilterSet(FilterSet):
has_duplicates = BooleanFilter(method="filter_has_duplicates")
def __init__(self, *args: Any, user: Any = None, **kwargs: Any) -> None:
@@ -1095,7 +984,7 @@ class DocumentFilterSet(BoundedFilterSet):
}
class ShareLinkFilterSet(BoundedFilterSet):
class ShareLinkFilterSet(FilterSet):
class Meta:
model = ShareLink
fields = {
@@ -1104,7 +993,7 @@ class ShareLinkFilterSet(BoundedFilterSet):
}
class ShareLinkBundleFilterSet(BoundedFilterSet):
class ShareLinkBundleFilterSet(FilterSet):
documents = Filter(method="filter_documents")
class Meta:
@@ -1124,13 +1013,10 @@ class ShareLinkBundleFilterSet(BoundedFilterSet):
return queryset.none()
if not ids:
return queryset
ids = [item for item in ids if in_id_range(item)]
if not ids:
return queryset.none()
return queryset.filter(documents__in=ids).distinct()
class PaperlessTaskFilterSet(BoundedFilterSet):
class PaperlessTaskFilterSet(FilterSet):
name = CharFilter(
method="filter_name",
label="Name",
@@ -1166,13 +1052,13 @@ class PaperlessTaskFilterSet(BoundedFilterSet):
field_name="acknowledged",
)
date_created_after = BoundedDateTimeFilter(
date_created_after = DateTimeFilter(
field_name="date_created",
lookup_expr="gte",
label="Created After",
)
date_created_before = BoundedDateTimeFilter(
date_created_before = DateTimeFilter(
field_name="date_created",
lookup_expr="lte",
label="Created Before",
@@ -1224,10 +1110,9 @@ class PaperlessTaskFilterSet(BoundedFilterSet):
except (TypeError, ValueError):
pass
else:
if in_id_range(numeric_value):
query |= Q(result_data__document_id=numeric_value) | Q(
result_data__duplicate_of=numeric_value,
)
query |= Q(result_data__document_id=numeric_value) | Q(
result_data__duplicate_of=numeric_value,
)
if "duplicate" in value.lower():
query |= Q(result_data__duplicate_of__isnull=False)
@@ -1299,13 +1184,12 @@ class DocumentsOrderingFilter(OrderingFilter):
def filter_queryset(self, request, queryset, view):
param = request.query_params.get("ordering")
if param and self.prefix in param:
custom_field_suffix = param.split(self.prefix)[1]
custom_field_id = int(param.split(self.prefix)[1])
try:
custom_field_id = int(custom_field_suffix)
field = CustomField.objects.get(pk=custom_field_id)
except (ValueError, CustomField.DoesNotExist):
except CustomField.DoesNotExist:
raise serializers.ValidationError(
{self.prefix + custom_field_suffix: [_("Custom field not found")]},
{self.prefix + str(custom_field_id): [_("Custom field not found")]},
)
annotation = None
+2 -5
View File
@@ -53,7 +53,6 @@ if settings.AUDIT_LOG_ENABLED:
from documents import bulk_edit
from documents.data_models import DocumentSource
from documents.filters import CustomFieldQueryParser
from documents.filters import in_id_range
from documents.models import Correspondent
from documents.models import CustomField
from documents.models import CustomFieldInstance
@@ -231,7 +230,7 @@ class SetPermissionsMixin:
def _validate_user_ids(self, user_ids):
users = User.objects.none()
if user_ids is not None:
users = User.objects.filter(id__in=[i for i in user_ids if in_id_range(i)])
users = User.objects.filter(id__in=user_ids)
if not users.count() == len(user_ids):
raise serializers.ValidationError(
"Some users in don't exist or were specified twice.",
@@ -241,9 +240,7 @@ class SetPermissionsMixin:
def _validate_group_ids(self, group_ids):
groups = Group.objects.none()
if group_ids is not None:
groups = Group.objects.filter(
id__in=[i for i in group_ids if in_id_range(i)],
)
groups = Group.objects.filter(id__in=group_ids)
if not groups.count() == len(group_ids):
raise serializers.ValidationError(
"Some groups in don't exist or were specified twice.",
+4 -4
View File
@@ -786,15 +786,15 @@ def cleanup_user_deletion(sender, instance: User | Group, **kwargs) -> None:
if instance.pk in permissions.get("default_view_users", []):
permissions["default_view_users"].remove(instance.pk)
updated = True
if instance.pk in permissions.get("default_change_users", []):
permissions["default_change_users"].remove(instance.pk)
if instance.pk in permissions.get("default_edit_users", []):
permissions["default_edit_users"].remove(instance.pk)
updated = True
elif isinstance(instance, Group):
if instance.pk in permissions.get("default_view_groups", []):
permissions["default_view_groups"].remove(instance.pk)
updated = True
if instance.pk in permissions.get("default_change_groups", []):
permissions["default_change_groups"].remove(instance.pk)
if instance.pk in permissions.get("default_edit_groups", []):
permissions["default_edit_groups"].remove(instance.pk)
updated = True
if updated:
ui_settings.settings["permissions"] = permissions
+8 -4
View File
@@ -671,8 +671,8 @@ class TestDocumentSearchApi(DirectoriesMixin, APITestCase):
content="things i paid for in august",
pk=2,
checksum="B",
# 1 month, 1 day ago
added=timezone.now() - relativedelta(months=1, days=1),
# More than 1 month ago, in the search timezone
added=timezone.localtime() - relativedelta(months=1, days=7),
)
d3 = Document.objects.create(
title="bank statement 3",
@@ -706,6 +706,10 @@ class TestDocumentSearchApi(DirectoriesMixin, APITestCase):
@override_settings(
TIME_ZONE="America/Denver",
)
@time_machine.travel(
datetime.datetime(2026, 12, 1, 0, 1, tzinfo=datetime.UTC),
tick=False,
)
def test_search_added_in_last_month_timezone_behind(self) -> None:
"""
GIVEN:
@@ -729,8 +733,8 @@ class TestDocumentSearchApi(DirectoriesMixin, APITestCase):
content="things i paid for in august",
pk=2,
checksum="B",
# 1 month, 1 day ago
added=timezone.now() - relativedelta(months=1, days=1),
# More than 1 month ago, in the search timezone
added=timezone.localtime() - relativedelta(months=1, days=7),
)
d3 = Document.objects.create(
title="bank statement 3",
@@ -1,353 +0,0 @@
from unittest import mock
import pytest
from rest_framework import status
from rest_framework.test import APIClient
from documents.models import Document
from documents.models import Tag
from paperless_testing.factories import CorrespondentFactory
from paperless_testing.factories import DocumentFactory
from paperless_testing.factories import TagFactory
HUGE = 2**63 # one above the largest signed 64 bit integer
class TestFilterInputBounds:
@pytest.mark.parametrize(
("path", "query"),
[
pytest.param("/api/tags/", f"id__in={HUGE}", id="tags-id-in"),
pytest.param("/api/tags/", f"id={HUGE}", id="tags-id-exact"),
pytest.param("/api/tags/", f"id__in=1,{HUGE}", id="tags-id-in-mixed"),
pytest.param("/api/documents/", f"id__in={HUGE}", id="documents-id-in"),
pytest.param("/api/documents/", "created__year=0", id="year-zero"),
pytest.param("/api/documents/", "created__year=10000", id="year-too-big"),
pytest.param("/api/documents/", "created__month=13", id="month-13"),
pytest.param("/api/documents/", "created__day=0", id="day-zero"),
pytest.param(
"/api/documents/",
"created__year=-10000000000000000",
id="year-hugely-negative",
),
pytest.param(
"/api/documents/",
"added__gt=2024-01-01T00:00:00%2B16:29",
id="offset-too-large",
),
pytest.param(
"/api/documents/",
"added__gt=0001-01-01T00:00:00%2B05:00",
id="utc-conversion-overflows",
),
pytest.param("/api/share_links/", "created__year=0", id="share-links-year"),
pytest.param(
"/api/share_links/",
f"expiration__day={HUGE}",
id="share-links-day",
),
pytest.param(
"/api/share_link_bundles/",
"expiration__year=100000000000000000",
id="bundles-year",
),
pytest.param(
"/api/tasks/",
"date_created_after=2024-01-01T00:00:00%2B16:29",
id="tasks-offset",
),
pytest.param(
"/api/documents/",
"ordering=custom_field_abc",
id="ordering-not-a-number",
),
pytest.param(
"/api/documents/",
f"ordering=custom_field_{HUGE}",
id="ordering-out-of-range",
),
],
)
def test_out_of_range_value_is_a_400(
self,
admin_client: APIClient,
path: str,
query: str,
) -> None:
"""
GIVEN:
- An authenticated client
WHEN:
- A filter or ordering value outside what the database can hold is sent
THEN:
- The response is a 400, not a server error
"""
response = admin_client.get(f"{path}?{query}")
assert response.status_code == status.HTTP_400_BAD_REQUEST
@pytest.mark.parametrize(
("path", "query"),
[
pytest.param("/api/documents/", f"tags__id__all={HUGE}", id="tags-all"),
pytest.param("/api/documents/", f"tags__id__in={HUGE}", id="tags-in"),
pytest.param(
"/api/share_link_bundles/",
f"documents={HUGE}",
id="bundle-documents",
),
],
)
def test_id_list_with_an_impossible_id_matches_nothing(
self,
admin_client: APIClient,
path: str,
query: str,
) -> None:
"""
GIVEN:
- A document that has a tag
WHEN:
- An id list filter includes an id that no row can have
THEN:
- The request succeeds and nothing matches
"""
document = DocumentFactory.create()
document.tags.add(TagFactory.create())
response = admin_client.get(f"{path}?{query}")
assert response.status_code == status.HTTP_200_OK
assert response.data["count"] == 0
@pytest.mark.parametrize(
("path", "query"),
[
pytest.param("/api/tags/", "id__in=1,2", id="id-in"),
pytest.param("/api/documents/", "created__year=2024", id="year"),
pytest.param("/api/documents/", "created__year=9999", id="year-max"),
pytest.param("/api/documents/", "created__month=12", id="month"),
pytest.param("/api/documents/", "created__day=31", id="day"),
pytest.param(
"/api/documents/",
"added__gt=2024-01-01T00:00:00%2B14:00",
id="offset-at-the-limit",
),
pytest.param(
"/api/documents/",
"added__gt=2024-01-01T00:00:00-12:00",
id="negative-offset",
),
pytest.param("/api/tasks/", "date_created_after=2024-01-01", id="tasks"),
],
)
def test_in_range_values_still_work(
self,
admin_client: APIClient,
path: str,
query: str,
) -> None:
"""
GIVEN:
- An authenticated client
WHEN:
- Filters with ordinary values are sent
THEN:
- The request succeeds
"""
response = admin_client.get(f"{path}?{query}")
assert response.status_code == status.HTTP_200_OK
class TestDatetimeYearBounds:
@pytest.mark.parametrize("timezone_name", ["Europe/Berlin", "America/New_York"])
@pytest.mark.parametrize("year", [1, 9999])
def test_first_and_last_year_of_a_datetime_is_a_400(
self,
admin_client: APIClient,
settings,
timezone_name: str,
year: int,
) -> None:
"""
GIVEN:
- A deployment in a timezone other than UTC
WHEN:
- A datetime field is filtered by the first or last year
THEN:
- The response is a 400, as the year boundary overflows when converted
to UTC
"""
settings.TIME_ZONE = timezone_name
response = admin_client.get(f"/api/documents/?added__year={year}")
assert response.status_code == status.HTTP_400_BAD_REQUEST
@pytest.mark.parametrize("timezone_name", ["Europe/Berlin", "America/New_York"])
@pytest.mark.parametrize(
("field", "year"),
[("added", 2), ("added", 9998), ("created", 1), ("created", 9999)],
)
def test_supported_years_succeed(
self,
admin_client: APIClient,
settings,
timezone_name: str,
field: str,
year: int,
) -> None:
"""
GIVEN:
- A deployment in a timezone other than UTC
WHEN:
- A datetime field is filtered by a year inside the supported range, or
a date only field by any year
THEN:
- The request succeeds
"""
settings.TIME_ZONE = timezone_name
response = admin_client.get(f"/api/documents/?{field}__year={year}")
assert response.status_code == status.HTTP_200_OK
class TestFilterValueParsing:
@pytest.mark.parametrize("value", ["1", "0"])
def test_isnull_accepts_numeric_booleans(
self,
admin_client: APIClient,
value: str,
) -> None:
"""
GIVEN:
- A document with a correspondent and one without
WHEN:
- A generated isnull filter is given 1 or 0, as the UI sends
THEN:
- Only the matching document is returned
"""
with_correspondent = DocumentFactory.create(
correspondent=CorrespondentFactory.create(),
)
without_correspondent = DocumentFactory.create()
response = admin_client.get(f"/api/documents/?correspondent__isnull={value}")
assert response.status_code == status.HTTP_200_OK
expected = without_correspondent if value == "1" else with_correspondent
assert [r["id"] for r in response.json()["results"]] == [expected.pk]
def test_datetime_filter_rejects_locale_formats(
self,
admin_client: APIClient,
) -> None:
"""
GIVEN:
- An authenticated client
WHEN:
- A datetime filter is given a day first or month first date
THEN:
- The response is a 400, only ISO 8601 is accepted
"""
response = admin_client.get("/api/documents/?added__gt=01/02/2024 10:00")
assert response.status_code == status.HTTP_400_BAD_REQUEST
class TestBulkSelectionRejectsInvalidFilters:
@pytest.mark.parametrize(
"filters",
[{"id__in": str(HUGE)}, {"created__year": "abc"}],
)
def test_documents_are_not_selected(
self,
admin_client: APIClient,
filters: dict[str, str],
) -> None:
"""
GIVEN:
- Documents exist
WHEN:
- A bulk delete of all documents is requested with a filter that is invalid
THEN:
- The response is a 400 and nothing is queued
"""
DocumentFactory.create()
with mock.patch("documents.views.execute_bulk_operation") as execute:
# A real id, so a request that is wrongly accepted fails the assertions
# below instead of failing to render a mock as JSON
execute.apply_async.return_value.id = "task-id"
response = admin_client.post(
"/api/documents/delete/",
{"all": True, "filters": filters},
format="json",
)
assert response.status_code == status.HTTP_400_BAD_REQUEST
execute.apply_async.assert_not_called()
assert Document.objects.count() == 1
@pytest.mark.parametrize(
"filters",
[{"id__in": str(HUGE)}, {"id": "abc"}],
)
def test_objects_are_not_selected(
self,
admin_client: APIClient,
filters: dict[str, str],
) -> None:
"""
GIVEN:
- Tags exist
WHEN:
- A bulk delete of all tags is requested with a filter that is invalid
THEN:
- The response is a 400 and no tag is deleted
"""
TagFactory.create()
response = admin_client.post(
"/api/bulk_edit_objects/",
{
"object_type": "tags",
"operation": "delete",
"all": True,
"filters": filters,
},
format="json",
)
assert response.status_code == status.HTTP_400_BAD_REQUEST
assert Tag.objects.count() == 1
class TestSetPermissionsIdBounds:
@pytest.mark.parametrize("grantee", ["users", "groups"])
@pytest.mark.parametrize("bad_id", [HUGE, -HUGE, "abc", None])
def test_impossible_grantee_id_is_a_400(
self,
admin_client: APIClient,
grantee: str,
bad_id: object,
) -> None:
"""
GIVEN:
- A tag
WHEN:
- Permissions are set with a user or group id that cannot exist
THEN:
- The response is a 400, not a server error
"""
tag = TagFactory.create()
response = admin_client.put(
f"/api/tags/{tag.pk}/",
{"name": tag.name, "set_permissions": {"view": {grantee: [bad_id]}}},
format="json",
)
assert response.status_code == status.HTTP_400_BAD_REQUEST
+7 -19
View File
@@ -2939,14 +2939,12 @@ LOG_FILES = {
class LogViewSet(ViewSet):
permission_classes = (IsAuthenticated, PaperlessAdminPermissions)
ALLOWED_LOG_FILES = LOG_FILES
def get_log_file(self, log_key: str) -> Path:
return Path(settings.LOGGING_DIR) / self.ALLOWED_LOG_FILES[log_key]
return Path(settings.LOGGING_DIR) / LOG_FILES[log_key]
def retrieve(self, request, *args, **kwargs):
log_key = kwargs.get("pk")
if log_key not in self.ALLOWED_LOG_FILES:
if log_key not in LOG_FILES:
raise Http404
log_file = self.get_log_file(log_key)
@@ -2975,9 +2973,7 @@ class LogViewSet(ViewSet):
def list(self, request, *args, **kwargs):
existing_logs = [
log_key
for log_key in self.ALLOWED_LOG_FILES
if self.get_log_file(log_key).is_file()
log_key for log_key in LOG_FILES if self.get_log_file(log_key).is_file()
]
return Response(existing_logs)
@@ -3073,15 +3069,11 @@ class DocumentSelectionMixin:
root_document__isnull=True,
)
# orm-filtered docs
# An invalid filter is dropped by .qs, which would select every document
filterset = DocumentFilterSet(
filtered_documents = DocumentFilterSet(
data=orm_filters,
queryset=permitted_documents,
user=user,
)
if not filterset.is_valid():
raise ValidationError({"filters": filterset.errors})
filtered_documents = filterset.qs.distinct()
).qs.distinct()
# tantivy-filtered docs (if search params provided)
search_filtered_ids = self._get_search_document_ids(
user=user,
@@ -5342,14 +5334,10 @@ class BulkEditObjectsView(PassUserMixin):
user_permitted_objects = object_class.objects.filter(
id__in=permitted_object_ids(user, object_class, perm_codename),
)
# An invalid filter is dropped by .qs, which would select every object
filterset = filterset_class(
objs = filterset_class(
data=filters,
queryset=user_permitted_objects,
)
if not filterset.is_valid():
raise ValidationError({"filters": filterset.errors})
objs = filterset.qs
).qs
if object_type == "tags":
editable_ids = set(user_permitted_objects.values_list("pk", flat=True))
all_ids = set(objs.values_list("pk", flat=True))
+12 -12
View File
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-11-28 23:01+0000\n"
"POT-Creation-Date: 2026-11-30 18:39+0000\n"
"PO-Revision-Date: 2022-02-17 04:17\n"
"Last-Translator: \n"
"Language-Team: English\n"
@@ -1881,7 +1881,7 @@ msgstr ""
#: documents/serialisers.py:495 documents/serialisers.py:819
#: documents/serialisers.py:2918 documents/views.py:372 documents/views.py:638
#: documents/views.py:2870 paperless_mail/serialisers.py:145
#: documents/views.py:2878 paperless_mail/serialisers.py:145
msgid "Insufficient permissions."
msgstr ""
@@ -1921,7 +1921,7 @@ msgstr ""
msgid "Duplicate document identifiers are not allowed."
msgstr ""
#: documents/serialisers.py:3004 documents/views.py:5008
#: documents/serialisers.py:3004 documents/views.py:5061
#, python-format
msgid "Documents not found: %(ids)s"
msgstr ""
@@ -2192,36 +2192,36 @@ msgstr ""
msgid "Specify only one of text, title_search, query, or more_like_id."
msgstr ""
#: documents/views.py:365 documents/views.py:2867
#: documents/views.py:365 documents/views.py:2875
msgid "Invalid more_like_id"
msgstr ""
#: documents/views.py:1697
#: documents/views.py:1705
msgid "Invalid AI configuration."
msgstr ""
#: documents/views.py:1708
#: documents/views.py:1716
msgid "AI backend request timed out."
msgstr ""
#: documents/views.py:1720
#: documents/views.py:1728
msgid "AI backend rejected the request. Check logs for details."
msgstr ""
#: documents/views.py:5024
#: documents/views.py:5077
#, python-format
msgid "Insufficient permissions to share document %(id)s."
msgstr ""
#: documents/views.py:5071
#: documents/views.py:5124
msgid "Bundle is already being processed."
msgstr ""
#: documents/views.py:5137
#: documents/views.py:5190
msgid "The share link bundle is still being prepared. Please try again later."
msgstr ""
#: documents/views.py:5151
#: documents/views.py:5204
msgid "The share link bundle is unavailable."
msgstr ""
@@ -2661,7 +2661,7 @@ msgstr ""
msgid "Chinese Traditional"
msgstr ""
#: paperless/urls.py:452
#: paperless/urls.py:455
msgid "Paperless-ngx administration"
msgstr ""
+40
View File
@@ -0,0 +1,40 @@
import logging
from typing import Any
from paperless.signed_pickle import SignedPickleError
from paperless.signed_pickle import signed_pickle_dumps
from paperless.signed_pickle import signed_pickle_loads
logger = logging.getLogger("paperless.cache")
class SignedRedisSerializer:
"""
Cache serializer for Django's RedisCache which HMAC-signs every pickled value.
Django's default serializer unpickles whatever it finds under a key, so anything
able to write to the Redis instance could get code run in the web server, for
example through a session entry. Values are signed with SECRET_KEY on write and
verified before unpickling on read, the same protection the Celery messages on
the same broker have.
An entry that fails verification is dropped and reported as a cache miss.
"""
def dumps(self, obj: Any) -> bytes | int:
# Like Django's own serializer, keep plain integers unpickled so incr() and
# decr() stay atomic. Using type() rather than isinstance() excludes bool.
if type(obj) is int:
return obj
return signed_pickle_dumps(obj)
def loads(self, data: bytes) -> Any:
try:
return int(data)
except ValueError:
pass
try:
return signed_pickle_loads(data)
except SignedPickleError:
logger.warning("Ignoring cache entry with an invalid signature")
return None
+13 -9
View File
@@ -374,15 +374,19 @@ class TikaDocumentParser:
try:
parsed = self._tika_client.metadata.from_file(document_path, mime_type)
return [
{
"namespace": "",
"prefix": "",
"key": key,
"value": parsed.data[key],
}
for key in parsed.data
]
metadata: list[MetadataEntry] = []
for key, value in parsed.data.items():
if isinstance(value, list):
value = " ".join(str(item) for item in value)
metadata.append(
{
"namespace": "",
"prefix": "",
"key": key,
"value": str(value),
},
)
return metadata
except Exception as e:
logger.warning(
"Error while fetching document metadata for %s: %s",
+5
View File
@@ -365,3 +365,8 @@ class ApplicationConfigurationSerializer(
class Meta:
model = ApplicationConfiguration
fields = "__all__"
class TOTPActivationSerializer(serializers.Serializer[dict[str, str]]):
secret = serializers.CharField()
code = serializers.CharField()
+6
View File
@@ -807,17 +807,23 @@ _CACHE_BACKEND = os.environ.get(
)
# Entries are HMAC-signed so values planted in Redis are never unpickled
_CACHE_OPTIONS = {"serializer": "paperless.cache.SignedRedisSerializer"}
def _parse_caches():
return {
"default": {
"BACKEND": _CACHE_BACKEND,
"LOCATION": _CHANNELS_REDIS_URL,
"KEY_PREFIX": _REDIS_KEY_PREFIX,
"OPTIONS": _CACHE_OPTIONS,
},
"read-cache": {
"BACKEND": _CACHE_BACKEND,
"LOCATION": cachalot_settings["CACHALOT_REDIS_URL"],
"KEY_PREFIX": _REDIS_KEY_PREFIX,
"OPTIONS": _CACHE_OPTIONS,
},
}
@@ -131,8 +131,10 @@ class TestTikaParser:
httpx_mock.add_response(
json={
"Content-Type": "application/vnd.oasis.opendocument.text",
"X-TIKA:Parsed-By": [],
"X-TIKA:Parsed-By": ["ParserA", "ParserB"],
"X-TIKA:Parsed-By-Full-Set": [],
"Some-key": "value",
"meta:page-count": 2,
"dcterms:created": "2020-11-21T00:00:00",
},
)
@@ -144,6 +146,11 @@ class TestTikaParser:
assert "dcterms:created" in [m["key"] for m in metadata]
assert "Some-key" in [m["key"] for m in metadata]
values = {entry["key"]: entry["value"] for entry in metadata}
assert values["X-TIKA:Parsed-By"] == "ParserA ParserB"
assert values["X-TIKA:Parsed-By-Full-Set"] == ""
assert values["meta:page-count"] == "2"
assert all(isinstance(value, str) for value in values.values())
def test_convert_failure(
self,
@@ -0,0 +1,39 @@
import pytest
from rest_framework import status
from rest_framework.test import APIClient
class TestTotpView:
def test_options_does_not_fail(self, admin_client: APIClient) -> None:
"""
GIVEN:
- An authenticated client
WHEN:
- OPTIONS is sent to the TOTP endpoint
THEN:
- The request succeeds, DRF's metadata needs a serializer on the view
"""
response = admin_client.options("/api/profile/totp/")
assert response.status_code == status.HTTP_200_OK
@pytest.mark.parametrize(
"body",
[{}, {"secret": "abc"}, {"code": "123456"}, {"secret": None, "code": None}],
)
def test_activation_with_missing_fields_is_a_400(
self,
admin_client: APIClient,
body: dict[str, str | None],
) -> None:
"""
GIVEN:
- An authenticated client
WHEN:
- TOTP is activated without both the secret and the code
THEN:
- The response is a 400, not a server error
"""
response = admin_client.post("/api/profile/totp/", body, format="json")
assert response.status_code == status.HTTP_400_BAD_REQUEST
+66
View File
@@ -0,0 +1,66 @@
import pickle
import pytest
from django.conf import settings
from django.core.cache.backends.redis import RedisCache
from paperless.cache import SignedRedisSerializer
from paperless.signed_pickle import compute_signature
@pytest.fixture
def serializer() -> SignedRedisSerializer:
return SignedRedisSerializer()
class TestSignedRedisSerializer:
def test_round_trip(self, serializer: SignedRedisSerializer) -> None:
value = {"a": [1, 2, 3], "b": ("x", None)}
assert serializer.loads(serializer.dumps(value)) == value
def test_integers_are_stored_raw(self, serializer: SignedRedisSerializer) -> None:
# incr/decr operate on the raw value in Redis
assert serializer.dumps(7) == 7
assert serializer.loads(b"7") == 7
flag = bool(1)
assert isinstance(serializer.dumps(flag), bytes)
def test_unsigned_pickle_is_not_loaded(
self,
serializer: SignedRedisSerializer,
tmp_path,
) -> None:
marker = tmp_path / "marker"
class Evil:
def __reduce__(self):
return (marker.write_text, ("pwned",))
assert serializer.loads(pickle.dumps(Evil())) is None
assert not marker.exists()
def test_pickle_signed_with_other_key_is_not_loaded(
self,
serializer: SignedRedisSerializer,
tmp_path,
) -> None:
marker = tmp_path / "marker"
class Evil:
def __reduce__(self):
return (marker.write_text, ("pwned",))
data = pickle.dumps(Evil())
forged = compute_signature(b"not the real data") + data
assert serializer.loads(forged) is None
assert not marker.exists()
@pytest.mark.parametrize("alias", ["default", "read-cache"])
def test_redis_caches_use_signed_serializer(alias: str) -> None:
# The test settings use LocMemCache, so check the configuration is wired up
# and that RedisCache honours it
options = settings.CACHES[alias]["OPTIONS"]
assert options["serializer"] == "paperless.cache.SignedRedisSerializer"
cache = RedisCache("redis://localhost:6379", {"OPTIONS": options})
assert isinstance(cache._cache._serializer, SignedRedisSerializer)
+4 -4
View File
@@ -658,9 +658,9 @@ class TestUserGroupDeletionCleanup(TestCase):
"permissions": {
"default_owner": user2.id,
"default_view_users": [user2.id],
"default_change_users": [user2.id],
"default_edit_users": [user2.id],
"default_view_groups": [group.id],
"default_change_groups": [group.id],
"default_edit_groups": [group.id],
},
},
)
@@ -670,13 +670,13 @@ class TestUserGroupDeletionCleanup(TestCase):
permissions = ui_settings.settings.get("permissions", {})
self.assertIsNone(permissions.get("default_owner"))
self.assertEqual(permissions.get("default_view_users"), [])
self.assertEqual(permissions.get("default_change_users"), [])
self.assertEqual(permissions.get("default_edit_users"), [])
group.delete()
ui_settings.refresh_from_db()
permissions = ui_settings.settings.get("permissions", {})
self.assertEqual(permissions.get("default_view_groups"), [])
self.assertEqual(permissions.get("default_change_groups"), [])
self.assertEqual(permissions.get("default_edit_groups"), [])
def test_user_group_deletion_error_handling(self) -> None:
"""
+8 -3
View File
@@ -53,6 +53,7 @@ from paperless.serialisers import ApplicationConfigurationSerializer
from paperless.serialisers import GroupSerializer
from paperless.serialisers import PaperlessAuthTokenSerializer
from paperless.serialisers import ProfileSerializer
from paperless.serialisers import TOTPActivationSerializer
from paperless.serialisers import UserSerializer
@@ -328,6 +329,7 @@ class TOTPView(GenericAPIView[Any]):
"""
permission_classes = [IsAuthenticated]
serializer_class = TOTPActivationSerializer
def get(self, request, *args, **kwargs):
"""
@@ -350,15 +352,18 @@ class TOTPView(GenericAPIView[Any]):
"""
Validates a TOTP code and activates the TOTP authenticator
"""
serializer = self.get_serializer(data=request.data)
serializer.is_valid(raise_exception=True)
secret = serializer.validated_data["secret"]
valid = totp_auth.validate_totp_code(
request.data["secret"],
request.data["code"],
secret,
serializer.validated_data["code"],
)
recovery_codes = None
if valid:
auth = totp_auth.TOTP.activate(
request.user,
request.data["secret"],
secret,
).instance
signals.authenticator_added.send(
sender=Authenticator,
+37 -46
View File
@@ -894,8 +894,6 @@ class MailAccountHandler(LoggingMixin):
def _handle_message(self, message, rule: MailRule) -> int:
message = self._preprocess_message(message)
processed_elements = 0
# Skip Message handling when only attachments are to be processed but
# message doesn't have any.
if (
@@ -903,7 +901,7 @@ class MailAccountHandler(LoggingMixin):
and rule.consumption_scope == MailRule.ConsumptionScope.ATTACHMENTS_ONLY
):
self._record_processed_without_consumption(message, rule)
return processed_elements
return 0
self.log.debug(
f"Rule {rule}: "
@@ -914,29 +912,47 @@ class MailAccountHandler(LoggingMixin):
tag_ids: list[int] = [tag.id for tag in rule.assign_tags.all()]
doc_type = rule.assign_document_type
consume_tasks: list[Signature] = []
if (
rule.consumption_scope == MailRule.ConsumptionScope.EML_ONLY
or rule.consumption_scope == MailRule.ConsumptionScope.EVERYTHING
):
processed_elements += self._process_eml(
message,
rule,
tag_ids,
doc_type,
consume_tasks.append(
self._build_eml_task(
message,
rule,
tag_ids,
doc_type,
),
)
if (
rule.consumption_scope == MailRule.ConsumptionScope.ATTACHMENTS_ONLY
or rule.consumption_scope == MailRule.ConsumptionScope.EVERYTHING
):
processed_elements += self._process_attachments(
message,
rule,
tag_ids,
doc_type,
consume_tasks.extend(
self._build_attachment_tasks(
message,
rule,
tag_ids,
doc_type,
),
)
return processed_elements
# One chord per message, so the mail action and the ProcessedMail row
# are written once, after every part of the message has been consumed
if consume_tasks:
queue_consumption_tasks(
consume_tasks=consume_tasks,
rule=rule,
message=message,
uid_validity=self._current_uid_validity,
)
else:
self._record_processed_without_consumption(message, rule)
return len(consume_tasks)
def _record_processed_without_consumption(
self,
@@ -995,16 +1011,14 @@ class MailAccountHandler(LoggingMixin):
return True
return False
def _process_attachments(
def _build_attachment_tasks(
self,
message: MailMessage,
rule: MailRule,
tag_ids,
doc_type,
):
processed_attachments = 0
consume_tasks = []
) -> list[Signature]:
consume_tasks: list[Signature] = []
for att in message.attachments:
if (
@@ -1105,8 +1119,6 @@ class MailAccountHandler(LoggingMixin):
)
consume_tasks.append(consume_task)
processed_attachments += 1
else:
self.log.debug(
f"Rule {rule}: "
@@ -1115,26 +1127,15 @@ class MailAccountHandler(LoggingMixin):
f"by paperless",
)
if len(consume_tasks) > 0:
queue_consumption_tasks(
consume_tasks=consume_tasks,
rule=rule,
message=message,
uid_validity=self._current_uid_validity,
)
else:
# No files to consume, just mark as processed if it wasn't by .eml processing
self._record_processed_without_consumption(message, rule)
return consume_tasks
return processed_attachments
def _process_eml(
def _build_eml_task(
self,
message: MailMessage,
rule: MailRule,
tag_ids,
doc_type,
):
) -> Signature:
settings.SCRATCH_DIR.mkdir(parents=True, exist_ok=True)
fd, temp_filename = tempfile.mkstemp(
prefix="paperless-mail-",
@@ -1192,17 +1193,7 @@ class MailAccountHandler(LoggingMixin):
owner_id=rule.owner.id if rule.owner else None,
)
consume_task = consume_file.s(
return consume_file.s(
input_doc=input_doc,
overrides=doc_overrides,
).set(headers={"trigger_source": PaperlessTask.TriggerSource.EMAIL_CONSUME})
queue_consumption_tasks(
consume_tasks=[consume_task],
rule=rule,
message=message,
uid_validity=self._current_uid_validity,
)
processed_elements = 1
return processed_elements
+38
View File
@@ -416,6 +416,44 @@ class TestMail(
1,
)
def test_handle_message_everything_scope_single_row(self) -> None:
"""
GIVEN:
- A rule consuming the eml and attachments, and a mail with or
without attachments
WHEN:
- The mail is handled and its queued mail action is applied
THEN:
- The eml and attachments are queued together in one call
- Exactly one ProcessedMail row exists and it is not
PROCESSED_WO_CONSUMPTION
"""
rule = MailRule.objects.create(
account=MailAccount.objects.create(
name="test",
imap_server="",
username="admin",
password="secret",
),
consumption_scope=MailRule.ConsumptionScope.EVERYTHING,
)
for attachments in (0, 2):
with self.subTest(attachments=attachments):
self.mailMocker._queue_consumption_tasks_mock.reset_mock()
message = self.mailMocker.messageBuilder.create_message(
subject=f"{attachments} attachments",
attachments=attachments,
)
result = self.mail_account_handler._handle_message(message, rule)
self.mailMocker.apply_mail_actions()
self.assertEqual(result, 1 + attachments)
self.mailMocker._queue_consumption_tasks_mock.assert_called_once()
processed = ProcessedMail.objects.get(rule=rule, uid=message.uid)
self.assertEqual(processed.status, "SUCCESS")
def test_handle_empty_message_long_subject(self) -> None:
"""
GIVEN:
@@ -272,8 +272,6 @@ class TestMailMessageGpgDecryptor(TestMail):
"override_title": message.subject,
"override_filename": f"{message.subject}.eml",
},
],
[
{"override_title": "file_0", "override_filename": "file_0.pdf"},
{"override_title": "file_1", "override_filename": "file_1.pdf"},
],