Fix the open bug and security issues: source parser, release gate, notifier path, lock and CI #15
No reviewers
Labels
No labels
bug
documentation
enhancement
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo-helloworld!15
Loading…
Reference in a new issue
No description provided.
Delete branch "sec2-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes every open
bug/securityissue of this repository.Per issue
42be52048and relocked withuv lock --upgrade(pyjwt 2.15.1, urllib3 2.8.0, oauthlib 4.0.0).pip-audit 2.10.1 --strictover the exported lock (without the project and the git-pinnedpostulo, as in the other plugin repos) finds nothing. CI installs uv from the versioned installer withUV_VERSION/UV_INSTALLER_SHA256checked bysha256sum -c(the values of postulo/postulo#790), and gets anauditjob on push, pull request and weekly cron. The newer core offers seven more languages, sopostulo-messages extractmade their empty catalogues (az, be, cnr, fo, kk, nn, rm): the catalogue check would not pass without them.pytest -m release: newrelease.yml(tagv*, pinned installer), as in postulo-paperless. Thetoolfixture no longer usesimportorskip: under thereleasemarker a missing catalogue tool fails, otherwise it skips (a test holds both). On the "fails on 21 of 23 catalogues" part: Weblate has since filled the three strings (PR #12), anduv run pytest -m releasepasses today (23 passed). What remains empty is Weblate's and not the gate's: the non-EU catalogues, and one machine draft inswwhose placeholders differ (postulo-messages checkreports it, exit 0).test()showserror.strerror or type(error).__name__instead of the exception text, so the reason is said and the path is not. The test raisesPermissionError(13, "Permission denied", <path>)and asserts the directory is not in the message; a second covers an error without a reason._PostingReaderrewritten: void elements are not counted and<br>adds a space; a field ends on the end tag of the element that opened it, and a block start tag ends an open<p>field; fields are read only insidedata-posting, each from its first element; an over-long title givesNonerather than a validation error. New tests (a page with<br>,<img>, unclosed<p>, site<h1>outside, a title too long) fail without the change.Tests
ruff check,ruff format --check,postulo-messages extract --check,check,guard: clean.uv run pytest: 43 passed;uv run pytest -m release: 23 passed.Left open
Nothing among the bug/security issues. #10, #8, #6, #5 (documentation / enhancement) are not part of this change.
Closes #9, #11, #13, #14
🤖 Generated with Claude Code