Commit Graph
14 Commits
Author SHA1 Message Date
Lauri Ojansivu c2905e17ce Stop a custom-field template regex from stopping the server (ReDoS).
The ${"regex":...} token of a string-template custom field runs a pattern a
board member writes against a value another member writes. Rule e-mails format
card details on the server, so a pattern like (a+)+$ on 'aaaa...!' stopped the
one event loop for every user. The server now runs the regex in its own V8
context under a 50 ms limit, which V8 enforces inside backtracking, and pattern
and value are capped in length everywhere (the browser too, so one member's
format cannot hang the others'). A stopped regex leaves the token visible. The
negative test fails on any server call of the formatter without the bounded
runner.

Thanks to xet7 !
2026-10-02 11:21:50 +03:00
Lauri Ojansivu a904ca8807 Let a card be a subtask of several parent cards.
"A must be done before B and C can start, so A is a subtask of both." A card
now keeps every parent in parentIds, with parentId still the primary one
(parentIds[0]), so everything that reads one parent keeps working and a card
written before this has its one parent. Picking an existing card as a
subtask adds this card as a further parent instead of replacing the one it
had; Card -> More lists the other parents and removes one, and choosing the
primary parent keeps the others. Children are found under any parent - the
subtask list and counter, the parent filter, rule email Details and the
exports - and the loop guard and the board publication walk every parent.
Archiving or deleting a card takes only the subtasks it is the one parent
of; a shared subtask just loses it. Every parent written must be on a board
the writer can see (GHSA-jvv9-498p-hxrg), and board copy and WeKan import
remap all of them. The old single-parent walker is removed.

Thanks to ikomhoog and xet7 !

Fixes #3626,
2026-09-29 17:59:21 +03:00
Lauri Ojansivu 5bd348a4b9 Include linked-board wrapper content with shared email policies
Reuse ordinary Details rendering for explicitly local fields, including custom-field visibility and definition fingerprints, public names, notes, locations and authorized relationships. Persist related-source evidence in the existing email binding.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 21:00:16 +03:00
Lauri Ojansivu f27f060fb3 Include current linked-board state and active people in rule emails
Read archive, due completion and overtime from the target board. Resolve only public names for unique active members, matching linked-board Members and Assignees getters, and recheck target access.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:56:26 +03:00
Lauri Ojansivu b5c15e95ed Include canonical and legacy Gantt relationships in rule emails
Group readable targets while retaining distinct relationship types and source-access checks. Cover malformed legacy arrays and real SMTP rendering.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:35:33 +03:00
Lauri Ojansivu 2a632445b2 Include authorized converted-subtask references in rule emails
Share related-source resolution between Details and checklist discussion. Retain reference evidence for stored messages even when Details is disabled, and omit inaccessible targets.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:26:06 +03:00
Lauri Ojansivu b1b126fb0c Bind stored email details to related sources and field policies
Resolve related link titles through current readable sources and retain their chains in immutable command evidence. Recheck related access, admin rights and custom-field definitions before stored dispatch. Refuse legacy Details snapshots without related evidence.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:23:01 +03:00
Lauri Ojansivu 2e13fab985 Fill audited card email metadata and discussion gaps
Include public creators and comment authors, stickers, lifecycle metadata, checklist deadlines and reset schedules. Record remaining full-content gaps against the models and card export layout.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:15:24 +03:00
Lauri Ojansivu d99641d8ed Include visible Scrum card metadata in rule email details
Resolve sprint and release names within the source board and recheck references after preparation. Persist Scrum disclosure flags with source evidence for stored sends.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:11:49 +03:00
Lauri Ojansivu 0b86c92ded Include authorized linked-board voting in rule emails
Use live target results with both boards' visibility settings. Persist target disclosure policy in version-three source bindings and recheck it before dispatch.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:08:08 +03:00
Lauri Ojansivu 952cb16a72 Include voting results in rule emails with disclosure policy checks
Keep private voter names and unfinished poker choices out of Details. Persist voting visibility with source bindings and reject changed disclosure settings before stored dispatch.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:05:27 +03:00
Lauri Ojansivu 94f125ac05 Include timer and recurrence snapshots in rule email details
Export persisted Flowtime and Pomodoro fields and public session owner names alongside recurrence settings. Cover zero values, malformed fields, access loss and SMTP delivery through both attachment backends.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:01:09 +03:00
Lauri Ojansivu 479f01d57e Resolve authorized linked sources for rule email content
Use live source card data across email text, details, discussion and files. Resolve linked-board display fields without including unrelated source-board cards. Recheck each link and its permissions after preparation, and reject cycles, missing sources or retargeted links.

Refuse linked stored Sync commands until durable source-chain bindings exist, including during dispatch of previously captured commands. Fifty-seven Node suites pass without skips, with real MongoDB and native MailComposer; local SMTP browser scenarios pass.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 19:51:34 +03:00
Lauri Ojansivu c06b429765 Include authorized card details in rule emails
Render dates, placement, labels, people, custom-field display values, notes and readable relationships behind an opt-in Details checkbox. Recheck source and related access, admin-only field policy and field definitions; do not serialize account secrets or stale linked-source snapshots.

Thirty-six Node suites and two local SMTP browser scenarios pass. Linked-source details and specialized fields remain open under #2713.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 19:44:33 +03:00