Commit Graph
28945 Commits
Author SHA1 Message Date
Lauri Ojansivu 0f8d35fe72 Let scheduled rule triggers watch a card's start date.
#4278 asks for rule reminders to assigned people when a card is due,
overdue or starting. Scheduled due triggers existed; the trigger form now
chooses Due Date or Start, so a rule can fire when a card starts within N
days or should have started N days ago. With {assignees} in the email
recipient the reminder goes to the card's assignees. The date filter is a
pure module with unit tests; triggers saved before keep the due date.

Thanks to xet7 !

Fixes #4278,
2026-09-29 14:10:38 +03:00
Lauri Ojansivu 59b1b0d8ae Follow the rule-variable change in three rule guards.
a91855993 routed member usernames through ruleUsernames() and the email
recipient through recipientVars(). ruleEmailFailure runs RulesHelper in a
VM with each free name injected, so the missing recipientVars made the
email path throw and the test wait forever; it now injects an identity
recipientVars. Two guards pinned the literal
getUser({ username: action.username }) line; a literal username is still
looked up unchanged, so they now pin the per-username lookup and keep
their defensive-resolution and crash-pattern assertions.

Thanks to xet7 !
2026-09-29 14:09:41 +03:00
Lauri Ojansivu a918559939 Resolve people and custom-field variables in rule action values.
Maintainer decision: rule actions reuse the email {token} syntax.
{creator}, {assignees} and {members} name the triggering card's people -
usernames in text, email addresses in the send-email recipient, where
entries without an address are dropped - and {customField:Name} reads the
displayed value of a custom field, excluding admin-only fields. Member
actions accept a token that names several people and act on each; list and
swimlane names of move actions are resolved too. Literal values behave
exactly as before and unknown tokens stay literal.

The email action shows the new tokens in a second hint, English pending
Transifex.

Thanks to xet7 !
2026-09-29 14:02:14 +03:00
Lauri Ojansivu 7e4dcc7a23 Record SAML identity-provider profiles and per-board due reminders.
Thanks to xet7 !
2026-09-29 13:58:11 +03:00
Lauri Ojansivu d6503b43f5 Choose which SAML signatures are required and log in by full-page redirect.
SAML 2.0 lets an identity provider sign the Response, the Assertion or
both. WeKan always required a signed Response (node-saml's default, never
overridden), so an identity provider that signs only the Assertion was
rejected with "Invalid document signature" before the Assertion was
checked. Admin Panel -> People -> SAML now has SAML_IDP_PROFILE: standard,
which keeps the previous behaviour, or signed-assertion-redirect, which
requires the Assertion signature instead and logs in by full-page redirect.
SAML_WANT_RESPONSE_SIGNED, SAML_WANT_ASSERTIONS_SIGNED and SAML_LOGIN_FLOW
can each be set on their own; left at Default they follow the profile. A
configuration requiring neither signature is refused, and validation
errors now reach the administrator instead of "Internal server error".

In redirect mode the ACS stores the validated profile under the random
credential token and redirects to /sign-in?samlToken=; the page exchanges
it and opens /. The assertion never enters the address. The token is
remembered in the tab that started the login, and a samlToken that tab did
not start is not exchanged, so a link cannot sign a browser into another
account. Errors return as samlError and are shown on the sign-in page.

A test signs responses with a throwaway key and runs them through the
shipped node-saml; browser tests log in through the fixture identity
provider in both flows. The new message is English, pending Transifex.

Thanks to xet7 !
2026-09-29 13:57:51 +03:00
Lauri Ojansivu 58d166029c Set due-date reminder days and webhook delivery per board.
Board Settings -> Notifications now has due-date reminders: a board's own
offsets override NOTIFY_DUE_DAYS_BEFORE_AND_AFTER (an empty list turns
them off, an empty field restores the server default), and a switch sends
the board's reminders to all of its enabled outgoing webhooks, whatever
activities those subscribe to. The reminder scan now runs when either the
environment variable or a board sets offsets, and writes a reminder only
for the offsets that board uses. A validated method limited to board
admins stores the setting.

The new strings are English, pending Transifex. add-pending-keys.mjs now
writes symlinked locales once and checks every file before writing any.

Thanks to xet7 !

Fixes #5323,
2026-09-29 13:44:54 +03:00
Lauri Ojansivu edefa80225 Add new interface text in English pending Transifex, and record the maintainer's decisions.
Maintainer decision: features that need new strings add them in English
to every locale rather than waiting for translation. add-pending-keys.mjs
inserts the keys into en.i18n.json and every locale in order and lists
them in pending-transifex.json; fill-translations.mjs --missing counts
them separately, and a Transifex translation replaces the English text
through the ordinary pull merge.

TODO Later now records the other decisions: rule variables, any-trigger
rules, the Scrum/Sync journal approach, the thumbnail route, semi-open
boards, the parents array, highlighting, the URL-scheme allowlist, Jira
issue types, the Map view, splitting #4790, #5323's parts, and what is
not planned now.

Thanks to xet7 !
2026-09-29 13:40:00 +03:00
Lauri Ojansivu 49bfaa5820 Mention the FerretDB MySQL range fix in the Upcoming summary.
Thanks to xet7 !
2026-09-29 13:07:34 +03:00
Lauri Ojansivu c5fe52289f Record the live MySQL, MariaDB and PostgreSQL verification.
Thanks to xet7 !
2026-09-29 13:07:26 +03:00
Lauri Ojansivu ed73253da9 Cover Date, Timestamp and large-integer ranges in the database conformance catalogue.
The catalogue had one date range and no Timestamp or top-level ts field,
the OpLog tail's shape, so a backend that answered those wrong or never
pushed them down passed. The seed now carries Timestamps with different
increments, a plain number, a string and a missing value under ts, and
integers of both MySQL JSON types under big. The new cases found that
FerretDB's MySQL backend dropped 1577934245000 from a range (typed
UNSIGNED INTEGER); fixed in wekan/FerretDB, after which all 110 cases agree
on SQLite, PostgreSQL 18, MySQL 9.7 and MariaDB 12.3.

Thanks to xet7 !
2026-09-29 13:07:01 +03:00
Lauri Ojansivu fab264efad Record the forge mirror test isolation fix.
Thanks to xet7 !
2026-09-29 10:06:41 +03:00
Lauri Ojansivu 0172bc51e5 Keep the forge mirror CLI test away from real mirror checkouts.
The CLI test expected the fresh-clone path, but the mirror tool looked for
an existing checkout under the real .tools directory, so the test failed
on any machine that had .tools/wekan-gitlab. WEKAN_MIRROR_TOOLS_DIR now
relocates the checkouts and the test points it at its own temporary
directory.

Thanks to xet7 !
2026-09-29 10:05:55 +03:00
Lauri Ojansivu 48216856e4 Record the 2026-09-29 TODO Later pass and its remaining blockers.
Summarizes what this pass completed and groups what remains by the reason
it is blocked: new interface text that would need translating into every
locale, maintainer decisions, infrastructure or affected data (Docker
Desktop here waits for an administrator to approve its privileged helper),
and architectural Scrum/Sync work. Records Node suite health against the
pass's starting commit.

Thanks to xet7 !
2026-09-29 10:04:58 +03:00
Lauri Ojansivu f24e981eff Record keyboard undo/redo request IDs.
Thanks to xet7 !
2026-09-29 09:49:13 +03:00
Lauri Ojansivu c659b4bbcd Send persisted request IDs from keyboard undo and redo.
Ctrl+Z and Ctrl+Y called changeHistory.undoLast/redoLast without a
request ID, so a reply lost to a disconnect or reload left the user
pressing again and undoing a second Scrum change. Each keystroke now
carries an ID kept in sessionStorage until the server answers; the next
keystroke on that board retries the unanswered ID first, and in the same
direction that retry is the keystroke. Unanswered IDs expire after ten
minutes. A non-Scrum row, which keyed requests do not cover, is refused
without change and the keystroke falls back to the unkeyed call, which
the Scrum design now documents as a deliberate exception.

Thanks to xet7 !
2026-09-29 09:48:49 +03:00
Lauri Ojansivu 569642e13a Record external import fidelity, import boundary and date fixes.
Adds the Upcoming entries for the import commits, updates In short, and
rewrites the TODO Later import/export entry to what remains: showing the
loss report on the import page needs a translated string, file contents
need live API connectors, Deck/OpenProject/Asana sharing and watchers have
no safe mapping, Zenkit's native export is unverified and the matching
exporters were not revisited.

The Requested By guard now reads the planner, where KanboardCreator's
requested_by mapping moved, and still pins both of its assertions.

Thanks to xet7 !
2026-09-29 09:37:40 +03:00
Lauri Ojansivu 50a24abce0 Record what an external import could not bring over in Problems -> Recovery.
Every external parser and the shared planner returned unsupported and
warning entries, but nothing stored them, so an import that dropped a
board's sharing rules or a parent outside the file looked like a complete
one. The Kanboard-shape and Jira creators now record one bounded
import-completed-with-warnings Recovery row with the board, the importing
user and the first paths and reasons; a complete import records none.
The import page does not show the report yet: that needs a new
translated string.

Thanks to xet7 !
2026-09-29 09:26:20 +03:00
Lauri Ojansivu be13dd663a Import Jira comments, sub-tasks, parents, custom fields and more labels.
JiraCreator dropped comments, sub-tasks, the parent hierarchy, priority,
components, fix versions and ordinary custom fields, and sorted every card
at -1. It now imports comments with ADF bodies as text, shown by the
author's display name and posted by the mapped user when the account id
was mapped; links sub-tasks and child issues imported together to their
parent and lists the others as a Sub-tasks checklist; makes priority,
components and fix versions board labels; imports customfield_ values
named from the search response's names map, except the field already
mapped as the estimate; and keeps the search order.

The checklist and comment inserts are shared with the other external
importers. jiraPageWarnings recognizes an incomplete enhanced or classic
search page for the import report.

Thanks to xet7 !
2026-09-29 09:12:21 +03:00
Lauri Ojansivu 13ea3e9c6d Import Zenkit API entries and the adapter shape's hierarchy, members and fields.
Zenkit documents no single-file JSON export schema, and the parser read
only an adapter shape with titles, stages, due dates and tags. It now also
reads the Zenkit API's entries and elements, with value keys as the zenkit
client deserializes them: stages from the stage categories element, labels
from other category elements, description, due and start dates, persons as
members, the hierarchy element as parent links, dependencies, text, number
and date fields as custom fields, checklists, creation dates and sort
order. Deleted entries are skipped. Files, formulas, cross-list references,
comment counts and element kinds with no documented value format are
reported rather than guessed.

The adapter shape gains ids and parents, several assignees, item-level
custom fields, comments and checklists, and reports keys it does not know.

Thanks to xet7 !
2026-09-29 09:08:15 +03:00
Lauri Ojansivu 1d32801cf9 Import Asana custom fields, comments, subtasks and dependencies.
The Asana parser kept name, notes, section, due date, assignee and tags.
It now keeps start, completion and creation dates, custom-field values of
every Asana kind (number, text, enum, multi-enum, date, people and the
display value of formula fields), comment stories with their authors,
dependencies as blocking links, and the task permalink. Subtasks fetched
as tasks of their own become child cards; subtasks only embedded on their
parent become a checklist. Followers and attachment metadata are listed in
the unsupported report.

Thanks to xet7 !
2026-09-29 09:04:09 +03:00
Lauri Ojansivu 29785fcd2f Import OpenProject custom fields, comments, hierarchy and relations.
The OpenProject parser kept subject, description, due date, status,
assignee and type. It now also keeps start and creation dates, spent time
from ISO 8601 durations, priority, category, version, responsible and
author, embedded comments, the parent hierarchy and embedded relations.
Custom fields take their names from embedded schemas; estimated time and
progress become number custom fields instead of being lost. Watchers and
attachment metadata are listed in the unsupported report.

External imports can now carry custom-field values, parent links and
dependencies. The creator makes one board custom field per source field,
typed number, checkbox or text from the values present, and links cards
once every card exists. Links resolve only within the same import;
unknown targets, duplicate ids and parent cycles are reported, never
guessed.

Thanks to xet7 !
2026-09-29 09:02:56 +03:00
Lauri Ojansivu 5035b7aa27 Import Nextcloud Deck assignees, comments, order and archive state.
The Deck parser kept title, description, due date, one assignee and label
names. It now keeps every assignee as a card member when mapped, comments
embedded from the OCS comments API, archive state, done and creation
times, and stack and card order. Trashed stacks and cards are skipped and
counted in warnings. Sharing rules never become board members, because a
file naming a user must not grant access; they and Nextcloud attachments
are listed in the unsupported report.

External imports now keep the source order of cards instead of giving
them all sort 0, and create checklists and comments through the writer
that keeps their dates.

Thanks to xet7 !
2026-09-29 08:59:48 +03:00
Lauri Ojansivu b6d695a62f Keep source creation dates on imported boards, cards, comments and lists.
Every WeKan schema's createdAt autoValue replaces the value on insert, and
collection2 cleans the inserted document in place. The WeKan, Trello, Jira
and Kanboard importers passed each source creation date to such an insert,
so the #1992 date restoration and Trello's board, card, list and comment
dates were all reset to the import time. A WeKan export of a card created
in 2020 re-imported as created today.

writeImportedEntity now reads createdAt before the insert and writes it
back through the raw collection, and the creators' board, card and comment
inserts go through it. A source audit requires every dated creator insert
to use it, and a browser test re-imports a WeKan export and compares the
card's creation date.

Thanks to xet7 !
2026-09-29 08:59:48 +03:00
Lauri Ojansivu ba4157ec18 Import Kanboard subtasks, comments, categories, colors and dates.
The assembled Kanboard JSON-RPC document reached KanboardCreator unparsed,
so only fields Kanboard spells like the shared task shape survived, and a
task identified only by column_id landed in the first list. parseKanboard
now resolves column, swimlane and category ids, turns subtasks into a
checklist and comments into card comments by their author, archives closed
tasks, maps Kanboard color ids onto the WeKan palette, and keeps start,
completion and creation dates, time spent, priority and the task URL.
Estimates, files and task links are listed in the unsupported report.

Thanks to xet7 !
2026-09-29 08:53:56 +03:00
Lauri Ojansivu bc153a99f4 Import checklists, comments, dates, archive state and colors from external formats.
Every external import goes through KanboardCreator, which wrote a card and
nothing else, so a parser had nowhere to put a subtask, a comment, a start
or end date, a closed state or a card color. The normalized task now
carries them, models/lib/importedTaskPlan.js decides what each becomes, and
the creator inserts checklists, comments with their addComment activities,
and the card fields the plan returns.

Dates that do not parse, and Kanboard's "0" for no date, are no longer
stored as Invalid Date or 1970. A comment by an unmapped author is posted
by the importing user with the author's name leading the text.

Thanks to xet7 !
2026-09-29 08:51:31 +03:00
Lauri Ojansivu 94115454c5 Parse and store only the sanitized import value.
The import boundary returns a new value with prototype keys and active
markup removed; it does not clean its argument. The Deck, OpenProject,
GitHub, GitLab, Gitea/Forgejo, Asana, Zenkit and Markdown branches of
importBoard parsed the raw upload instead, so cards kept the markup that
Admin Panel -> Problems recorded as sanitized. The Trello API import named
its workspace and job result from the raw board the same way.

The new source test flags any import-direction boundary whose raw input
is used afterwards, anywhere under models/ or server/, and proves its
detector finds the code as it was before this change.

Thanks to xet7 !
2026-09-29 08:49:51 +03:00
Lauri Ojansivu 8890d4bd1f Record card-copy destination validation and remaining review 2026-09-29 00:14:19 +03:00
Lauri Ojansivu c35ba4b35e Validate server card-copy destinations before reads and writes
Require existing destination containers on the requested board before sort
reads, number allocation, field remapping and child copies. Reject soft-deleted
containers and return a clear REST input error without security-account blocks.
Preserve board-wide lists and archived-container board-copy behavior.

Cover invalid and valid placement with unit, DDP, REST and browser tests,
including existing ordinary, rule, Scrum, list and swimlane copy paths.
Record the remaining source-access and concurrent-write review.

Thanks to xet7 !
2026-09-29 00:13:43 +03:00
Lauri Ojansivu 2a7f7b2b46 Record CopyIdentityBleed and register security regression coverage 2026-09-29 00:07:18 +03:00
Lauri Ojansivu 1e44a1ffc1 Restrict card-copy overrides to text and preserve the source
Prevent caller overrides from replacing the authorized card identity before
private children are loaded. Apply title and description strings to a
separate transformed card; refuse all other fields before copying.

Summarize extra-field attempts as CopyIdentityBleed while treating malformed
text as an ordinary input error. Add unit, source-scan and live browser
regressions, and document the reproduced disclosure and remaining review.
Update the shared-form regression for the existing multiline title editor.

Thanks to xet7 !
2026-09-29 00:04:16 +03:00
Lauri Ojansivu 222db14251 Record archive contribution reporting and remaining TODO work 2026-09-28 23:56:38 +03:00
Lauri Ojansivu 1c200407a2 Show archived-card contributions in Pulse
Add a UTC annual archive grid with count shading, colored label tooltips,
year selection and keyboard/touch details. Scope counts and labels to the
board and each assigned-only viewer, and exclude restored or undated cards.

Verify calendar aggregation with unit tests and real MongoDB/DDP/Chromium
coverage for the UI, all assigned-only roles, invalid input and isolation.
Document current-archive semantics and the remaining issue-audit work.

Thanks to xet7 !

Fixes #5444,
2026-09-28 23:56:20 +03:00
Lauri Ojansivu 509d110f1d Record keyed Scrum request recovery and remaining integration work
Document the tested optional request-ID API and current recovery guarantees. Keep keyboard persistence, non-Scrum replay, retention, shared writer coordination and the rest of TODO Later explicitly open.

Four changelog and release-preflight suites pass. Thanks to xet7 !
2026-09-28 23:44:07 +03:00
Lauri Ojansivu 6b44f61b2a Bind keyed Scrum undo and redo to their original selection
Accept optional caller-persisted request IDs in the History methods. Store immutable selections before mutation and reconcile completed requests without advancing the stack again. Keep empty and unsupported results stable; require fresh access and retain conflicting or missing recovery evidence.

Verify selection races, lost cleanup, concurrent redo, browser reload and private storage with Node, MongoDB, full-app and Chromium coverage. Keyboard request persistence, non-Scrum replay and shared writer coordination remain unfinished.

Thanks to xet7 !
2026-09-28 23:43:32 +03:00
Lauri Ojansivu cb3d8c1e20 Record Scrum completion evidence and remaining recovery work
Add the tested completion increment to Upcoming and keep public request identities, recovery controls, retention and writer coordination explicitly unfinished. Move the previous cleanup entry out of v12.09 because its implementation postdates that release, preserving the entry text. Repair the existing editor-entry line wrapping.

Four changelog and release-preflight suites pass. Thanks to xet7 !
2026-09-28 23:34:10 +03:00
Lauri Ojansivu 16b17c4943 Persist Scrum History completion before checkpoint cleanup
Bind immutable private receipts to the original operation, actor, source hash and checkpoint plan. Reconcile uncertain cleanup from saved completion without rewriting History or deleting successor work. Reject damaged evidence and changed plans.

Cover false and lost acknowledgements, restart replay, finalization corruption and browser privacy with Node, MongoDB, full-app and Chromium tests. Public request identities and cross-document coordination remain unfinished.

Thanks to xet7 !
2026-09-28 23:33:45 +03:00
Lauri Ojansivu b59d96b466 Merge remote-tracking branch 'origin/main' 2026-09-28 23:22:06 +03:00
Lauri Ojansivu edfeda8e33 Resume non-translation work and record Scrum recovery verification
Record confirmed checkpoint cleanup and its unit, MongoDB, full-app and Chromium coverage. Retain shared coordination, durable completion and uncertain-read recovery as unfinished work.

Thanks to xet7.
2026-09-28 22:04:22 +03:00
Lauri Ojansivu 3b7eaedeeb Verify Scrum History checkpoint cleanup from stored state
Read the board checkpoint after conditional deletion. Reject false acknowledgements, unreadable results and successor checkpoints; reconcile a lost reply only after confirmed absence.

Cover cleanup failures and retries in unit and full-app tests, preserving the undo timestamp and one restoration event. Document remaining cross-document and restart coordination limits.

Thanks to xet7.
2026-09-28 22:03:42 +03:00
github-actions[bot] 7f3d919ad0 Bump versions for v12.09 v12.09 2026-09-28 18:54:32 +00:00
Lauri Ojansivu 75b57b088f Prepare v12.09 release 2026-09-28 21:52:27 +03:00
Lauri Ojansivu e280a80396 Document admin-only field security and SAML login fixes
Record validated fixes, regression coverage and compatibility limits in Upcoming. Keep the broader TODO Later implementation queue paused.

Thanks to Hama1cco and xet7 !
2026-09-28 21:48:27 +03:00
Lauri Ojansivu 89a65ee7ce Enforce admin-only custom fields across server boundaries
Fix AdminFieldBleed (GHSA-m8gh-2h78-f57x): redact protected values from publications, API responses, method results, History and analytics; constrain value searches and refresh live permissions.

Guard inserts, full-array modifiers, copying and shared definitions at the request write boundary. Require authorized exports and summarize explicit attacks in Admin Panel Problems. Add positive, negative and Chromium regression coverage.

Thanks to Hama1cco and xet7 !
2026-09-28 21:46:56 +03:00
Lauri Ojansivu 3578e3ef84 Fix SAML response correlation and surface popup failures
Read the validated node-saml inResponseTo property and retain single-use response checks. Forward ACS errors to the sign-in form without exchanging missing credentials.

Verify real signed-response login, replay rejection, popup errors and safe UI text rendering. Document deployment-specific identity mapping.

Thanks to xet7.
2026-09-28 21:41:14 +03:00
Lauri Ojansivu 68845ad004 Pause TODO Later work and record completed offline email recovery
Record the remaining Scrum, Sync and rule email work separately from the tested acceptance-confirmation increment.

Thanks to xet7.
2026-09-28 21:17:07 +03:00
Lauri Ojansivu 6bf4ac0f2b Reconcile independently confirmed rule email acceptance offline
Retain an immutable operator decision before repairing the exact attempt receipt. Preserve dispatch guards and never send or reset mail. Cover interruption, conflicting decisions and real MongoDB CLI recovery. Other operator recovery remains unfinished.

Thanks to xet7.
2026-09-28 21:15:56 +03:00
Lauri Ojansivu c0e182af14 Record authorized board discussion email coverage
Thanks to kabi178, bbyszio and xet7 !
2026-09-28 21:07:57 +03:00
Lauri Ojansivu 5513254086 Include authorized target-board comments in linked-board rule emails
Discover comment owners before reading prose, enforce card and assigned-only access, and retain each included source chain for stored dispatch checks. Reuse public comment rendering without exporting target checklists or files; reject oversized captures instead of truncating.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 21:07:14 +03:00
Lauri Ojansivu 1844624d4c Record completed link placement email audit
Thanks to kabi178, bbyszio and xet7 !
2026-09-28 21:03:31 +03:00
Lauri Ojansivu 8d51ac92e0 Separate link placement lifecycle from source state in rule emails
Include local archive state and lifecycle timestamps under the linked-card local section. Keep card number and color on the source selected by existing display getters.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 21:02:59 +03:00