Skip to content

🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!

Update 1.0.8 changelog entries for pre-release fixes

sassanix4560aace956c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 70362d5..4055bee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,13 +2,13 @@
## 1.0.8 - Unreleased
-- **Product photo fetch pins the connection to the validated address (GHSA-7rwc-pg49-r48w):** the photo-by-URL fetch used to validate a hostname and then let the HTTP client resolve it again at connect time, so a DNS answer that changed between the two lookups could steer the connection to a private address the guard never saw. The fetch now resolves each hop hostname exactly once, validates every returned address, and connects to the first public one, with no second lookup and no failover. For https the connection still presents the original hostname as SNI and verifies the certificate against it, and the Host header still carries the original hostname. The fetch also no longer follows environment proxy settings, since a proxy would resolve the hostname itself.
+- **Product photo fetch pins the connection to the validated address (GHSA-7rwc-pg49-r48w):** the photo-by-URL fetch used to validate a hostname and then let the HTTP client resolve it again at connect time, so a DNS answer that changed between the two lookups could steer the connection to a private address the guard never saw. The fetch now resolves each hop hostname exactly once, validates every returned address, and connects to a validated public address (preferring IPv4 on dual-stack hosts so IPv4-only Docker containers can still connect, and falling back to IPv6 for IPv6-only hosts), with no second lookup and no failover. For https the connection still presents the original hostname as SNI and verifies the certificate against it, and the Host header still carries the original hostname. The fetch also no longer follows environment proxy settings, since a proxy would resolve the hostname itself.
- _Files: `backend/warranties_routes.py`, `tests/test_photo_url.py`_
-- **Paperless-ngx 3.x uploads resolve again (#298):** the task poll only understood the Paperless API v9 shapes, so against Paperless-ngx 3.x (API v10) it never recognized a finished task: the detail lookup 404s, the list reply is a paginated page object, the status is lower case, and the document arrives in `related_document_ids`. The poll now unwraps paginated pages, compares the status case-insensitively, and reads `related_document_ids[0]` (with the `result_data` text as a fallback), so uploads resolve in seconds again instead of timing out after 10 minutes and saving with no document link. The v9 shapes keep working unchanged. The upload route also releases its database connection before the poll starts instead of holding it idle in transaction for the whole wait, and takes a fresh one only for the ownership claim afterwards.
+- **Paperless-ngx 3.x uploads resolve again (#298):** the task poll only understood the Paperless API v9 shapes, so against Paperless-ngx 3.x (API v10) it never recognized a finished task: the detail lookup 404s, the list reply is a paginated page object, the status is lower case, and the document arrives in `related_document_ids`. The poll now remembers the list-endpoint fallback after the first 404, unwraps paginated pages, compares the status case-insensitively, and reads `related_document_ids[0]` (with the `result_data` text as a fallback), so uploads resolve in seconds again instead of timing out after 10 minutes and saving with no document link. The v9 shapes keep working unchanged. The upload route also releases its database connection before the poll starts instead of holding it idle in transaction for the whole wait, and takes a fresh one only for the ownership claim afterwards.
- _Files: `backend/paperless_handler.py`, `backend/file_routes.py`, `tests/mock_paperless.py`, `tests/test_paperless_api_v10.py`_
-- **One notification scheduler, no duplicate emails (#299):** with `preload_app` the app was built in the gunicorn master, where no worker id is set, so the scheduler started there and every forked worker inherited a running copy; each copy sent the same notification. The scheduler now starts exactly once, in the master from the gunicorn `when_ready` hook, `create_app` never starts it under gunicorn, and each worker discards the copy it inherits before serving (the job is removed and the scheduler marked stopped, never shut down, since joining its dead thread would hang). Apprise threshold sends are also claimed up front with `INSERT ... ON CONFLICT DO NOTHING RETURNING`, so even if two copies of the job ever run at once only the one that inserted the row sends, and a failed send releases its claim so the threshold stays due and retries. Forked workers no longer close the database pool they inherit, which used to send a Terminate on the shared socket and kill the master's connection; the pool reference is dropped instead and a fresh pool is created per worker.
+- **One notification scheduler, no duplicate emails (#299):** with `preload_app` the app was built in the gunicorn master, where no worker id is set, so the scheduler started there and every forked worker inherited a running copy; each copy sent the same notification. The scheduler now starts exactly once, in the master from the gunicorn `when_ready` hook (using `GeventScheduler` in gevent modes so forked workers don't trip `threading._active` cleanup errors), `create_app` never starts it under gunicorn, and each worker discards the copy it inherits before serving (the job is removed, the scheduler marked stopped, and any inherited event/greenlet stopped without joining dead threads). The master publishes a live scheduler status snapshot so `/api/admin/scheduler-status` still reports accurate status and next run time when served by a worker. Apprise threshold sends are also claimed up front with `INSERT ... ON CONFLICT DO NOTHING RETURNING`, so even if two copies of the job ever run at once only the one that inserted the row sends, and a failed send releases its claim so the threshold stays due and retries. Forked workers no longer close the database pool they inherit, which used to send a Terminate on the shared socket and kill the master's connection; the pool reference is dropped instead and a fresh pool is created per worker.
- _Files: `backend/notifications.py`, `backend/db_handler.py`, `backend/gunicorn_config.py`, `tests/test_scheduler_single_process.py`_
- **Warranty expiration change history (#209):** editing a warranty's expiration date, duration, or lifetime status now records the transition (previous value, new value, timestamp, editor, and an optional reason up to 255 characters) in a new `warranty_expiry_history` table without automatically mutating dates from claims. Warranties with recorded changes show a subtle clickable history badge next to the expiration date across the dashboard and Status page, opening an Expiry History modal; the Status page detail row and the Edit Warranty modal also display the change history, and the Edit Warranty modal dynamically reveals the optional reason field only when expiration inputs are modified.
@@ -23,8 +23,8 @@
- _Files: `Dockerfile`_
- **CI workflow pinning and Renovate action update (#279, #282):** pinned `actions/checkout`, `actions/setup-python`, the CI `postgres:15` service image, and Python version in the test and Docker workflows by commit SHA/digest for supply-chain safety, and updated `renovatebot/github-action` from v46.3.10 to v46.3.14.
- _Files: `.github/workflows/tests.yml`, `.github/workflows/docker-build.yml`, `.github/workflows/renovate.yml`_
-- **Team notes on warranties:** anyone who can view a warranty can now add a note to it, and each entry shows the username of the person who added it and the time it was added. Entries live in a new table, so the warranty's own notes field is untouched and stays editable only by the owner or an admin. An entry can be deleted by its author, the warranty owner, or an admin, using the trash icon beside the entry. With global view off, or restricted to admins, non-owners can neither view nor add entries.
- - _Files: `backend/migrations/056_create_warranty_note_entries.sql`, `backend/warranties_routes.py`, `frontend/js/components/notes.js`, `frontend/script.js`, `frontend/style.css`, `tests/test_warranty_note_entries.py`, `tests/test_status_edit_and_notes.py`_
+- **Team notes on warranties:** anyone who can view a warranty can now add a note to it, and each entry shows the username of the person who added it and the time it was added. Warranty cards always show the Notes link (with a team-note count when entries exist), so notes can be added even when the warranty's own notes field is blank. Entries live in a new table, so the warranty's own notes field is untouched and stays editable only by the owner or an admin. An entry can be deleted by its author, the warranty owner, or an admin, using the trash icon beside the entry. With global view off, or restricted to admins, non-owners can neither view nor add entries.
+ - _Files: `backend/migrations/056_create_warranty_note_entries.sql`, `backend/warranties_routes.py`, `frontend/js/components/notes.js`, `frontend/js/components/warrantyRenderer.js`, `frontend/script.js`, `frontend/style.css`, `tests/test_warranty_note_entries.py`, `tests/test_status_edit_and_notes.py`_
## 1.0.7 - 2026-11-23