Artifact Hub's Trivy report of v13.30 listed 218 vulnerabilities in
ghcr.io/wekan/wekan, 214 of them in Debian packages WeKan never runs
(util-linux, login, tar, coreutils, systemd libraries, sqlite) with no
Debian fix to update to. The image is now gcr.io/distroless/cc-debian13
plus libatomic1, node, WeKan, FerretDB and the MongoDB tools; that base
scans at 55 findings, 2 HIGH. Distroless publishes no linux/386, so for
386 the same Debian 13 packages are assembled into scratch, each with
its dpkg record; the release workflow reads both bases from the
Dockerfile and the image keeps all seven platforms. The wekan user
stays 999:999.
With no shell, releases/ferretdb/wekan-entrypoint.mjs replaces
wekan-entrypoint.sh, with the same decisions, exported and tested. It
runs sqlite-recovery.mjs with its own node: the shell entrypoint ran
/build/node, which the image never had, so every start with the bundled
FerretDB stopped with status 127 since v11.52. It also makes cpu-exec's
qemu-user decision itself. The UCS migration launcher and tools, the
UCS hook's volume preparation (ucs-release.py), the MongoDB tool
launchers (symlinks to mongo-tools) and the Nextcloud capability check
run node instead of sh.
Thanks to xet7 !
- The General/ level is gone: its 109 files moved up into the folders of the
same name, and its topic table is the "Shared topics" section of
Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
five merged with an existing README.md, 26 index pages added for folders
that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
each feature linking to its page here.
1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.
Thanks to xet7 !
- A password sign-in refused by policy (PASSWORD_LOGIN_ENABLED=false,
forgot password off, LDAP's password-login guard) was counted by the
lockout as a wrong password, which threw its own 403 "Incorrect password"
over the policy's error: the person was told the wrong thing, and enough
attempts locked the account because of a setting. Policy refusals are no
guesses now (loginFailureDecision.js).
- Auto-archive fetched its boards without their members, so boardActorId
found nobody and every auto-archive was recorded as no user.
- Every upload got two "added" rows in the card history: the upload hook's
and the content index's. The index writes its row only for an attachment
that has none, and never for a durable rule copy, whose plan writes it.
- Not found is undefined from Meteor 3's findOneAsync: the Admin Panel
addresses test accepts either.
meteor test --full-app: 699 passing, 0 failing (was 693 / 6).
Thanks to xet7 !
The person signing in still sees the same generic message whatever the
reason, so a signed-out visitor cannot tell "no such user" from "wrong
password". Every refusal is recorded with its precise reason
(models/lib/loginRefusals.js, server/lib/loginRefusals.js): wrong password,
unknown user, disabled account, brake, malformed request, and the LDAP
reasons, which the LDAP handler now records before returning its one generic
error - including the two messages that used to name the account. Problems /
Summary groups them like a status dashboard: one row per reason with its
count, first and latest time, latest account and address, the fix and the
Admin Panel pane where it is made, and each problem area lists its three most
frequent problems. Translated to every language.
Thanks to Raymond-Voogt and xet7 !
Fixes#6942,
The last item of docs/Compliance/README.md's P3 list, on the maintainer's
decision: while ATTACHMENTS_PASSPHRASE is set (at least 16 characters), a
site administrator gets Admin Panel / Attachments / Encrypt, which
encrypts or decrypts every attachment on this server's disk in the
background with progress, and turns on encryption of new attachments.
- AES-256-CTR (server/lib/attachmentEncryption.js), so a download can
start anywhere: the counter for any byte is the IV plus its block. The
key is stretched from the passphrase with scrypt once per salt and kept
in memory. Each file starts with WKATT1, the salt and its own IV; a file
without the header is plain and read as before.
- Every read goes through FileStoreStrategyFilesystem.getReadStream, which
decrypts - byte ranges included - so every address, preview, export and
storage move is unchanged; the board export and the WebDAV move, which
read the file directly, use the same decrypting read.
- New uploads are encrypted after their validation and indexing, which
need the plain file; imports, e-mail to card and the REST API by an
hourly sweep. Each changed attachment's meta.updatedAt is set, so the
filesystem integrity scan sees the change explained. The runs and the
switch are in the Audit log.
- On every platform, the snap and the Helm chart (from a Secret).
Tested against a live server (tests/playwright/specs/attachment-encryption.e2e.js):
an attachment encrypted on disk downloads at the same address, whole and
as a byte range, and decrypts back to the same bytes. Seven new strings,
translated in every language. Low confidence: ace, ak, ay, bi, bm, bo, bua,
chr, csb, dz, ee, ff, fj, gn, gv, haw, iu, kl, kok, ks, kw, lg, lld, nah,
nap, nd, nso, fur, mg, tlh, tig, ti, wal, om, ve-PP, ve-CC, rup, zgh, uz-AR,
sah, vo, wuu-Hans, se, qu, to, sm, ss, ts, ve, ny, rn, tn, st, wa, sc, scn.
Thanks to xet7 !
The last of docs/Compliance/README.md's P3 list:
- Member Settings / Privacy and my data lists every session of the
account - this browser first, when each signed in, and when last active
where idle logout records it - each with Sign out, which ends just that
one. A session is named by an opaque id, never its token or hash.
Admin Panel / People's user popup has Log out everywhere for an account
(adminLogoutUser, in the Audit log) (models/lib/sessionList.js,
server/methods/sessions.js).
- BACKUP_PASSPHRASE encrypts every Admin Panel backup as it is written, to
disk or to cloud storage: AES-256-GCM, the key stretched with scrypt, the
salt and IV in the file's own header. A restore recognises the header,
decrypts beside the file and removes the copy whatever happens; a wrong
passphrase or a changed file is refused, and an older plain backup still
restores (server/lib/backupEncryption.js). On every platform, the snap and
the Helm chart (from a Secret).
App-level encryption of attachments on disk is left to a maintainer
decision (TODO.md): disk encryption covers it without changing every read
path.
Tested against a live server: tests/playwright/specs/backup-passphrase.e2e.js
writes an encrypted backup and restores it, and compliance-p3.e2e.js ends one
session of two. Four new strings, translated in every language. Low
confidence: ace, ak, ay, bi, bm, bua, chr, csb, cv, dz, ee, ff, fj, gn, gv,
haw, iu, kl, kok, ks, kw, lg, lld, nah, nd, nso, bo, fur, mai, bho, ary,
tig, ti, wal, ve-PP, ve-CC, ve, vo, tlh, zgh, wa, wa-RR, rup, sah, se, scn,
sc, sm, to, tpi, ts, ss, st, tn, rn, rw, ny, om, pap, qu, rm, szl, uz-AR,
ug, tt, yi, yue_CN, wuu-Hans, wo, xh.
Thanks to xet7 !
From docs/Compliance/README.md's P3 list and row 2.2:
- Emergency access: Admin Panel / People's user popup has "Emergency
access" with a note before Impersonate. It is kept as reason emergency
with the note (shown in the Impersonation Report), and every other
administrator who can sign in gets an e-mail at once; a failed e-mail
never stops the impersonation (models/lib/emergencyAccess.js).
- The administrators' audit log is hash-chained: each row carries its
place, the previous row's hash and its own. Its _id is its place, so two
servers writing at once cannot both take it - the unique _id refuses the
second, which takes the next. A daily check, and verifyAdminAuditChain,
walk it from the oldest row kept and report an edited or removed row in
Problems / Filesystem integrity (models/lib/auditChain.js).
- REGISTRATION_MINIMUM_AGE: the sign-up form asks "I am at least N years
old" and a password sign-up without it is refused; administrators'
accounts and identity providers' are not asked, and nothing is stored
(models/lib/registrationAge.js). On every platform and the Helm chart.
- Records of processing (draft) in Admin Panel / Settings / Legal pages:
every collection holding personal data, why, how long with this server's
values, and the outside services this server really uses, as Markdown to
complete (models/lib/ropaDraft.js).
Seven new strings, translated in every language. Low confidence: chr, dz,
bo, gv, ak, ay, bm, ee, ff, fj, gn, haw, bua, cv, ba, csb, ace, bi, fur, an,
ast-ES, co, fo, hsb, gd, ht, bho, as, iu, kl, kw, ks, nah, rup, sah, lld,
szl, sm, ss, nd, qu, om, pap, lg, rn, rw, nso, st, sn, ny, mai, kok, sc,
scn, nap, mg, la, ig, ky, ja-HI, tig, tlh, vo, ve-PP, wal, zgh, uz-AR, to,
tpi, ts, tn, ve, wa, wa-RR, wo, wuu-Hans, yi, yo, tk_TM, ug, tt, ti, oc, rm,
sd, ps. The wrong-language catalog values the translators saw are in
TODO.md.
Thanks to xet7 !
docs/Compliance/README.md P3 ([CRA] Annex I Part II(8)): Check version in
Admin Panel / Settings / Version now keeps what it found
(versionChecks, one document), and Summary lists "A newer WeKan is
available" while that check named a newer WeKan than this server runs,
with the date of the check and that security fixes go into the newest
release only. WeKan still never asks wekan.fi on its own: Summary only
repeats the check an administrator ran, and a test pins that only the
button fetches.
Thanks to xet7 !
Two items of docs/Compliance/README.md's P3 list ([GDPR] Art. 5(1)(c) data
minimisation and 5(1)(e) storage limitation):
- LOGIN_ADDRESS_RECORDED=false: WeKan writes down no sign-in address at
all - not on the account, not in Login locations or Offices; a sign-in
with a short password is still listed, without where from. The lockout
still counts failed sign-ins per address, to stop guessing.
- USERS_ANONYMIZE_INACTIVE_AFTER_DAYS: an account disabled for inactivity
(USERS_DISABLE_INACTIVE_AFTER_DAYS) is anonymised that many days later,
as Member Settings / Anonymize does - its data elsewhere erased first -
in the same nightly run. Disabling now records loginDisabledAt, enabling
clears it, and accounts disabled before it existed start their clock
now. Never an administrator, an account disabled by hand or by LDAP, or
one enabled again; off unless set.
Both on every platform, the snap and the Helm chart.
Thanks to xet7 !
docs/Compliance/README.md WP-11 (rows 4.2 and 4.3 b):
- Admin Panel / People / Audit log has a Data access tab: who downloaded
what - a board as JSON, CSV, Excel, PDF or ZIP, a chart, a card, every
board, a person's data, an Admin Panel list - one row per person, day,
kind and target with a count, the first and last time and the last
address, never a row per download. A raw middleware in front of every
route (server/lib/dataAccessLog.js) counts each export that answers 200,
and a test fails when an export route is not in its list. Kept as the
audit log (ADMIN_AUDIT_RETENTION_DAYS); erasing an account removes its
username and address from it. Export CSV on the tab.
- AUDIT_LOG_STDOUT=json writes every audit row, security problem and data
access also to stdout as one JSON line ({"wekan":"audit"|"security"|
"data-access", ...}), with only the fields the Admin Panel shows - the
arguments as stored, already redacted (models/lib/auditStdout.js). On
every platform's settings, the snap and the Helm chart.
- The admin CSV exports obey Admin Panel's switch that turns all export
off.
Five new strings, translated in every language. Low confidence: ace, ak,
ay, bi, bm, bo, bua, chr, csb, cv, dz, ee, ff, fj, gn, gv, haw, fur, co, ba,
bho, as, br, an, ast-ES, ha, ht, fo, iu, kl, ks, kw, nah, lld, rup, qu, sah,
se, szl, nap, scn, sc, rm, pap, lg, rn, nd, ss, nso, st, sn, ny, om, mai,
kok, la, sm, mi, tig, ve-PP, vo, wal, tlh, zgh, uz-AR, to, tpi, ts, ve, wa,
wa-RR, wo, yo, yi.
Thanks to xet7 !
ADMIN_AUDIT_RETENTION_DAYS replaces the fixed year of the administrators'
audit log (365 by default, 0 keeps it, HIPAA sets 2190 or more).
ACTIVITIES_RETENTION_DAYS removes board activity rows older than that, and
WORKLOAD_ABSENCE_RETENTION_DAYS absences that ended that long ago, both off
by default; the change history of cards is never removed.
WORKLOAD_ABSENCE_TYPE_RECORDED=false stores every new absence as "other", so
no sick leave is recorded. Admin Panel / Settings / Legal pages shows every
personal-data collection with its retention and the value of its setting on
this server. Listed on every platform, the Helm chart included
(docs/Compliance/README.md WP-7, rows 2.5, 2.7 and 2.8).
Thanks to xet7 !
Member Settings / Download my data and GET /api/user/export give the
signed-in person their account without secrets and every row of every
collection the personal-data inventory says holds their data, with a
manifest of what is in it and what is not, and why. Of a shared board, card
or list only their own part. Secrets are removed at every depth. An
administrator can export any account with userId=, recorded in the Audit
log. The menu label is translated in every language (docs/Compliance/README.md
WP-5; WP-4 recorded there too).
Thanks to xet7 !
Deleting an account removed only the users document and its board, card and
list memberships; 40 collections the personal-data inventory marks for
deletion or anonymisation kept the person - workload, time entries, sign-in
addresses, sessions, jobs, credentials, notifications, reactions, event-log
tallies. models/lib/userErasure.js holds a rule per collection and runs on
deletion (Users.after.remove) and anonymisation (anonymizeUser); an invoiced
time entry is kept without the person, and an anonymised account keeps its
references. Integrity-checked delivery records are reduced to ids by their
compaction, which the inventory now names. Anonymisation replaces services
whole and clears sign-in addresses, passkeys, SQRL, push and ntfy, e-mail to
card and the e-mail buffer. The inventory's gap list is empty
(docs/Compliance/README.md WP-4).
Thanks to xet7 !
The Broken cards pane listed a card whose type is not one of the four WeKan
shows; the Summary's "Broken cards N" and its repair looked only at a missing
board, swimlane or list, so such a card was never counted and never fixed.
"Broken" is one definition now, brokenCardsSelector of
models/lib/brokenCardsRepair.js, used by the pane, the count and the repair,
and the repair gives such a card the plain card type.
Thanks to xet7 !
A cancelled activity notification is a permanent receipt, kept so a delayed
writer cannot recreate its payload, and the recovery report listed every one
ever written. Since #6768 cancels expired notifications automatically, the
list grew into dozens of pages of old rows that hid the recoverable ones.
Pending notifications are always listed; cancelled receipts only while their
activity is newer than ACTIVITY_NOTIFICATION_RECOVERY_CANCELLED_DAYS (default
14, 0 lists none). Read-side only: no receipt is removed.
Thanks to Raymond-Voogt and xet7 !
Fixes#6941.
The board import stored spentTime: card.spentTime || null, and MongoDB and
FerretDB refuse the $inc that logs time on a null, so /cards/updateAsync
failed on every such card. The importers now store a Number. The Cards and
Boards before.update hooks turn an $inc of a stored non-number into the $set
of the sum (models/lib/spentTime.js) - not an update pipeline, which FerretDB
v1, Minimongo and allow/deny refuse. The startup step spenttime-null-repair
resets the stored nulls to 0. Checked against FerretDB: the bare $inc and the
pipeline are both refused there, the hook's $set and the repair step work.
Thanks to Raymond-Voogt and xet7 !
Fixes#6940.
A member refused write access to a list could move the whole swimlane to
another board with POST /api/boards/:boardId/swimlanes/:swimlaneId/move: the
route asked only for board write access, and the locked list's cards landed
in lists on the other board with no exceptions, where the member could edit
or delete them. Now the route refuses with 403 when a list holding the
swimlane's cards refuses the caller's role, and the attempt is shown in
Admin Panel / Problems as ListLockMoveBleed (authz.list-locked-move). A test
fails when any server code moves a swimlane without asking the gate.
Also: a card move outside a Meteor method read Meteor.userId(), which throws
on the server there, so every REST swimlane move answered 500 after its first
card had moved. The mover is read without throwing.
GHSA-394w-8q99-q4qx.
Thanks to adityasunny06help-coder and xet7 !
tests/billingLineKinds.test.cjs:
- Product is a kind with a label, and isInvoiceLineKind takes it;
- negative: an unknown kind ('gift', a wrong case, empty, not a string) is
refused, the schema lists exactly the library's kinds, and the Shop's
invoice refuses a line of a kind billing does not know;
- a shop invoice line is a product with its card, quantity and unit price,
and the lines add up to the net with VAT taken out;
- the e-invoice writes a product as pieces (H87) at its unit price, one unit
(C62) when there is no whole unit price, and a fee as before;
- a source scan of models, server, client, imports and config: every place
that names the fee and the expense kinds together - as strings, label keys
or style classes - names product too, so a new output that forgets it
fails;
- the label is translated in every language, with no placeholder.
tests/billingAccess.test.cjs holds the schema's kinds to the library's list,
and the Shop mocha test expects its invoice line as a product of 3 at 5 EUR.
Thanks to xet7 !
An invoice line was time, a fee or an expense; an order of Board View /
Shop was invoiced as fees. Product is now a kind of its own: a quantity at a
unit price, naming the product card.
- The kinds are one list, INVOICE_LINE_KINDS in models/lib/billing.js, with
a label key for each kind a line names (LINE_KIND_LABEL_KEYS) and
isInvoiceLineKind; the invoice schema takes exactly these kinds and the new
optional quantity and unitMinor of a product line. An unknown kind is
still refused, by the schema and by the Shop's invoice before it is
written.
- The Budget and billing page labels a line by that table, so a product
line reads Product; the draft list styles it like a fee or an expense.
- The e-invoice (UBL 2.1, Peppol BIS 3.0) writes a product as its quantity
in pieces (UN/ECE H87) at its unit price, and - when the net does not
divide into a whole unit price - as one unit (C62) at its amount, as a fee
and an expense are written. Time lines are unchanged.
- The Shop's invoice lines are products, and they add up to the invoice's
NET: with prices that include VAT the net is shared over the lines in
proportion to their prices, the rounding remainder on the last line, so
the lines, net, VAT and total agree on the invoice and in the e-invoice.
Before, those lines carried the prices with the VAT in them.
Existing fee lines are unchanged, and nothing is migrated: the PDF, SVG,
Excel and CSV write a line by its amount whatever its kind, as before.
Thanks to xet7 !
- tests/shop.test.cjs: a copied board's shop is closed with no Orders list,
fields or lists of the source, and Board.copy() - the only place a board is
inserted from another - resets it before the insert, while an import leaves
it out; the email has the number, lines, VAT, total, how to pay and the
reference, a one-line subject a shop title can not inject a header into,
no javascript: link, and an HTML part that escapes a product title; the
three new strings keep their placeholders in every language; the server
makes the invoice only with billing on, removes it with a failed order,
uses billing's numbering and the order's reference, and sends the email
after the order is stored through a sender that never throws.
- server/lib/tests/shop.tests.js: with Budget and billing off no invoice is
made; on, the invoice has the order's reference and total and the card
names it; the confirmation is captured in Finnish with the IBAN line and an
escaped HTML part; a mail server that fails leaves the order standing; the
shop's setting turns the email off; copyBoard gives a closed shop with no
Orders list that takes no order.
- tests/playwright/specs/shop-view.e2e.js: the checkout shows the invoice
number, and the invoice has the order card's payment reference.
Thanks to xet7 !
Budget and billing invoice. When Budget and billing is on (Admin Panel /
Settings / Features) for the admin whose Board Settings / Shop takes the
orders, and they are still an admin of the shop's board, shopPlaceOrder also
writes the order into billing's own invoices of that board
(server/lib/shopInvoice.js): billing's numbering INV-<year>-<number>, the
board's Invoicer profile and payment terms, status Sent, the order number as
its reference, the buyer as its customer, one fixed-price line per product
naming its card, and the ORDER's payment reference, so the card, the invoice
and the payment all name the same one. The order card says which invoice it
is, and the checkout shows its number. An order that fails after the invoice
was made removes it again. With Budget and billing off, no invoice.
Confirmation email. After the order is stored the buyer gets its number,
lines, totals with VAT, the payment method with its reference and account
lines, an https payment link and the shop's name, in the language of their
browser (server/lib/shopEmail.js, models/lib/shop.js orderEmail). It goes
through Meteor's Email, so Admin Panel / E-mail / Bounces takes out a stopped
address and the SMTP limits hold; it is not sent without MAIL_URL, when the
new Board Settings / Shop row "Send the buyer an order confirmation by email"
is unticked, or to a stopped address. The subject is one line; the HTML part
is the account email layout of the plain text, which escapes every
character. A failed send is recorded in Admin Panel / Problems / Email and
never fails the order. No QR image: the mail code has no inline images.
A board copy. Board.copy() - the copyBoard method, the REST copy route and
the board templates - resets shopSettings (copiedShopSettings): the copy's
shop is closed, and its Orders list, the price, product code and stock
fields and the lists on sale, which are the source board's, are cleared, so
a copy never takes orders into the source's Orders list. Board Settings /
Shop on the copy suggests the copy's own fields and Orders list again. A
WeKan import, and the clone that runs through it, already left it out.
The order card's labels are now in the owner's language: the server loads
the language before translating.
Thanks to xet7 !
Admin Panel / Settings / Features gets one switch, stored as
webhooksDisabled on the Settings document and saved by the site-admin
method saveWebhooksDisabled (audited). While it is on:
- nothing is sent: board and global webhooks, two-way webhooks,
Mattermost direct messages, the grouped and scheduled queue, durable
Sync webhooks, the login and registration webhook and bot dispatches
all ask webhooksOff() first (models/lib/webhooksSwitch.js SENDERS);
- adding or changing a webhook is refused: the Integrations deny rules,
the REST POST/PUT and activities routes (403 webhooks-disabled), a
webhook's own delivery settings and saveAccountWebhook. Each refusal
is recorded in Admin Panel / Problems as "Webhooks turned off"
(authz.webhooks-disabled, blocksAccount: false); a silent non-send is
never recorded;
- nothing is deleted, so turning it off brings every webhook back.
Removing a webhook stays allowed.
Also the site-admin method webhooksReportPage for the coming Admin Panel
/ Problems report: every integration with its board and owner, the
token reduced to whether one is set, secrets masked in the URL.
Tests: tests/webhooksSwitch.test.cjs (the queue sends nothing and keeps
what waits; every webhookFetch caller is a sender that asks or is listed
as not a webhook; every write path refuses and records; report rows
carry no token), a server mocha test, and the existing vm-driven suites
supplied with the switch, with a negative case that nothing is sent.
Thanks to xet7 !
Admin Panel / Settings / Privacy and security / Allowed addresses is a list of
IPv4 and IPv6 addresses and CIDR ranges. Empty, the default, is any address.
When it is set, a site administrator at any other address reads as a member:
every admin method, publication, allow rule and admin REST endpoint refuses
them, the Admin Panel's tabs say why, and their boards keep working. Members
are not affected.
It is enforced where every admin check reads: the caller's user document,
through Meteor.users.findOneAsync (Meteor.userAsync, ReactiveCache.getUser
and the allow rules all end there). For the caller of the running DDP method,
publication or HTTP request, their own document reads isAdmin false, and a
query that asks about isAdmin answers as it would for a member. Signing in
reads the stored flag, because OIDC and LDAP write it back.
The address and range rules are the Cloud Panel's (models/lib/cloudAddresses.js),
and the address is resolved with HTTP_FORWARDED_COUNT like every other guard.
A list without the saver's own address is refused, in the page before saving
and on the server, and a browser write of the field is denied. The server's
ADMIN_PANEL_ALLOWED_IP_ADDRESSES wins over the list, and "any" lifts it: the
way back in. It is listed on every platform.
A refused admin action from another address is one row in Admin Panel /
Problems (authz.admin-panel-address), once per call, without disabling the
account.
Translations of the three new strings into every locale were written
directly; the rarer languages (for example Cherokee, Inuktitut, Tigre,
Wolaytta, Nahuatl, Veps, Klingon) are low confidence.
Thanks to xet7 !
- tests/shop.test.cjs: products from the cards and lists on sale, prices in
minor units, categories, totals with VAT in and out of the prices, the
stock, Budget and billing's payment methods and references, the checkout
gate, the buyer's details, the public view that the Shop and the Website
share - and the negatives: a price sent with the cart is not read, a card
not for sale or sold out is refused, an unvalidated payment method or an
Orders list on a public board is refused, a script in a card title or a
buyer's name is escaped text, and no code but server/shop.js writes
shopSettings.
- server/lib/tests/shop.tests.js: the methods against a database - a
non-admin's settings refused, a guest refused unless allowed, a switched
off payment method refused, a tampered price ignored, the order card in
the Orders list, the stock taken, a closed shop refused.
- tests/playwright/specs/shop-view.e2e.js: an admin opens the shop, a
product is bought, the order card is found; a public board shows a
visitor the shop instead of the kanban.
Thanks to xet7 !
Where people signed in from was capped in count but kept for good, on the
account, in loginAddresses and in shortPasswordLogins. Once a day - claimed
for the whole installation - an entry last used before the cutoff is removed
from each; an address still in use keeps a recent date and stays, and 0 keeps
everything. Listed on every platform. Work package 2 of
docs/Compliance/README.md (GDPR Art. 5(1)(c) and (e), POPIA s. 14(1), PIPEDA
4.5.3, APP 11.2). tests/loginAddressRetention.test.cjs pins it.
Thanks to xet7 !
A site admin previews off features only while Admin Panel says so, and the
test database had the preview on, so the admin's call was allowed - as it
should be; the test now sets the preview off for the refusal and checks the
preview keeps the feature as the negative case. sendJsonResult writes `data`
as the body itself, so the signed-in id is json.id.
Thanks to xet7 !
The validateLoginAttempt hook refused every password sign-in, but a later
hook of the same chain - the lockout's "User not found" / "Incorrect
password" - overwrote its error for a wrong password and left it for a right
one, so while password login was off the answer still said whether a
password was right. Meteor's login method now refuses a { user, password }
request itself (loginRequestRefusal), synchronously before the original
method runs; the hook stays for resetPassword, verifyEmail and createUser.
Found by the new Playwright spec.
Thanks to xet7 !
CloudPanelBleed. Any site administrator of any WeKan could set the Cloud
Panel Domain and its SuperAdmin in Admin Panel / People / Cloud and then
make the server connect to any MongoDB server with credentials of their
choosing - Test connection and Import build a MongoClient from the
domain's database settings. A customer is the administrator of their own
WeKan container, so a customer could reach MongoDB servers on the internal
network.
The Cloud Panel now exists only where the server has CLOUD=<its domain>
(models/lib/cloudPanel.js cloudDomainFromEnv). The domain is never read
from the database, the browser or the REST API; the People / Cloud pane is
gone and cloudPanelGetSettings / cloudPanelSetSettings always refuse. Every
cloudPanel* method except cloudPanelWhoAmI passes the CLOUD gate before
anything else, its argument checks included, and the one MongoClient built
from data that is not the environment (withSource) has the gate in its own
body. A refusal is recorded in Admin Panel / Problems under the new keys
authz.cloud-panel-off, authz.cloud-panel-access and
authn.cloud-admin-address (bleed CloudPanelBleed; none disables an
account).
- Cloud Admins: on the CLOUD container its site administrators - the first
registered user is one - not disabled, never a customer's account. They
have Admin Panel / Cloud (/admin/cloud/<pane>, a tab shown only for a
Cloud Admin at the CLOUD address): Domains, Invoices, Tickets, Chat,
Cloudflare, Caddy, Allowed addresses. /cloud stays the customers' panel.
- Customer login: a password login handler, ahead of accounts-password's
and after the timing normalization, only at the CLOUD address, only for a
name exactly one domain with its own database lists, never for a name an
account of the panel's own has. The password is checked against that
customer's own database hash with Accounts._checkPasswordAsync, under an
id no local account has; a disabled or password-less account there is
refused, and so is a wrong 2FA code. On success a local non-admin account
without a password, services.cloudCustomer, which sees exactly its own
domain: info, invoices, tickets and chat.
- Support boards: one WeKan board per domain, "Support: <domain>", lists
Open / In progress / Done for tickets and Chat with one card whose
comments are the support chat (Board View / Chat shows them as a chat).
Cloud Admins are board admins, customers Comment only: they read and
comment but cannot create, edit, move, archive or delete a card nor
manage the board; the panel adds their tickets into Open. The earlier
cloudChatMessages are moved once into the chat card; imported
Rocket.Chat and SandChat conversations go there too.
- Allowed addresses: IPv4, IPv6 and CIDR ranges (models/lib/cloudAddresses.js).
When set, a Cloud Admin login (resume included) from elsewhere is refused
and recorded, and so is a Cloud Admin method. A list without the saver's
own address is refused; CLOUD_ADMIN_ANY_ADDRESS=true sets it aside for a
locked-out operator.
Tests: tests/cloudPanel.test.cjs, tests/cloudAddresses.test.cjs,
tests/cloudPanelAccess.test.cjs (the real methods and login handler without
and with CLOUD), tests/cloudPanelGate.test.cjs (the MongoClient source scan),
server/lib/tests/cloudPanel.security.tests.js and
tests/playwright/specs/cloud-panel.e2e.js (negative without CLOUD; the
positive part runs with CLOUD=localhost WEKAN_TEST_CLOUD=true). The guards
that pin board inserts, comment inserts, card-reading paths, copy/move
methods, the Admin Panel tabs and method areas list the panel's support
board and its methods, with the reason.
Thanks to xet7 !
An unticked feature hid its menus and nothing else: the Table, Chat, Email,
Version Control and Scrum views' methods and publications still answered,
setBoardView still stored a hidden view, and a client could still turn on a
list policy, a commitment point, a WIP limit per person or a split list.
models/lib/featureServerGates.js lists, for every catalog feature, its server
paths, its write gates, or why it is display only. requireFeature /
featureAllowed (server/lib/assistGate.js) refuse with feature-disabled and
record the attempt in Admin Panel / Problems as Disabled setting; the Scrum
methods are wrapped in one place, except the ones the card details, Board
Settings and data recovery use too; Boards / Lists deny rules refuse turning
a flow policy on; setCardFlow refuses Done here while split lists is off;
setBoardView refuses a hidden view. Board Settings / Scrum settings follows the
Scrum views tick, as it opens in the Sprints view.
tests/featureServerGates.test.cjs fails when a catalog feature is undecided,
or when a method or publication of a feature file does not ask the gate.
Thanks to xet7 !
Admin Panel / People / Login / Self delete user account unticked only hid the
Delete and Anonymize buttons: removeUser and anonymizeUser on your own account
still worked, and so did DELETE /api/users/:userId for an administrator's own
id. And removeUser's self branch returned before the last-administrator
check, so the only site administrator could delete themselves.
Now every self-removal path asks models/lib/selfAccountRemoval.js: refused
while the setting is off (recorded in Admin Panel / Problems as Disabled
setting, never disabling the account), and refused for the last site
administrator (not recorded: the button is there, so it is ordinary use).
Username Change unticked: the setUsername method already refused, but the
Users allow rule still let a client write its own username directly; a
Users.deny rule now refuses that and records it.
Thanks to xet7 !
PASSWORD_LOGIN_ENABLED=false only hid the password form: a DDP login with a
password, or POST /users/login, still signed in with a local password. Now an
Accounts.validateLoginAttempt hook refuses every password-service sign-in
(login, resetPassword, verifyEmail, createUser) whether the password was right
or not, and POST /users/login answers 403 before it looks up any user. LDAP
keeps working: with LDAP on, a REST username goes to the directory only, and
the LDAP handler's own LDAP_LOGIN_FALLBACK stays the operator's LDAP decision.
Forgot password unticked only hid the link: Meteor's forgotPassword method
still e-mailed a reset link. It is refused now, and also while password login
is off.
The decisions are models/lib/passwordLoginPolicy.js. Each refusal shows in
Admin Panel / Problems as Password login disabled or Forgot password disabled,
without disabling the account. New page
docs/Features/Admin-Panel/Settings-Enforced-On-Server.md.
Thanks to xet7 !
Every attachment gets its SHA-256 (contentHash: value, size, time) and its
plain search text (with the time it was made) when it is added, and - for
one added before this - the first time it is read whole. Text, Markdown,
CSV, code, JSON, HTML and e-mail are read as text, PDF and Office through
the document extractor, Outlook .msg and OpenDocument from their slideshow
rows. A new attachment's "Added" card history row carries its hash, and so
do the soft delete and restore rows.
Each whole read hashes the bytes on their way out, with no second read: no
stored hash - it is stored; the same - nothing; another hash that the card
history knows - an earlier version an undo or restore brought back - a new
hash and search text are made; anything else - a warning in Admin Panel /
Problems (integrity), keeping the stored hash. A range is no evidence.
Filter's text field, the board's Search and Search All Boards find a card by
its attachments' text; each index row is checked against its live
attachment on that card, and the text is never sent to the browser.
tests/attachmentContent.test.cjs pins the decisions and the wiring;
tests/playwright/specs/attachment-content-search.e2e.js adds a file, finds
it three ways, changes it on disk (warned), reads a range (nothing) and
brings back a known version (accepted, indexed again).
Thanks to xet7 !
POST /api/inbound-email needs no secret by default, and every email it
received was first checked for being a delivery status notification: one
forged DSN naming any address became a hard bounce, which stops every email
WeKan sends there - invitations, notifications, password resets - and only an
administrator could undo it.
A bounce is now recorded only from a transport that proves who sent it: the
webhook when its secret is configured and matched, SES after its SNS
signature and topic are checked, an IMAP mailbox WeKan signs in to, and the
Sandstorm grain's own mailbox. Elsewhere it is refused with 403, makes no card
or comment, and is summarized in Admin Panel -> Problems as BounceBleed.
tests/bounceBleed.test.cjs requires every receiver to say whether it may
carry a bounce, only the trusted ones to say yes, and nothing to record a
bounce around the gate. server/lib/tests/inboundEmailRoute.tests.js posts the
advisory's forged DSN over HTTP without, with a wrong and with the secret.
GHSA-7w85-38ph-c96v, GHSA-2wcc-f289-3r95, GHSA-735h-p955-fwxp.
Thanks to crypto-nidh and xet7 !
An Outlook .msg (a Compound File of scattered sectors) and an
OpenDocument (a ZIP whose text is a compressed content.xml) cannot be
read a row at a time as they are: the slideshow read a .msg whole, up to
32 MB, and an OpenDocument as far as it was scrolled. Now the server
converts each the first time it is opened (server/lib/
attachmentPreviewStore.js):
- the original is read from its own storage in 64 KB byte ranges, never
whole; of a .msg only the sector tables are kept and the text streams
(models/lib/outlookMsgFormat.js openCompoundFile, outlookMsgRows),
attachment data is never read; of an OpenDocument only content.xml is
inflated and parsed as a stream (models/lib/zipDirectory.js and
odfBlocks.js, moved from the client so both share them);
- what is found is written as rows - one JSON object a line - with an
index of where each starts, to temporary names renamed when complete,
in attachment-previews/ under the files root; made again when the file
changes and removed with the attachment; two conversions at a time;
- one preview takes at most 512 MB of the server's disk, and a row
repeated more than 100,000 times is written that many times.
The parts are served at /cdn/storage/attachments/<id>/preview-meta,
-index and -rows, after every check the original has, with Range, as
application/octet-stream, nosniff and a sandboxing CSP. Two path
segments, as /thumbnail: Meteor-Files answers every longer path under
/cdn/storage itself. The slideshow reads them through
client/lib/attachmentRecords.js into IndexedView, whose scrollbar is
exactly the rows; only the visible rows are fetched and drawn, and no
viewer reads a file whole any more.
tests/attachmentPreviewStore.test.cjs reads a .msg with a 5 MB
attachment through ranges and finds it the same as the whole-file
reader without reading the attachment, a 60,000-line body and an
HTML-only body as rows, an OpenDocument's 6 MB picture never read, the
repeat and disk guards, made once and removed, and the route after
every check. attachment-rich-preview.e2e.js opens a 100,000-line .msg
in Chromium and finds only ranged preview parts fetched, the last line
at the end of the scrollbar, and the preview refused without signing in.
Thanks to xet7 !
Found by running their Chromium specs through build.sh:
- Budget and billing did not refresh after a save: the board pane read the
current template data inside a promise, where there is none. It uses its
own instance's data now, and a save refreshes only the board's detail and
its row, without the spinner that took the pane down and without the
billingBoards call that ran into its rate limit.
- Workload's capacity form lost its "saved" note: the refresh after a save
showed the spinner, which replaces the form. The spinner is now only for the
first load.
- The Cloud Panel's forms did not render: a function passed to an inclusion as
done=done is called by Spacebars, so they received its result. Errors and
the domain being edited are module state now.
- The checkboxes of the three pages were hidden by the app-wide form styles;
each page shows its own again.
- An invoice PDF failed in the bundle with "Cannot find module
#standard-fonts/Helvetica": pdfkit is given the bundled font.
Tests: templateDataInPromise, spacebarsFunctionArgs and nativeCheckboxesShown
find each shape anywhere in the client, invoiceFiles requires the font in
every PDFDocument, and workload pins the spinner to the first load.
Thanks to xet7 !
Import and Export have a new group, Website:
- WordPress (.xml): WordPress eXtended RSS from Tools -> Export, as
Squarespace, Wix and others also write it; written as WordPress reads it.
- WordPress REST API (.json): /wp-json/wp/v2/posts and /pages.
- Ghost: its JSON export, written as Ghost's importer reads it.
- Blogger (.xml): its Atom backup.
- Hugo, Jekyll, Eleventy, Astro (.zip): Markdown files with YAML or TOML
front matter, and their images; written as content/pages and
content/posts.
- HTML website, Medium (.zip): a site's .html pages and images, read for
their main text; written as the published site itself, ready for any
web server, with the cards' attachments beside their pages.
- Substack (.zip): posts.csv and the posts' HTML.
Each page and post becomes a card in the list of its status (Published,
Draft, Pending review, Scheduled, Private), pages in the swimlane Pages and
posts in Posts, its content as Markdown, a subpage as a subtask, categories
and tags as labels, approved comments as comments, a .zip's images as
attachments. A site's HTML is read as text, so no script of it reaches a
card; a card's text is written into an exported site escaped, never as
markup.
Board View / Website shows the board as that website: the cards of its
Published list (every list when it has none), Pages as the menu with the
subpages, the other cards as posts, newest first, and the cards'
attachments - built straight from the board. As a public board's default
view in Board Settings / Board View, it is what visitors see at the
board's address instead of the kanban; a draft is never shown, not even by
its id. Admin Panel / Features can turn it off.
The Sandstorm WordPress and Hacker CMS grain imports stay under Sandstorm,
by the rule that a platform's apps are listed under it.
12 new strings are translated in every language. Lower-confidence
translations: ace, ak, ay, bi, bm, bo, dz, ee, chr, bua, cv, ba, csb, an,
co, br, ary, bho, as, am, ckb, iu, kl, ff, fj, gn, gv, kw, ig, ha, haw, ks,
kok, fur, hsb, fo, ku, lld, nah, rup, sah, se, sc, scn, nap, qu, sm, pap,
lg, nd, ss, nso, rn, om, mg, ny, sn, so, ps, sd, mai, or_IN, my, la, tig,
wal, tlh, vo, zgh and ve-PP.
Thanks to xet7 !
Budget and billing gains what a professional services automation system
has on top of time and invoices:
- Expenses (travel, accommodation, meals, materials, subcontracting,
software, other) with a markup, billable or not, on a card and a person.
They spend the budget at their cost and go on the next invoice of their
period at their charge, once; voiding or crediting frees them.
- Fixed fees billed once from their day (milestones, fixed prices) and
monthly retainers to their end. Which occurrences are billed is read from
the standing invoices' lines. "Bill time by the hour" off makes a board a
fixed price: its invoices carry fees and expenses only.
- Approving time: with it on only approved time is invoiced; board admins
approve or send back the waiting entries, the card's Time popup shows the
decision, and approved time can no longer be removed by its logger.
- A cost per hour on a rate, the board's cost (hours at cost rates and
expenses), unbilled work in progress and the margin.
- Quotes (QUO-YYYY-NNNN) of the work still to do and the fees not billed,
valid for the invoicer's days, draft -> sent -> accepted or declined;
accepting can make the quote the budget; PDF, SVG, Excel and CSV.
- The board's customer, filled in on invoices and quotes.
Workload gains billable utilization against working time with a target, and
skills with levels: a placeholder that needs a skill lists who could do it,
the most free hours first.
Two bugs found on the way: crediting an invoice failed on a real database,
because the invoice schema did not allow the status "credited" (a test now
checks every status the server writes against the schema); and the workload
report ignored everybody's own working time, because capacityOf validated
the stored document with its _id and userId and fell back to the default.
58 new strings are translated in every language. Lower-confidence
translations: chr, dz, bo, csb, cv, bua, ay, ff, fj, gn, gv, haw, ig, iu,
kl, kw, ks, kok, hsb, lg, lld, nah, nap, scn, sc, rup, rm, qu, se, sah, nd,
ss, nso, ny, sn, rn, rw, om, so, sm, mi, mg, pap, la, mai, or_IN, sd, ps,
my, tig, tlh, wal, zgh, vo, ve-PP, uz-AR, tpi, wa and wo.
Thanks to xet7 !
Money was kept in cents for every currency, so 1000 JPY was stored as
100000 and 1.500 KWD could not be written at all. models/lib/currencies.js
now holds the ISO 4217 minor unit of each currency (0 for JPY, KRW, VND,
CLP, ISK and others, 3 for BHD, KWD, JOD, OMR, TND, IQD, LYD, 4 for CLF and
UYW, 8 for BTC, LTC and ETH), and rates, budgets, payments, the invoice
CSV, Excel, PDF, SVG and UBL e-invoice all use it.
Payment methods added, each from its published specification:
PromptPay (Thailand), PayNow (Singapore), VietQR (Vietnam) and FPS (Hong
Kong) as EMVCo merchant-presented QR codes; Czech SPAYD; Polish ZBP;
Hungarian MNB QR; Serbian NBS IPS QR; Danish FI +71; Ethereum EIP-681 and
Litecoin URIs. Each method checks that the invoice is in the currency it
requires. Payment references add the Belgian structured +++ reference
(mod 97), the Norwegian KID and the Swedish OCR (Luhn).
21 new strings are translated in every language. Lower-confidence
translations: nah, qu, rup, sah, se, sm, sn, ss, nd, nso, rn, rw, lg, om,
so, mg, mi, lld, nap, sc, scn, pap, la, my, or_IN, sd, ps, tig, tlh, vo,
zgh, ve, ve-PP, wal, wa, tpi, to, uz-AR, wo, ti, ts, st, tn and szl.
Thanks to xet7 !
Time entries. A card's Time popup lists its time by day - the day, the
hours, who logged them, a note - and Log time adds an entry on a day. The
card's spentTime stays its total, so the timers, the REST API, the imports
and every report work as before: whenever the total changes, however it was
written, the server records the difference as an entry of that day by that
user (models/lib/timeEntries.js reconcile, server/timeEntries.js); time
spent before entries were kept becomes one undated entry, once. An entry on
an invoice cannot be removed.
Invoices of a period. Lines are the billable entries of a period that are on
no invoice yet, per card and per person who logged them, at that person's
rate, with each line's first and last day; undated time only when asked.
The entries are marked with the invoice, so nothing is billed twice; voiding
or crediting frees them.
Payment codes, each by its published standard (models/lib/paymentCodes.js),
checked against the standards' own examples: SEPA EPC QR (GiroCode), the
Finnish bank barcode (versions 4 and 5, Code 128 C - the Finanssiala
example), Finnish reference numbers and ISO 11649 RF references (the ISO
example), the Swiss QR-bill (SPC 0200; the QR code with its cross, not the
payment part layout), Swish, Pix (the BCB example CRC), UPI, Bitcoin BIP 21,
PayPal.me and any https payment link with {amount}, {currency},
{reference} and {number}; bank transfer, cash, cheque and other as text.
Nothing is sent to any payment service.
Files: PDF (A4, paged), SVG (A4 wide, as long as the invoice, text as text),
Excel, CSV and a UBL 2.1 Peppol BIS Billing 3.0 e-invoice (a credit note as
a UBL CreditNote), with QR codes and the barcode as vectors.
Also: the invoicer's details, kept on each invoice as they were; VAT and
reverse charge; payment terms (the due date) and penalty interest; payments
recorded, partially paid and overdue (days and interest so far); credit
notes (CRN-), numbered with invoices.
Tests: tests/timeEntries, paymentCodes, ublInvoice and invoiceFiles (real
pdfkit, qrcode-generator and exceljs - it caught exceljs adding an empty
header row through sheet.columns), and billing and billingAccess for the new
model; the Playwright spec invoices a period and downloads PDF and SVG. The
new strings are translated into every language; low confidence for the
smallest ones, and for Veps "Arvon kazvandan nalog" for VAT. PayPal.me is
recorded as a reviewed URL in releases/risk-baseline.json.
Thanks to xet7 !
- server/lib/attachmentApiAccess.js: the size limits and the board write check
that the attachment Meteor methods (server/attachmentApi.js) and REST routes
(server/routes/attachmentApi.js) each defined, identically - seven
functions. tests/assignedbleed reads the write check there and fails if
either API defines its own again.
- server/lib/contentDisposition.js: the Content-Disposition filename
functions of server/routes/universalFileServer.js and legacyAttachments.js.
- models/lib/fileStoreStrategy.js: the GridFS, filesystem and cloud strategies
had the same interceptDownload. The base class now has it, and still fails
closed: a strategy whose getReadStream() gives nothing - the base one gives
nothing - answers 404 and never hands the file to Meteor-Files unfiltered.
tests/attachmentServeFailsClosed holds any override to the same rules.
- models/lib/uploadFileId.js: uploadNameParts() reads the id and name of an
upload for both Attachments' and Avatars' namingFunction, which each had
the same 25 lines. tests/uploadFileId, which the module's comment named but
did not exist, covers it and safeUploadFileId.
Thanks to xet7 !
Ten modules were reached only from tests. Some were copies of production
logic kept beside it, so a test passed whatever production did; the rest
were re-export files that only tests imported.
Copies removed, the test now reading what runs:
- models/lib/oauth2ClientSecretJwt.js: wekan-oidc ran its own vendored copy.
The package file is now the only one and tests/oauth2ClientSecretJwt
drives it; tests/packageAppImportBoundary fails if a second copy returns.
- models/lib/scrollbarCss.js (#5439): tests/scrollbarCss reads the rules in
client/components/lists/list.css.
- models/lib/createListParams.js: tests/createListParams reads the check()
pattern of createListAfter in server/models/lists.js and runs it by the
rules of Meteor's check, so changing the server pattern fails the test.
- server/lib/cardMatch.js (#5910): the search is a Mongo selector in
server/publications/cards.js, which tests/boardSearchComments now reads.
- server/lib/dueDateEdits.js (#6081): Cards.getDueDateChangeCount() counts
the a-dueAt activities itself.
Helpers that production now calls:
- models/lib/checklistHide.js (was server/lib): the Checklists helpers
hideCheckedState() and isItemHidden() call it, with the same strict
"checked is true" rule as before.
- models/lib/subtaskSettings.js (was server/lib): the Board Settings
subtask pickers mark the selected board and list with it.
resolveSubtaskLanding(), which nothing called, is removed with its tests.
Re-export files removed, the tests importing the real module:
server/lib/listColors.js, cardScope.js, announcementVisibility.js,
customNumberFormat.js and subtaskHelpers.js.
docs/DeveloperDocs/Directory-Structure.md pointed at the migrations/
directory, which no longer exists; it now names server/migrations.
Thanks to xet7 !
A new Sandstorm heading on the Import page and in the Export menu lists the
apps whose grain backup .zip (Download backup) WeKan reads, and for most of
them writes back as a grain Sandstorm restores. The grain's metadata, a
GrainInfo Cap'n Proto message, is read and written without a Cap'n Proto
library; each app's data is read from its own storage in data/:
- WeKan: FerretDB's SQLite (JSONB documents with their own type schema) and
the attachments; several boards become swimlanes, "One board per
project" splits them again. Import only.
- Prioritize (data.json), Yet Another TODO list (SQLite), uTodo (a bitcask
log with CRC-32s), SandChat (SQLite), EtherCalc (SocialCalc's save
format), Radicale calendar (.ics) and address book (.vcf), Davros (the
files) and Hacker CMS (a Jekyll site): import and export.
- Gogs (SQLite issues) and WordPress (its SQLite posts and pages): import
only - their grains are whole installations.
Rocket.Chat, Text Editor, SandForms and Piwik keep their data in MongoDB's
or MySQL's own files; their grains are refused with that reason, and any
grain of another app than the one chosen with the app it is. SQLite is read
and written with Node's own node:sqlite in a temporary directory. Every
reader was run on real grains of these apps; the tests make their own.
Low confidence translations include ace, ak, ay, ba, bi, bm, bo, bua, chr,
csb, cv, dz, ee, ff, fj, fo, fur, gn, gv, ha, haw, hsb, ig, iu, kl, kok, ks,
kw, tlh, vo, tig, wal, nah, qu, zgh, ve-PP, rup, lld, szl, sah, se, om, wo,
sm, to, tpi, rn, nd, ss, ts, ve, nso, st, tn, sn, ny, lg, mg, mi, sc, scn,
nap, wa, wa-RR, ve-CC, pap, yi, sd, mai, or_IN, uz-AR, ug, wuu-Hans, rm and
oc.
Thanks to xet7 !
Azure DevOps Boards: a query's "Export to CSV" is imported (Board Column or
State as lists, Board Lane as swimlanes, Title 1/2/3 tree levels as parent
cards, "Name <address>" people, regional dates, other columns as custom
fields), and a board exports as the CSV "Import from CSV" reads.
Microsoft Lists: a list's "Export to CSV" is imported (Status or Progress as
the lists, people, dates, tags, other columns as custom fields), and a board
exports as a CSV that "New list - From CSV" makes a list of.
Microsoft Project: the "XML Format" (MSPDI) plan is imported (summary tasks
as swimlanes, progress as lists, subtasks, resources, predecessors), read by
a small XML reader that never resolves a DTD or an entity, and a board
exports as a plan Project opens.
Outlook: .msg files are read without a library - the Compound File Binary
format (MS-CFB) and the message's properties (MS-OXMSG) - into the mail
import, threads and attachments included, alone or in a .zip with .eml
files; a board exports as .eml files Outlook opens. The reader was checked
against .msg files saved by Outlook.
Teams and OneNote: fetched from Microsoft Graph with the member's token
(chats and channels; notebooks with their pages' HTML, to-do boxes as a
checklist), or read from a file - Teams' personal export .tar, Graph chat
messages, and the files WeKan exports: Teams chats as Graph chat messages,
OneNote pages as Graph's create-page XHTML in a .zip.
All six are under the Microsoft heading of Import and Export, with tests,
negative tests, live tests for the two Graph imports, documentation and the
import instruction in every language. Low confidence translations include
ace, ak, ay, bm, bo, bua, chr, csb, cv, dz, ee, ff, fj, gn, gv, haw, ig, iu,
kl, ks, kok, kw, ht, hsb, fur, fo, ga, gd, ku, lld, nah, nap, rup, sah, sc,
scn, se, nd, nso, ss, om, rn, rw, sm, sn, qu, pap, lg, mg, mi, ny, so, mai,
sd, ps, or_IN, my, si, rm, la, lb, tig, tlh, uz-AR, ve, ve-PP, ve-CC, vo, wa,
wal, wo, zgh, to, tpi, wa-RR and ts.
Thanks to xet7 !
Rocket.Chat: "Download my data" as JSON (channels.json and a message file
per room, with its assets), one room's .json, and the .zip Rocket.Chat's
CSV importer reads are imported for Board View / Chat - a room is a card,
its messages the comments. A board exports as that CSV importer .zip:
users.csv, channels.csv and a messages.csv per card.
Fizzy (37signals): its account export (data/<table>/<id>.json and
storage/) and personal data export (<number>.json per card) are imported -
boards become swimlanes, columns lists between Maybe?, Not now and Done,
with tags, assignees, steps, comments, golden and files. A board exports as
the account export Fizzy's account import reads, every row with every
column its import requires, ids as base36 UUIDv7.
Both formats are read and written from their projects' source code, with
tests, documentation and the import instruction in every language. Low
confidence translations include chr, ay, bm, bua, bo, cv, csb, ak, bi, ace,
ba, gn, gv, iu, kl, ig, kok, nah, qu, kw, lld, nap, rm, om, ks, tlh, tig,
rup, sah, se, ss, sm, to, tpi, dz, ee, ff, fj, fo, uz-AR, ve, ve-PP, vo,
wal, wa, wo, zgh, ve-CC, wa-RR, wuu-Hans, yi, xh and yo.
Thanks to xet7 !
Telegram Desktop writes result.json with photos/ and files/ beside it, and
DiscordChatExporter with --media a <name>.json_Files folder; the imports
read only the JSON and counted every file. Both now also take the export
folder zipped (the Import page, the many-files import and api.py): the
JSON is read as before, and every file its messages name by a local path
is read under the same per-file and whole-archive inflate limits as the
Slack zip (server/lib/chatArchives.js), then attached to the chat's card
through the generic importer's embedded-file path - so the after-upload
type and size checks of every upload apply. A file the folder does not
carry ("File not included", a Discord link) is still counted; a file no
message names is not read.
tests/chatExportFormats.test.cjs: both zips, only the named files read, the
left-out file counted, the JSON alone as before, and the wiring.
tests/importSources.test.cjs: the zip sources, and api.py agreeing.
Thanks to xet7 !
Taiga's project was built whole, the last export that was. Every page now
makes the project over the whole board from the light first pass - every
ref, kanban and task order, status, point and attribute definition the
whole board's - and keeps only its own cards' epics, stories, tasks and
issues, their descriptions and histories (the text the first pass does not
read) from the cards themselves. The tasks made of story checklist items,
which have no card of their own, are on the last page, after the other
tasks, as in the whole project; whether the project has epics and issues
is said from the whole board. The paged JSON writer writes the four arrays
a pass each.
TODO.md's "Import and Export of large files" is done: every export is
written a page at a time. tests/exportPaging.test.cjs checks every page
size against the whole project; the round trip of every export (Taiga
among them) and the import/export audit (173) pass.
Thanks to xet7 !
Its backup was built whole. Every page now makes the backup over the
whole board from the light first pass - projects, tags, panels, task ids,
sub-task lists - and keeps only its own cards' task entities, their notes
(the description and checklists, the one part the first pass does not
read) from the cards themselves. The paged JSON writer streams an
object's entries as well as an array's elements, each entry passing the
export boundary with its key, and writes data.task.entities a page at a
time.
tests/exportPaging.test.cjs checks every page size: the pages' entities,
in order, are the whole backup's, and the rest is the same. The round
trip of every export (Super Productivity among them) and the
import/export audit (173) pass.
Thanks to xet7 !
Vikunja's export was built whole: a .zip of data.json made in memory. Its
formatter now plans the whole board once from the light first pass - each
card's task id, project, index and position, its comments' ids, the users
and labels in the order the cards first name them, the parent links - and
writes only its own page's tasks, with the same projects, views and
buckets on every page. The .zip is written by streamVikunjaZip: data.json
through streamJsonArrays, each project's tasks, task buckets and positions
a pass over the pages, the tasks as the archive writes them
(vikunjaArchiveData), the HTML made from text the export boundary has
checked, as the whole export's is; then filters.json and VERSION.
A task's dependencies are its "blocked" relations, which the Vikunja
import reads as is-blocked-by. The round trip of every export now
includes Vikunja, through its .zip: it keeps the description, checklist,
comment, dependency, label and due date. tests/exportPaging.test.cjs
checks every page size against the whole document; the import/export
audit (173) passes.
Thanks to xet7 !
Board Settings / Export / Trello .zip Attachments (export/trellozip)
downloads trello.zip: the Trello document as board.json, written a page
of cards at a time by the multi-array writer, and each exported card's
attachments as the files they are, attachments/<id>_<name>, piped from
the file store as WeKan's own .zip export does
(server/lib/renderExternalExport.js streamTrelloZip). board.json names
each attachment by that file name (trelloZipFileName), which the Trello
.zip import matches, so the files come back with their cards. It is not an
"Export all boards" format, which makes each board's file whole.
The round trip spec imports a Trello .zip with a file, exports it as a
Trello .zip, finds the file's exact bytes in it, imports that back and
downloads the same bytes from the imported board. The Trello docs page
describes it.
Thanks to xet7 !
The first tool of the import/export coverage review (TODO.md). The Trello
export wrote no card's dateLastActivity or pos, which WeKan's own Trello
import checks every card for, so no Trello export imported back at all;
and its checklists and comment actions were empty arrays.
Every card now has an ISO date of its last activity and its position (over
the whole board, whichever page it is on); the card's checklists are
Trello checklists with their items' state, its comments commentCard
actions with their dates, and the board's people - owners, assignees,
comment authors, from the whole board - Trello members, each card naming
its own in idMembers. A label with no name is an empty name.
The paged JSON writer writes a document with several card arrays, each by
a pass of its own over the pages (streamJsonArrays); Trello's cards,
checklists and actions are three.
tests/trelloExportImportable.test.cjs holds the export to what the
import's checks require; tests/playwright/specs/trello-export-round-trip.e2e.js
exports a board as Trello and imports it back with its checklist, comment
and title. The import/export audit (173) and the admin-only custom field
specs (12) pass.
Thanks to xet7 !