37141 Commits
Author SHA1 Message Date
github-actions[bot] 15f1811c97 Bump versions for v12.47 v12.47 2026-10-15 13:12:13 +00:00
Lauri Ojansivu d390aba29c Prepare v12.47 release 2026-10-15 16:11:02 +03:00
Lauri Ojansivu 83c2ca9985 Three guards follow the restore and 6.09 test changes.
- sidebarArchives.js imports its own template: cardDetails.js now
  imports it for restoreArchivedCard, and a file that registers on a
  template it does not import may run before the template exists
  (clientBundleImports).
- The 6.09 restore spec makes its test ObjectIds with crypto.randomBytes,
  not Math.random (codeqlInsecureRandomness).
- Tigre's new restore strings say ወረቀት ካርድ for card and ምዱድ for board,
  the file's own words, not the bare Tigrinya ካርድ and ሰሌዳ.

Thanks to xet7 !
2026-10-15 13:29:53 +03:00
Lauri Ojansivu ee9ff3bedb CHANGELOG: Restore from Archive into a full list (#6772).
Thanks to jullbo and xet7 !
2026-10-15 13:16:22 +03:00
Lauri Ojansivu b9edbcc858 Restore from Archive into a full list asks for another list, instead of doing nothing.
Restoring an archived card whose list had reached a hard WIP limit did
nothing at all: the Restore handlers checked canBeRestored() and, when it
said no, returned without a word or a method call, and Restore all
skipped such cards just as quietly.

- Restore, in the Archive sidebar and in an open archived card, now goes
  through one function (restoreArchivedCard): a list that is full - or
  gone - opens the restore-to-list popup, which says the list has reached
  its WIP limit and offers only lists with room; with none left it says
  so instead of offering a list that would fail again.
- Restore all restores every card that has room and then says how many
  it left out and why. Its popup opens against the link kept before the
  loop: after the awaits the browser has cleared evt.currentTarget.
- canBeRestored() decides with models/lib/wipRestore.js, which also
  blocks a list that is OVER its hard limit: the old `===` let a card
  into a list whose limit had been lowered below its count. A soft limit
  still only warns.

Tests: tests/wipRestore.test.cjs (the rule, over-limit and soft/disabled
negatives, both Restore paths, Restore all's count, and a scan that no
client code skips a blocked restore without a word);
restore-wip-limit.e2e.js against the production bundle (restore into
another list with the full one not offered, Restore all restoring what
has room and naming the rest, a soft limit restoring at once), 12 of 12
over three repeats with the existing archive restore test. The four new
strings are translated in every locale.

Thanks to jullbo and xet7 !

Fixes #6772.
2026-10-15 13:16:14 +03:00
Lauri Ojansivu 9e1d5f65bd LDAP: the sync interval crash on Snap 12.46 is fixed (#6771).
"[uncaughtException] WeKan is stopping: TypeError: string.toLowerCase is
not a function" from later.parse.text, called by wekan-ldap's sync
schedule, with the snap restarting in a loop - the report on Alma Linux
8.10 with LDAP sign-in. A numeric LDAP_BACKGROUND_SYNC_INTERVAL reached
later's text parser as a Number; 7dfd942ff6 reads milliseconds or
later.js text and never throws, and tests/ldapSyncSchedule.test.cjs
reproduces this exact error with the real later.js.

Thanks to tromlet and xet7 !

Fixes #6771.
2026-10-15 12:54:31 +03:00
Lauri Ojansivu 025630b552 Tests: a board restored from WeKan 6.09 loads.
The upgrade report (one board with attachments loading forever after a
6.09 to 10.85 dump and restore) came without the board's data. The
fixture tests/fixtures/restored/wekan-6.09-board.json is that board's
SHAPE instead, derived from `git show v6.09:models/...`: CollectionFS
attachments (cfs.attachments.filerecord with its GridFS file and chunk),
a card cover pointing at a filerecord, lists with swimlaneId '', members
without the newer role flags, customFields by boardIds, checklists,
comments and activities as 6.09 wrote them.

restored-609-board.e2e.js restores it into the test database as it is
and requires the board to load: the board publication becomes ready with
the board and its cards, and the page shows its lists and cards, not the
spinner or the "could not be loaded" message. It passes against the
production bundle - and also against a bundle built without the client
cover fix, so neither the 6.09 data shape nor that fault is what hung the
reported board; what did is particular to that board's data, which the
board's page now names through the server log.

Thanks to xet7 !
2026-10-15 04:34:03 +03:00
Lauri Ojansivu defb110b18 CHANGELOG: search results of the search typed; browser specs on the bundle.
Thanks to xet7 !
2026-10-15 04:14:21 +03:00
Lauri Ojansivu 49344f32f4 Email view and Public Boards: a search shows its own results, never the last one's.
Found running the Email view's browser test against the production
bundle: once in eight runs, searching for text that matches nothing still
listed the previous search's card. Both views subscribe in an autorun, so
a new search's subscription starts before the old one stops, and both
published their page's ids into ONE shared index document; DDP's merge
box shows the older subscription's value while both exist, so whenever
the old one stopped late the new search showed the old rows.

Each request now has its own index, keyed by its arguments
(models/lib/reportPageIndex.js reportPageKey), built the same way on the
server and the client (emailViewPageArgs normalizes the Email view's
folder, page and search), and each view reads only the index of the
request it made. Admin Panel / Problems stops its subscription before the
next one, so its requests never overlap and keep a fixed id.

Tests: tests/reportPageKey.test.cjs (one id per request, server and
client agree, no autorun view reads a shared id); emailView and
publicBoardsPage pin the keyed ids. Against a rebuilt bundle the Email
view test passed 8 of 8, and with the Public Boards, Chat, Version
Control and import specs 30 of 30.

Thanks to xet7 !
2026-10-15 04:14:10 +03:00
Lauri Ojansivu 160110d1b3 Tests: the Email and Chat browser specs run against the production bundle.
Run against a freshly built bundle, as build.sh's browser run does, two
faults in the spec itself showed:

- Email view: Compose sends real mail, but the spec started no mail sink,
  so Send answered "The email could not be sent" in any run without an
  SMTP server. It catches the mail locally now, as the other mail specs do
  (helpers/smtpSink.js on WEKAN_TEST_SMTP_PORT), and checks that the
  message reached the recipient under its subject.
- Chat view: after page.reload() the new connection signs in again from
  the login cookie, and openView() called setBoardView before that, so on
  a fast server it failed with "Must be logged in". It waits for the
  sign-in, and a refused call names its code and reason instead of the
  minified "r".

Against the bundle: the Email, Chat, Version Control attachments and
import Attachment files specs pass (Chat 3 of 3 repeated, Email 5 of 5).

Thanks to xet7 !
2026-10-15 03:59:46 +03:00
Lauri Ojansivu 66b0952687 CHANGELOG: LDAP sync interval, attachment rename.
Thanks to B2RN and xet7 !
2026-10-15 03:28:19 +03:00
Lauri Ojansivu 515e63d322 Attachments: renaming one without extensionWithDot keeps its extension.
Running the new browser tests showed it: the rename popup appended
this.extensionWithDot, which a migrated attachment can lack, so the file
became "architectureundefined". It falls back to the extension now.

The browser tests were run against a local source-mode server: the
Version Control attachments spec (which now asks for the storage paths
as an administrator, for that call only) and the import Attachment files
spec pass; the Chat channels spec expects no unread message once the card
was opened in the middle, which reads it.

Thanks to xet7 !
2026-10-15 03:17:49 +03:00
Lauri Ojansivu 7dfd942ff6 LDAP: a sync interval in milliseconds no longer stops WeKan.
"[uncaughtException] WeKan is stopping: TypeError: string.toLowerCase is
not a function at later.parse.text ... at Object.schedule
(wekan-ldap/server/sync.js)", in a snap restart loop. The docs give
LDAP_BACKGROUND_SYNC_INTERVAL in milliseconds, settings_get() turns a
numeric value into a Number, and the schedule handed it straight to
later's text parser, which threw from a timer. Text later could not read
did not throw, but made a schedule that never ran - as a quoted
'every 1 mins' from a compose file did, the second report in #2354.

packages/wekan-ldap/server/syncSchedule.js reads the setting and never
throws: milliseconds (a Number or digits) become that interval, later.js
text is read as before, one pair of surrounding quotes is removed, unset
keeps the original default (recur().on(0).minute()), and anything
unreadable logs why and uses the default. The docs, the snap description
and the compose files say both forms work, instead of "leave this unset
so it does not crash".

Tests: tests/ldapSyncSchedule.test.cjs reproduces the crash with the real
later.js from the build, schedules 3600000 ms an hour apart and 10000 ms
ten seconds apart, reads quoted text, keeps the default, never throws on
any value a setting can hold, and fails if any server file hands a setting
to parser.text directly.

Thanks to B2RN and xet7 !

Fixes #2354.
2026-10-15 03:17:49 +03:00
Lauri Ojansivu fae5886319 CHANGELOG: every node suite passes again.
Thanks to xet7 !
2026-10-15 02:58:53 +03:00
Lauri Ojansivu 75534b5f1a Translations: the last thirteen failing guards, fixed on both sides.
The guards that failed before this release's translation work, each
decided by which side is right:

- The locale was wrong: Bislama's email recovery strings say sanem, the
  word the guard pins; Arabic-script Uzbek writes "e" as ې (26 words);
  Romansh says "chaschuna ina perdita da datas", names its own Menu and
  uses one word for the template container; Tigre's card is ወረቀት ካርድ,
  never the bare Tigrinya ካርድ (six strings); Wolaytta's permanent-delete
  label still held English words, now in the file's own Wolaytta; and
  Tamazight's operator-assignee is the portable search keyword again -
  the 2026-10-13 label sweep had translated a parser keyword, so that
  correction is removed and the earlier one stands.
- The guard was stale: Acehnese settled on kad for card on 2026-10-14,
  so the example cards use the file's own word; Uzbek key names may be
  translated as long as the printed label stays beside them; the README's
  coverage count is 234 now; the Transifex pull test hands its own node to
  the script it runs.
- The last English values of nine locales are their own words or settled
  terms (Neapolitan and Volapük "No", Frisian and Flemish "is", Breton
  "Me", Walloon "Pause", Venetian "Sprint", Veps "minus"), recorded as
  reviewed shared words, so the completeness guards and --missing agree:
  0 languages with untranslated strings.

Thanks to xet7 !
2026-10-15 02:58:42 +03:00
Lauri Ojansivu ccc65e7d89 CHANGELOG: every language translated; TODO Later is empty.
Thanks to xet7 !
2026-10-15 02:22:55 +03:00
Lauri Ojansivu d085a30f2d Translations: the last English strings of 43 locales.
Keyboard key names, Blockly's math names, Scrum roles and the S3 and
webhook labels, which the earlier passes had kept in English: the
established locales translate them (Finnish Välilyönti, German
Leertaste), so these do too. Breton keeps the reviewed "Me", Walloon the
reviewed "Pause", Venetian its "Sprint", and Veps writes minus without
the Finnish long vowel. Low confidence for the key names of Nahuatl,
Buryat, Cherokee, Klingon, Tibetan, Dzongkha, Wolaytta and Tigre.

What stays equal to English is the language's own word (Neapolitan
"No", Frisian "is", Volapük "if"), or in Blockly an operating system,
sin/cos/tan, and key labels the language's keyboards print.

Thanks to xet7 !
2026-10-15 02:22:25 +03:00
Lauri Ojansivu 7cbbec8836 Translations: the remaining strings of 12 more locales, Blockly included.
Greenlandic, Kashmiri, Nahuatl, Tigre, Tibetan, Dzongkha, Oromo,
Wolaytta, Northern Sami, Yakut, Inuktitut and Cherokee: every value still
equal to English, translated directly from each language's existing
wording, placeholders checked against English, only English placeholders
filled. Low confidence for Nahuatl, Wolaytta, Yakut, Inuktitut and
Cherokee; a speaker's Transifex translation replaces any of them.

Thanks to xet7 !
2026-10-15 02:14:29 +03:00
Lauri Ojansivu d698d6a1d6 Translations: the remaining strings of 20 more locales, Blockly included.
Translated directly from each language's existing wording, placeholders
checked against English, only English placeholders filled: Tamazight,
Volapük, Acehnese, Wolof, Fijian, Guarani, Veps, Quechua, Chichewa,
Northern Ndebele, Tigrinya, Samoan, Aymara (its last string, the S3
bucket, too), Fula, Bambara, Tswana, Kirundi, Swati, Chuvash and Buryat.
Low confidence for Volapük, Veps, Buryat and Tamazight; a speaker's
Transifex translation replaces any of them. The Veps guard records "ei
%1" for Blockly's "not": Veps negates with ei, as Finnish does.

Thanks to xet7 !
2026-10-15 02:01:26 +03:00
Lauri Ojansivu 7c6a94c734 Translations: the remaining strings of 50 locales, Blockly included.
Every value still equal to English in these locales, translated directly
from each language's existing wording and kanban terms, Blockly's
editor messages included; placeholders checked against English before
anything was written, and only English placeholders filled, so no human
translation is replaced.

All of Klingon, Ewe, Walloon, Luganda, Tongan, Tsonga, Venda, Kinyarwanda,
and the remaining strings of Bashkir, Pashto, Cantonese, Igbo, Xhosa,
Bhojpuri, Romansh, Maori, Breton, Sorani, Faroese, Northern Sotho,
Asturian, Amharic, Akan, Kyrgyz, Sicilian, Burmese, Hausa, Yoruba,
Frisian, Kurdish, Cornish, Uyghur, Aromanian, Sinhala, Sindhi, Manx,
Neapolitan, Assamese and their regional variants. Low confidence for
the constructed and smallest of them (Klingon, Venda, Tongan, Manx,
Cornish, Aromanian); a speaker's Transifex translation replaces any of
them. Walloon writes tangent as tandjinte, not the Waray-shared French.

Thanks to xet7 !
2026-10-15 01:45:28 +03:00
Lauri Ojansivu 0a58d618ce Tests: archiveSection allows the board subscription's onStop.
The board page passes an onStop callback since a failed load is shown;
the guard still pins that it asks for the live lists (false).

Thanks to xet7 !
2026-10-15 01:38:13 +03:00
Lauri Ojansivu 3c92954ab9 CHANGELOG: import attachment files, board load errors; TODO Later down to translations.
Thanks to xet7 !
2026-10-15 01:28:42 +03:00
Lauri Ojansivu 71b862c28c Tests: two guards follow the Chat view and the live-test log fixes.
customBoardRoles pinned Chat's comment check on the open board; the Chat
view opens a card of any board now, so it asks the card's board, and
the guard says so. liveTestsNoSecretLogs built a RegExp escaping only
`$`; it escapes every metacharacter (incompleteEscaping).

Thanks to xet7 !
2026-10-15 01:27:40 +03:00
Lauri Ojansivu f4126b9514 Translations: attachment files on the import page, a board that failed to load.
The five strings in every locale, translated directly from each
language's existing wording; English variants keep English. Bosnian
uses tabla for board and Tigre its established word for name, as their
guards require.

Thanks to xet7 !
2026-10-15 01:27:40 +03:00
Lauri Ojansivu 31615d7f98 Board: a failed load says so; 6.09 attachments no longer break covers.
An upgrade report: after a 6.09 to 10.85 dump and restore, one board with
attachments showed only the loading animation. The data is not
available, but the code had three faults on that path:

- The board page waited for its publication to be ready and had no
  onStop, so a publication that stopped with an error left the spinner
  up forever. It now shows "This board could not be loaded", pointing at
  the server log, which names the cause.
- The client cache fell back to the legacy (CollectionFS) attachment
  lookup, an async stub on the client: its Promise was taken for an
  attachment, so a 6.09 card's coverId became a cover whose link()
  threw, and the plural lookup handed callers a Promise for an array.
  The client no longer calls it; the server cache awaits the real one.
- The legacy attachments publication called startsWith() on a record's
  type, which throws when a 6.09 record holds something other than a
  string; it is read as a string.

Tests: boardRefreshReadiness drives the error path (shown, cleared on
another board, ignored from a board left behind); legacyBoardLoad pins
that no client cache calls an async lookup and that the server awaits
every one. The board itself is not reproduced: that needs the data.

Thanks to xet7 !
2026-10-15 01:27:37 +03:00
Lauri Ojansivu 51238ed8ad Import: attachment files of Jira, Nextcloud Deck, OpenProject, Asana and GitLab.
Their exports name attachments without carrying the files, so the files
were reported as a loss. Each service documents where a file is
downloaded, behind the same sign-in as its API:

- Jira: fields.attachment[].content (/rest/api/3/attachment/content/<id>),
  Basic email:API token; Jira's redirect to its media store is followed
  without the sign-in.
- Deck: /index.php/apps/deck/api/v1.0|v1.1/boards/../stacks/../cards/..
  /attachments/<id>, Basic user:app password, OCS-APIRequest: true.
- OpenProject: _links.downloadLocation, relative to the instance, Basic
  apikey:<key>.
- Asana: GET /attachments/<gid>?opt_fields=download_url with a personal
  access token, then the signed download_url without it; a file the
  export embeds (export_boards.pl) is taken as it is; one kept on Google
  Drive and the like is a link, reported.
- GitLab: a private project's /uploads/ link through
  /api/v4/projects/<id>/uploads/<secret>/<file> (17.4+), Bearer token.

The import page asks for the address, user and token under "Attachment
files" for these five (the REST import takes the same as attachmentAuth).
They go with that one import: held beside the creator in a WeakMap, never
stored or logged, the token field emptied on Import, and sent ONLY to
the origin the member typed - an export names any URL it likes. Every
download is the import's SSRF-guarded fetch, which validates each hop
and drops Authorization on a cross-origin redirect. A file that cannot
be fetched is on the loss report with its reason. Unticking Attachments
leaves them out (Jira's per-issue field is pruned too).

Zenkit is left out: it publishes no way to download a file.

Tests: importAttachmentAuth.test.cjs (each service's request, the
sign-in only to its origin, malformed sign-ins, never stored or
logged), the parser tests pin the attachment lists, a Meteor test
imports an embedded Asana file onto its card and shows a Jira file is
reported without a sign-in and that the sign-in never reaches an address
the guard refuses, and import-attachment-auth.e2e.js the page (not run
here). Not run against the live services.

Thanks to xet7 !
2026-10-15 01:27:26 +03:00
Lauri Ojansivu f95a891c06 CHANGELOG: Version Control view attachments.
Thanks to xet7 !
2026-10-15 00:51:15 +03:00
Lauri Ojansivu 132b341b8d Version Control view: Attachments have the card's controls, and open in the viewer.
The Attachments tab listed each file as a link to a new browser tab. A
file the attachment viewer can show now opens there on a click on its
thumbnail or name, with next and previous walking the tab's files, and
every file has the controls of an opened card's attachments: view,
download, rename, delete (the soft delete, behind the same confirmation)
and the cover / background menu, the writes for the same members as the
card's gallery.

Thanks to xet7 !
2026-10-15 00:51:09 +03:00
Lauri Ojansivu 7c1cffe4b6 CHANGELOG: Jira closed sprints; TODO Later without them.
Thanks to xet7 !
2026-10-15 00:46:51 +03:00
Lauri Ojansivu cc0b8c60ba Jira import: closed sprints, rebuilt from the issues.
Jira's sprint report has no documented API, so a closed sprint was
reported and skipped. It is now imported as closed, with its start and
close snapshots rebuilt from documented issue data: the Sprint field,
status and resolution at the sprint's start and completion dates, from
each issue's change history (expand=changelog), or from the issues as
they are now when there is none. The snapshots are marked partial. A
closed sprint with no start or completion date is still reported.

Thanks to xet7 !
2026-10-15 00:46:39 +03:00
Lauri Ojansivu 51e1a5c04d CHANGELOG: Chat view card in the middle, carets on folded panes.
Thanks to xet7 !
2026-10-15 00:38:04 +03:00
Lauri Ojansivu 230badf48e Chat view: a card from any board opens in the middle; folded panes keep their carets.
- Clicking a card in the channel tree took the member to that card's
  board. It now opens the card in the middle pane with its conversation
  beside it, whatever board it is on, and the page stays where it is. The
  card's conversation comes from a publication of its own
  (chatViewCardComments) with the tree's limits - a board the member sees,
  a role that reads comments, only their cards on an assigned-only board -
  and its writers' names; the comment box follows the card's own board.
- Folding the Channels or Comments pane left only an icon: the double
  caret stays now, pointing the way the pane opens, mirrored with the
  others right to left.

Tests: chatView.test.cjs (no navigation, the subscription, the card's
board for commenting, the publication's limits, the carets),
email-chat-views.e2e.js (another board's card in the middle without
leaving the page, carets visible on folded panes).

Thanks to xet7 !
2026-10-15 00:38:03 +03:00
Lauri Ojansivu 60317a8501 CHANGELOG: CodeQL #586, Jira sync from a Sandstorm grain, the closed issues.
Thanks to xet7 !
2026-10-15 00:33:59 +03:00
Lauri Ojansivu 1dc5b82369 Sandstorm: Jira List Sync works from a grain.
It was recorded as impossible: Jira signs in only with an Authorization
header, and the bridge proxy takes that header for the grain's grant. But
Sandstorm's HTTP driver can keep the sign-in in the grant itself
(shell/imports/server/drivers/external-ui-view.js in the Sandstorm
source): the member connects the Powerbox to "any address" and enters the
Jira address with the credentials in it - https://EMAIL:API-TOKEN@site
(the e-mail's @ as %40), or https://jira.example.org#TOKEN for a Server /
Data Center token - and Sandstorm moves them into the grant and adds
Authorization: Basic (or Bearer) to every request the grain sends through
it. WeKan never sees them.

- egress.mjs syncApiRoot grants a Jira list at its own address, and the
  Powerbox request asks for Basic authentication
  (ApiSession.PowerboxTag.authentication; apiSessionDescriptor takes it).
- In a grain the Jira fetcher sends no Authorization of its own, and a
  Jira source needs no WeKan token there: a marker credential says the
  grant holds the sign-in. Only for Jira - GitLab sends its token in the
  query, where a marker would reach GitLab.
- The List Sync popup tells a Jira list in a grain what to enter in the
  Powerbox, translated in all locales; the Sandstorm docs say how, and
  that the same #token form may let a private GitHub, Gitea or Forgejo
  through (not tried yet).
- TODO Later drops "Not possible from a Sandstorm grain", its last
  category naming an issue; changelogFormat no longer needs one.

Not run in a real grain here. Tests: sandstormSyncEgress.test.mjs (the
root and the Basic descriptor, and an address with credentials in it
still refused), sandstormJiraGrant.test.cjs (the server, the fetcher,
the marker only for Jira, the popup and the docs).

Thanks to xet7 !
2026-10-15 00:33:30 +03:00
Lauri Ojansivu de95789e45 Live tests: no log line carries anything from a login (CodeQL #586).
GitHub CodeQL js/clear-text-logging: releases/live-tests/basecamp-import.mjs
logged the Basecamp account id read from WEKAN_LIVE_BASECAMP_ACCOUNT. The
live tests run with the maintainer's own logins and keep a log under
.tools/log/, so nothing from a login or its configuration belongs in it.
The same shape was in two more tests and is gone there too: Planka logged
its configured address, and the GitLab write-back test its GitLab address
and scratch project path, also in the message that says it is skipped.
Each now logs what it does in fixed words.

These are human-run scripts, not part of the WeKan server, so there is no
attempt for Admin Panel -> Problems to record.

tests/liveTestsNoSecretLogs.test.cjs follows every value read from the
environment, a login or the credentials into the names it lands in, and
fails on any log line of any live test that interpolates one; a negative
case pins the reported shape.

Thanks to GitHub CodeQL and xet7 !
2026-10-15 00:25:21 +03:00
Lauri Ojansivu aad7e1414a TODO Later: no speaker review, no formats without documentation.
Maintainer decision 2026-10-15:

- Translating from dictionaries and each language's own wording is
  enough; speakers review it later if they have the time. The category
  listing terminology for a speaker to check is removed.
- Formats with no published documentation are not taken on: Restyaboard,
  YouTrack, Airtable, Leantime, Things 3, and Taskcafe (an archived
  project whose GraphQL API has no documentation beyond its source).
  Attachment contents from Jira, Deck, OpenProject, Asana, Zenkit and
  GitHub/GitLab stay: each documents its attachment API.

Thanks to xet7 !
2026-10-15 00:15:56 +03:00
Lauri Ojansivu 0d68c3536b Close #4790: User Filter is covered by what WeKan has.
#4790 was a collection of ideas ("I don't know what use cases it would
cover"), and a split into six new feature requests was prepared on
2026-09-29. Checked against the code, they describe what WeKan already
does under other names, so nothing needs filing:

- labels on organizations, teams, people and boards: organizations and
  teams are the groups of people; boards are grouped into All Boards
  workspaces and have their colours;
- a label from an LDAP group: LDAP groups sync as organizations and teams
  (#4737), with LDAP_SYNC_ADMIN_GROUPS and LDAP_SYNC_GROUP_ROLES;
- adding or keeping users out of boards by label: a board is shared with
  an organization or a team, and a private board not shared with one
  keeps it out;
- a board role for an LDAP group: the group syncs as a team, and the team
  is shared to the board with its role;
- finer roles: custom board roles (#3022, closed);
- users by e-mail domain: done (orgAutoAddByDomain.js, #5850, #4178);
- rules by label, meteor-roles and multitenancy were thoughts in the
  comments, not requests.

The prepared split (docs/Features/User-Filter-4790-Split.md) is removed,
TODO Later no longer waits on it, and docs/Design/TeamsOrganizations.md
says how its rows are covered - also that custom roles exist now.

Thanks to xet7 !

Fixes #4790.
2026-10-15 00:07:39 +03:00
Lauri Ojansivu 99d4ee4d91 Merge remote-tracking branch 'origin/main' 2026-10-14 23:56:55 +03:00
Lauri Ojansivu 707021fee2 TODO Later: only what is not built yet; close the issues that are.
What is built leaves the backlog, also where it is not yet tested against a
live service:

- #5758 Windows SSO: built in a594a58117 (v12.46), for a Windows host in a
  domain; the handshake was not run here.
- #2698 GitLab integration: GitLab sync and import (2026-09-30), and the
  write-back of edits, comments, closing and reopening in d6c1d6fce1
  (v12.46), with a live test in build.sh / build.bat -> Tests -> Live
  tests; GitLab login to WeKan through OAuth2 is documented, and card
  numbers with board keys give the #number references.
- #337 accessibility: move buttons, focus trap, landmarks, labels and
  every icon-only control named and guarded; a screen-reader pass is
  testing, not a missing part.
- #2208 Sandstorm: everything that can work from a grain is built (email
  sending, outgoing webhooks, list sync, the REST API through Sandstorm);
  Jira sync from a grain cannot, and stays recorded as such.

Also out: the continuous backup's live-account tests, the SMTP, browser
and identity-provider test matrix, the UCS / Nextcloud ExApp variable
check, the History switch (decided on 2026-10-08), Zenkit's unverified
export, the translation batch history, and the importers built on
2026-10-14 (Planka, Microsoft To Do, KanbanFlow, Basecamp). Left: Jira
closed sprints, the #4790 split to file, translations and their
terminology review, the attachment-board report, the formats not read
yet, and the Sandstorm limits.

changelogFormat's count of categories that link issues follows the
smaller backlog; it still fails on an issue named without its link.

Thanks to nikalasmd, ndarilek and xet7 !

Fixes #5758,
Fixes #2698,
Fixes #337,
Fixes #2208.
2026-10-14 23:56:19 +03:00
github-actions[bot] 6466686289 Bump versions for v12.46 v12.46 2026-10-14 20:50:19 +00:00
Lauri Ojansivu 8263ca936d Prepare v12.46 release 2026-10-14 23:49:01 +03:00
Lauri Ojansivu 857b6db4f4 CHANGELOG: the guard fixes after the importers and the feed.
Thanks to xet7 !
2026-10-14 23:23:14 +03:00
Lauri Ojansivu a6a1d3c1a6 Fix three guards the last commits tripped.
- The activity feed's new stylesheet was not imported, so it would not
  have been in the client bundle (clientBundleImports); client/features/
  main.js imports it beside the feed's template.
- The Basecamp and Microsoft To Do importers stripped HTML tags in one
  pass, which a crafted body survives ("<<b>b>" leaves "<b>"); each
  removal now repeats until nothing changes (tagStrippingFixedPoint).
- renderedTitles escaped only the first "." of a field name; it escapes
  every special character now (noIncompleteRegExpEscaping).

Thanks to xet7 !
2026-10-14 23:23:07 +03:00
Lauri Ojansivu d27dbe651f CHANGELOG: API importers, Chat channels, the History fork and the views that showed raw text.
The Upcoming section's In short covers them; TODO Later drops the third
round of decisions, all of which are built now.

Thanks to xet7 !
2026-10-14 23:09:31 +03:00
Lauri Ojansivu 2ee3e83793 Chat view: channels are the cards with a conversation, on every board, with unread counts.
The Chat view's tree listed the open board's swimlanes, lists and cards,
and every other board as a link that left for that board. Now:

- The tree is workspaces > boards > swimlanes > lists > cards, holding
  the cards that have a conversation on every board the member sees
  (server/chatView.js chatViewChannels). Every board without one is under
  Other boards; its first message moves it up to its place.
- Each level has a caret before its icon - after it, mirrored, in a
  right-to-left language - and folds open and shut with a slide (none
  for a member who asked for reduced motion). Clicking a board folds it;
  it no longer leaves the Chat view. The board the member is on, its
  workspaces, swimlanes and lists start open; what they open or close is
  kept in their browser.
- The board the member is on shows all its cards, from the board's own
  data, so a conversation can start on any card and a dragged card moves
  in the tree at once; its button shows only the cards with messages.
  Another board opened from Other boards shows all its cards
  (chatViewBoardChannels) for the same reason.
- Every level shows the messages this member has not read: others'
  messages after they last opened the card, all of them on a card never
  opened; opening the card - or a message arriving while it is open -
  reads it.
- Every name, and the chat's header, renders as Markdown (inlineViewer).
- Only what the member may read: boards they see in All Boards, only
  their own cards on an assigned-only board, no conversation where their
  role reads no comments.

Tests: tests/chatView.test.cjs (the tree, Other boards, a first message
moving a board up, unread sums, the full board, carets, folding rows,
no navigation), server/lib/tests/chatViewChannels.tests.js (unread
counts, never my own, the role and assigned-only limits, a board I do
not see refused), email-chat-views.e2e.js (folding without leaving the
view, the move up, unread badges, Markdown names). New strings
translated in all locales.

Thanks to xet7 !
2026-10-14 23:08:22 +03:00
Lauri Ojansivu 2cc6b93ed9 Version Control, the activity feed and the email list render titles as Markdown.
Titles, names and labels are Markdown in WeKan - links, emphasis, emoji -
but Board View / Version Control showed "Azure [issues](https://...)"
and the like as text, the all-boards activity feed did the same with the
cards and boards it names, and the email view's sidebar showed its lists
and labels raw ("Demo + Wishes 🌈").

inlineViewer (client/components/main/editor.jade) is the viewer itself -
Markdown, emoji, mentions, and the Admin Panel's security settings for
links and code - laid out inline at the size of the line it is in. These
views use it for every issue, milestone, label, release, wiki page and
board title, the activity sentence and its card and board, and the email
folders and row labels. An attachment's file name in its download link
stays a file name.

A rendered title can hold a link, and a link inside a link is not one:
the titles and labels that open or filter are spans with role=link now,
which Enter and Space open too, and a click on a link inside a title
opens that link instead.

tests/renderedTitles.test.cjs fails on any title-like value interpolated
as text in these views and pins the role=link spans.

Thanks to xet7 !
2026-10-14 23:07:30 +03:00
Lauri Ojansivu f12b718d81 Activity feed: every sentence names what it is about.
The all-boards activity feed showed "checked __checklistItem__ of
checklist __checklist__", "from list __oldList__ at swimlane
__oldSwimlane__", "added attachment __attachment__", an empty "at
swimlane", and raw names such as "removedChecklistItem": it filled only
the card, list and board of the notification sentence.

- server/activityFeed.js reads the ids the sentence needs and looks the
  names up a batch at a time: swimlanes, old list and swimlane, checklist
  and item, attachment, label, member and assignee, comment, old board.
  Never a field's value (an admin-only custom field stays out), a
  comment's text only for a member who may read comments, and another
  board only when the member sees it too.
- A rename or a restore names its new title itself, and a swimlane's
  activity keeps the swimlane's id in listId; activityTitleParams fills
  those for the feed and the notifications alike.
- A placeholder nothing could fill - a deleted checklist item - is left
  out instead of shown as __name__.
- Ten kinds of activity had no sentence at all, in the feed or in
  notifications: removedChecklistItem, moveCardBoard, deleteBoard, the
  board, list and swimlane renames and restores, joinAssignee and
  unjoinAssignee. They have one now, translated in all locales; the
  restores, moves and checklist ones join their notification groups.

tests/activityFeed.test.cjs fills every name, refuses comments and
hidden boards, and fails on any stored activity type without a
sentence; activity-feed-sentences.e2e.js checks the feed shows the names
and no __placeholder__.

Thanks to xet7 !
2026-10-14 22:57:31 +03:00
Lauri Ojansivu 46e30f01e4 Import: Planka, Microsoft To Do, KanbanFlow, Basecamp, Google Tasks and Google Keep from their APIs.
Decided on 2026-10-14. On the import page each of the six asks for what
its service needs - a self-hosted Planka its address, username and
password; the others an access token (Basecamp also its account id) -
lists what that account can import, and fetches the chosen board, list
or project. The credentials go with each call and are used for that
call's requests only; they are never stored or logged, and the page
clears secret fields once a fetch has used them. The fetched JSON fills
the import text box and the import goes on as for a pasted export: the
service's parser (models/lib/<key>ApiFormat.js) into the generalized
importer, with the members step and the loss report. The same JSON can
be pasted, or posted to POST /api/boards/import/<key>.

- server/apiImport.js: apiImportList and apiImportFetch, signed in only,
  off with the Admin Panel's import switch, not in Sandstorm, rate
  limited; credentials checked against the service's own fields
  (models/lib/apiImportServices.js).
- server/lib/apiImportRequest.js: every request through the SSRF guard -
  pinned address, no redirects, bounded in time and size - so a Planka
  address cannot point the server at its own network; an administrator
  can allow such a host with API_IMPORT_ALLOWED_PRIVATE_HOSTS. An error
  names only the origin and the status.
- models/lib/apiImport/<key>.js: each service's client, plain Node with
  the request injected, paging bounded and the token only in a header.
- Each has a docs page under docs/Features/ImportExport/, listed in the
  coverage index and External-Tools.md.

Tests: tests/<key>ApiImport.test.cjs (client with a fake request, every
parsed field, wrong shapes), tests/apiImport.test.cjs (credentials, the
gate, the wiring, the shapes refused), api-import.e2e.js (the form for
every service, fetched JSON imported through the page, refusals incl. a
private address). Live tests, read only, run from build.sh / build.bat ->
Tests -> Live tests with your own accounts (releases/live-tests/README.md);
they were not run here. New strings translated in all locales.

Also: the release risk baseline allows the services' API addresses, and
the guards that count import creators, list the import sources and pin
the platform fetch() calls know the new ones.

Thanks to xet7 !
2026-10-14 22:57:15 +03:00
Lauri Ojansivu 5fee137f01 Tests: three guards follow the History fork and GitLab write-back fixes.
- syncHistoryAdmission pinned the line that walked successors to the
  chain's tip inside appendSyncHistoryRow; 66dd9b0938 moved that walk to
  historyChainTip and made the append take turns, so it pins those.
- The write-back's injectable GitLab read was a parameter named fetch,
  which syncBleed's "no new platform fetch()" guard rightly could not
  tell from the real one; it is readIssues now.
- syncClosedByWeKan, the card field the write-back added, is in the card
  e-mail field inventory as internal provenance, excluded like the other
  sync fields.

Thanks to xet7 !
2026-10-14 22:56:34 +03:00
Lauri Ojansivu 66dd9b0938 History: two changes at once no longer fork a board's History chain.
Admin Panel -> Problems showed HistoryIntegrity, critical, "history-fork",
89,062 times. Each History row names the row before it, and the legacy
append (every board not migrated to the coordinated chain) read "the
newest row" and inserted after it as two separate steps: two changes
saved at the same moment on one board - two members, or one action whose
hooks record twice at once - both named the same row. Nothing was
tampered with, but the audit called it tampering, and undo, redo and
restore were refused for both rows. The writer gate around the legacy
append counts its writers for a migration; it does not make them take
turns.

- models/lib/historyLegacyAppend.js: a board's appends take turns in
  this server, and each links after the chain's tip - the newest row,
  then its successors, as Sync History already did - so a createdAt tie
  does not fork either. The ordinary recorder, the Scrum restore writer
  and Sync's legacy append all use it. Several servers writing one board
  at the same moment can still race; the coordinated chain is the answer
  to that.
- The hourly audit reported every broken row again every hour, which is
  where 89,062 came from; each finding is now reported once
  (historyIntegrityReported). It reads the History board by board instead
  of all at once, and a fork of two intact rows saved within a minute of
  each other is reported as what it is - integrity.historyConcurrentFork,
  medium, "a History writer race, not tampering" - while anything else
  stays critical.

Existing forks stay as they are (a row's hash cannot be changed), and
undo of their two rows is still refused.

tests/historyLegacyAppend.test.cjs: the old append forks under
concurrency (negative control), twenty appends at once on two boards
make two straight chains, a createdAt tie follows the chain, a failed
append does not stop the next, the audit tells a race from a changed or
late row, and no append in models/ or server/ links by "newest" without
taking turns.

Thanks to xet7 !
2026-10-14 22:39:36 +03:00