Compare commits

...
5 Commits
Author SHA1 Message Date
github-actions[bot] e26c948455 Bump versions for v13.43 2026-12-03 22:13:11 +00:00
Lauri Ojansivu 28768b0079 Prepare v13.43 release 2026-12-04 00:11:47 +02:00
Lauri Ojansivu 9bf4f1ad48 Merge remote-tracking branch 'origin/main' 2026-12-04 00:11:19 +02:00
Lauri Ojansivu 1e7fc04784 Document custom attachment extension preservation 2026-12-04 00:07:59 +02:00
Lauri Ojansivu 4edacc0199 Preserve attachment extensions for generic file types
Thanks to SylcoDev and xet7 !

Fixes #6990,
2026-12-04 00:07:43 +02:00
15 changed files with 120 additions and 39 deletions

No files matched your search

+22
View File
@@ -97,6 +97,28 @@ Which databases WeKan supports
</details>
# v13.43 2026-12-04 WeKan ® release
**In short:** CAD and CNC attachments keep their original extensions when file
detection identifies only plain text, XML or ZIP. Files such as `flange.nc` and
`flange.tap` keep distinct names.
This release fixes the following bugs:
<details>
<summary><a href="https://github.com/wekan/wekan/commit/4edacc01998b55b8f62ba05a0773f49a187214a7">Preserve custom attachment extensions</a>. Thanks to SylcoDev and xet7.</summary>
Generic file detection preserves custom extensions such as `.stl`, `.SPF`,
`.sym` and `.zzx`. WeKan still corrects misleading executable or script
extensions and mismatches with specifically identified formats, such as a PDF
named with a `.png` suffix.
[Issue #6990](https://github.com/wekan/wekan/issues/6990).
</details>
Thanks to above GitHub users for their contributions and translators for their translations.
# v13.42 2026-12-03 WeKan ® release
**In short:** The bulk card API now skips cards with invalid parent IDs and
+8 -12
View File
@@ -5,6 +5,14 @@ each one changed and the project status are in
Written by `node releases/changelog-short.mjs` from CHANGELOG-big.md:
make changes there.
# v13.43 2026-12-04 WeKan ® release
CAD and CNC attachments keep their original extensions when file
detection identifies only plain text, XML or ZIP. Files such as `flange.nc` and
`flange.tap` keep distinct names.
[All changes in v13.43](CHANGELOG-big.md#v1343-2026-12-04-wekan--release)
# v13.42 2026-12-03 WeKan ® release
The bulk card API now skips cards with invalid parent IDs and
@@ -49,15 +57,3 @@ request while checking each card’s revision. Administrators can set a default
board template per feature profile.
[All changes in v13.39](CHANGELOG-big.md#v1339-2026-12-02-wekan--release)
# v13.38 2026-12-02 WeKan ® release
**Jira**, **OpenProject**, **Redmine**, **Asana**, **ClickUp**
and **Linear** imports and List Sync carry more planning details, comments,
files and dependencies. **REST** supports board-wide card sync and threaded
comments, and hides deleted lists and cards. **History** shows archive and
restore statuses, **Docker** checks application and database readiness, and
**LDAP** supports ordered fallback servers. **Workload** uses each
assignee’s remaining effort. **Auto-archive** keeps recently active subtasks.
[All changes in v13.38](CHANGELOG-big.md#v1338-2026-12-02-wekan--release)
+1 -1
View File
@@ -62,7 +62,7 @@ FROM --platform=$BUILDPLATFORM debian:trixie AS bundle
ARG TARGETARCH
ARG TARGETVARIANT
ARG VERSION=13.42
ARG VERSION=13.43
ARG DEBIAN_FRONTEND=noninteractive
COPY --chmod=755 releases/check-telemetry.py /tmp/check-telemetry.py
+1 -1
View File
@@ -1,5 +1,5 @@
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
appVersion: "v13.42.0"
appVersion: "v13.43.0"
files:
userUploads:
- README.md
@@ -10,7 +10,7 @@ This is without container (without Docker or Snap).
Right click and download files 1-4:
1. [wekan-13.42-win64.zip](https://github.com/wekan/wekan/releases/download/v13.42/wekan-13.42-win64.zip) or newest available at https://github.com/wekan/wekan/releases/
1. [wekan-13.43-win64.zip](https://github.com/wekan/wekan/releases/download/v13.43/wekan-13.43-win64.zip) or newest available at https://github.com/wekan/wekan/releases/
2. [node.exe](https://nodejs.org/dist/latest-v26.x/win-x64/node.exe)
@@ -22,7 +22,7 @@ Right click and download files 1-4:
6. Double click `mongodb-windows-x86_64-7.0.34-signed.msi` . In installer, uncheck downloading MongoDB compass.
7. Unzip `wekan-13.42-win64.zip` , inside it is directory `bundle`, to it copy other files:
7. Unzip `wekan-13.43-win64.zip` , inside it is directory `bundle`, to it copy other files:
```
bundle (directory)
+21 -6
View File
@@ -61,8 +61,19 @@ const FORMAT_EXTENSIONS = {
'model/step': ['.step', '.stp', '.p21'],
'image/vnd.dxf': ['.dxf'],
'application/x-dxf': ['.dxf'],
'application/x-zip-compressed': ['.zip'],
};
const GENERIC_TEXT_EXTENSIONS = new Set(['.eml', '.step', '.stp', '.p21', '.x_t', '.dxf', '.igs', '.iges']);
const GENERIC_CONTAINER_MIMES = new Set([
'text/plain', 'text/xml', 'application/xml', 'application/zip',
'application/x-zip-compressed',
]);
const ACTIVE_EXTENSIONS = new Set([
'.html', '.htm', '.xhtml', '.shtml', '.svg', '.svgz', '.hta',
'.js', '.jse', '.mjs', '.cjs', '.vbs', '.vbe', '.wsf', '.wsh',
'.exe', '.com', '.scr', '.msi', '.bat', '.cmd', '.ps1', '.sh',
'.php', '.phtml', '.asp', '.aspx', '.jsp', '.lnk', '.url', '.desktop',
]);
const KNOWN_FORMAT_EXTENSIONS = new Set([...Object.values(FORMAT_EXTENSIONS).flat(), '.x_t']);
// The correct extension (with leading dot) for a MIME type, or '' if unknown.
function extensionForMime(mimeType) {
@@ -101,8 +112,8 @@ function sanitizeUploadFileName(name, mimeType) {
// whitespace. This is the same normalization used to DISPLAY names, so the
// stored name matches what users see.
let n = cleanFileName(name);
let wantExt = extensionForMime(mimeType);
const wantMime = String(mimeType || '').toLowerCase();
const wantMime = String(mimeType || '').toLowerCase().trim();
let wantExt = extensionForMime(wantMime);
const originalExt = /(?:^|[^.])(\.[^.]+)$/.exec(n);
// Online Gantt stores JSON under its application-owned .gantt extension.
// A generic JSON detector describes the serialization, not the program that
@@ -119,19 +130,23 @@ function sanitizeUploadFileName(name, mimeType) {
if (wantExt) {
const dot = n.lastIndexOf('.');
const curExt = dot > 0 ? n.slice(dot).toLowerCase() : '';
// Plain text, XML and ZIP describe the representation. A custom suffix
// can still identify the application that opens the file.
if (curExt && GENERIC_CONTAINER_MIMES.has(wantMime)) {
return ACTIVE_EXTENSIONS.has(curExt) ? n.slice(0, dot) + wantExt : n;
}
const curMime = mime.lookup(n); // false when there is no recognized extension
// JFIF is JPEG content, but many desktop file associations (and the
// mime-types database used here) do not recognize .jfif. Use the portable
// canonical extension instead of producing "photo.jfif.jpeg".
if (curExt === wantExt || FORMAT_EXTENSIONS[wantMime]?.includes(curExt) ||
(wantMime === 'text/plain' && GENERIC_TEXT_EXTENSIONS.has(curExt))) {
if (curExt === wantExt || FORMAT_EXTENSIONS[wantMime]?.includes(curExt)) {
// Custom/application-owned extensions may not exist in mime-types, but a
// content-aware override above has already established the right suffix.
} else if (wantMime === 'image/jpeg' && curExt === '.jfif') {
n = n.slice(0, dot) + wantExt;
} else if (curMime === wantMime) {
// extension already matches the type (handles .jpg vs .jpeg) — keep it
} else if (curMime || GENERIC_TEXT_EXTENSIONS.has(curExt)) {
} else if (curMime || KNOWN_FORMAT_EXTENSIONS.has(curExt)) {
// recognized but WRONG extension -> replace it
n = n.slice(0, n.lastIndexOf('.')) + wantExt;
} else {
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "wekan",
"version": "v13.42.0",
"version": "v13.43.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "wekan",
"version": "v13.42.0",
"version": "v13.43.0",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "wekan",
"version": "v13.42.0",
"version": "v13.43.0",
"description": "Open-Source kanban",
"private": true,
"repository": {
+3 -3
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf8" />
<title>WeKan REST API v13.42</title>
<title>WeKan REST API v13.43</title>
<!-- needed for adaptive design -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@@ -498,11 +498,11 @@ data-styled.g662[id="sc-hFhjrW"]{content:"gelAUe,"}/*!sc*/
<body>
<div id="redoc"><div class="sc-dPmKWx eXwHqO redoc light" style="--navbar-height:0px;--navbar-stack-height:0px"><div hidden=""><script>try{var r=document.querySelectorAll(".redoc");r=r[r.length-1];var h=document.documentElement,p=h.classList,a=[h.getAttribute("data-bs-theme"),h.getAttribute("data-theme")];var m=p.contains("dark")||a.indexOf("dark")>-1?"dark":p.contains("light")||a.indexOf("light")>-1?"light":localStorage.getItem("redoc.colorMode");if(m!=="light"&&m!=="dark")m=matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";r.classList.remove("light","dark");r.classList.add(m)}catch(e){}</script></div><div class="sc-hHttOM iMkNMJ menu-content"><div class="sc-jokKPH fejYuX"><div data-testid="search-trigger" class="sc-cRcubC kWLWEm"><div class="sc-gzhUzI ejGLvh"><svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" data-component-name="icons/SearchIcon/SearchIcon" class="sc-bUAICN hRyRtS"><path d="M14.5 13.7931L10.724 10.017C11.6313 8.9277 12.0838 7.5305 11.9872 6.11608C11.8907 4.70165 11.2525 3.37891 10.2055 2.423C9.15857 1.4671 7.78336 0.951637 6.36602 0.983845C4.94867 1.01605 3.5983 1.59345 2.59582 2.59593C1.59335 3.5984 1.01595 4.94877 0.983738 6.36612C0.95153 7.78347 1.46699 9.15867 2.4229 10.2057C3.3788 11.2526 4.70155 11.8908 6.11597 11.9873C7.53039 12.0839 8.92759 11.6314 10.0169 10.7241L13.793 14.5001L14.5 13.7931ZM2.00001 6.50012C2.00001 5.6101 2.26393 4.74007 2.7584 4.00005C3.25286 3.26003 3.95567 2.68325 4.77794 2.34266C5.6002 2.00207 6.505 1.91295 7.37792 2.08658C8.25083 2.26022 9.05266 2.6888 9.68199 3.31814C10.3113 3.94747 10.7399 4.7493 10.9135 5.62221C11.0872 6.49513 10.9981 7.39993 10.6575 8.22219C10.3169 9.04446 9.7401 9.74726 9.00008 10.2417C8.26006 10.7362 7.39003 11.0001 6.50001 11.0001C5.30694 10.9988 4.16312 10.5243 3.31949 9.68064C2.47587 8.83701 2.00133 7.69319 2.00001 6.50012Z"></path></svg><span>Loading...</span></div></div></div><div class="sc-gpABuY dGxToZ"><ul data-component-name="Menu/Menu" class="sc-llaQDn gIDdEs"><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-default" role="listitem"><a class="sc-bcyEQV eSomNa" href="/" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="true" class="sc-iMaYoB kYPxgQ"><div class="sc-bmzNle dAAsRD"><span class="sc-amuuf fiYZDR"><span data-text="WeKan REST API" class="sc-cKRyZE edpvXG">WeKan REST API</span></span></div></li></a></div><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-default" role="listitem"><a class="sc-bcyEQV eSomNa" href="/section/production-security-concerns" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="false" class="sc-iMaYoB dpiTia"><div class="sc-bmzNle dAAsRD"><span class="sc-amuuf fiYZDR"><span data-text="Production Security Concerns" class="sc-cKRyZE cXpWdQ">Production Security Concerns</span></span></div></li></a></div><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-group" role="listitem"><a class="sc-bcyEQV eSomNa" href="/login" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="false" class="sc-iMaYoB buxibf"><div class="sc-hgJgCR fyVeNP"><svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" color="--tree-content-color-default" data-component-name="icons/ChevronRightIcon/ChevronRightIcon" class="sc-hiunUN kPiUFd"><path d="M11 8L6.00002 13L5.30002 12.3L9.60002 8L5.30002 3.7L6.00002 3L11 8Z"></path></svg></div><div class="sc-bmzNle dAAsRD"><span class="sc-amuuf fiYZDR"><span data-text="Login" class="sc-cKRyZE cXpWdQ">Login</span></span></div></li></a><div style="display:none;height:0px;overflow:hidden" class="sc-boLXHU DecdG"></div></div><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-group" role="listitem"><a class="sc-bcyEQV eSomNa" href="/attachmentstoragesettings" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="false" class="sc-iMaYoB buxibf"><div class="sc-hgJgCR fyVeNP"><svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" color="--tree-content-color-default" data-component-name="icons/ChevronRightIcon/ChevronRightIcon" class="sc-hiunUN kPiUFd"><path d="M11 8L6.00002 13L5.30002 12.3L9.60002 8L5.30002 3.7L6.00002 3L11 8Z"></path></svg></div><div class="sc-bmzNle dAAsRD"><span class="sc-amuuf fiYZDR"><span data-text="AttachmentStorageSettings" class="sc-cKRyZE cXpWdQ">AttachmentStorageSettings</span></span></div></li></a><div style="display:none;height:0px;overflow:hidden" class="sc-boLXHU DecdG"></div></div><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-group" role="listitem"><a class="sc-bcyEQV eSomNa" href="/settings" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="false" class="sc-iMaYoB buxibf"><div class="sc-hgJgCR fyVeNP"><svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" color="--tree-content-color-Line truncated
<div id="redoc"><div class="sc-dPmKWx eXwHqO redoc light" style="--navbar-height:0px;--navbar-stack-height:0px"><div hidden=""><script>try{var r=document.querySelectorAll(".redoc");r=r[r.length-1];var h=document.documentElement,p=h.classList,a=[h.getAttribute("data-bs-theme"),h.getAttribute("data-theme")];var m=p.contains("dark")||a.indexOf("dark")>-1?"dark":p.contains("light")||a.indexOf("light")>-1?"light":localStorage.getItem("redoc.colorMode");if(m!=="light"&&m!=="dark")m=matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";r.classList.remove("light","dark");r.classList.add(m)}catch(e){}</script></div><div class="sc-hHttOM iMkNMJ menu-content"><div class="sc-jokKPH fejYuX"><div data-testid="search-trigger" class="sc-cRcubC kWLWEm"><div class="sc-gzhUzI ejGLvh"><svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" data-component-name="icons/SearchIcon/SearchIcon" class="sc-bUAICN hRyRtS"><path d="M14.5 13.7931L10.724 10.017C11.6313 8.9277 12.0838 7.5305 11.9872 6.11608C11.8907 4.70165 11.2525 3.37891 10.2055 2.423C9.15857 1.4671 7.78336 0.951637 6.36602 0.983845C4.94867 1.01605 3.5983 1.59345 2.59582 2.59593C1.59335 3.5984 1.01595 4.94877 0.983738 6.36612C0.95153 7.78347 1.46699 9.15867 2.4229 10.2057C3.3788 11.2526 4.70155 11.8908 6.11597 11.9873C7.53039 12.0839 8.92759 11.6314 10.0169 10.7241L13.793 14.5001L14.5 13.7931ZM2.00001 6.50012C2.00001 5.6101 2.26393 4.74007 2.7584 4.00005C3.25286 3.26003 3.95567 2.68325 4.77794 2.34266C5.6002 2.00207 6.505 1.91295 7.37792 2.08658C8.25083 2.26022 9.05266 2.6888 9.68199 3.31814C10.3113 3.94747 10.7399 4.7493 10.9135 5.62221C11.0872 6.49513 10.9981 7.39993 10.6575 8.22219C10.3169 9.04446 9.7401 9.74726 9.00008 10.2417C8.26006 10.7362 7.39003 11.0001 6.50001 11.0001C5.30694 10.9988 4.16312 10.5243 3.31949 9.68064C2.47587 8.83701 2.00133 7.69319 2.00001 6.50012Z"></path></svg><span>Loading...</span></div></div></div><div class="sc-gpABuY dGxToZ"><ul data-component-name="Menu/Menu" class="sc-llaQDn gIDdEs"><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-default" role="listitem"><a class="sc-bcyEQV eSomNa" href="/" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="true" class="sc-iMaYoB kYPxgQ"><div class="sc-bmzNle dAAsRD"><span class="sc-amuuf fiYZDR"><span data-text="WeKan REST API" class="sc-cKRyZE edpvXG">WeKan REST API</span></span></div></li></a></div><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-default" role="listitem"><a class="sc-bcyEQV eSomNa" href="/section/production-security-concerns" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="false" class="sc-iMaYoB dpiTia"><div class="sc-bmzNle dAAsRD"><span class="sc-amuuf fiYZDR"><span data-text="Production Security Concerns" class="sc-cKRyZE cXpWdQ">Production Security Concerns</span></span></div></li></a></div><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-group" role="listitem"><a class="sc-bcyEQV eSomNa" href="/login" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="false" class="sc-iMaYoB buxibf"><div class="sc-hgJgCR fyVeNP"><svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" color="--tree-content-color-default" data-component-name="icons/ChevronRightIcon/ChevronRightIcon" class="sc-hiunUN kPiUFd"><path d="M11 8L6.00002 13L5.30002 12.3L9.60002 8L5.30002 3.7L6.00002 3L11 8Z"></path></svg></div><div class="sc-bmzNle dAAsRD"><span class="sc-amuuf fiYZDR"><span data-text="Login" class="sc-cKRyZE cXpWdQ">Login</span></span></div></li></a><div style="display:none;height:0px;overflow:hidden" class="sc-boLXHU DecdG"></div></div><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-group" role="listitem"><a class="sc-bcyEQV eSomNa" href="/attachmentstoragesettings" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="false" class="sc-iMaYoB buxibf"><div class="sc-hgJgCR fyVeNP"><svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" color="--tree-content-color-default" data-component-name="icons/ChevronRightIcon/ChevronRightIcon" class="sc-hiunUN kPiUFd"><path d="M11 8L6.00002 13L5.30002 12.3L9.60002 8L5.30002 3.7L6.00002 3L11 8Z"></path></svg></div><div class="sc-bmzNle dAAsRD"><span class="sc-amuuf fiYZDR"><span data-text="AttachmentStorageSettings" class="sc-cKRyZE cXpWdQ">AttachmentStorageSettings</span></span></div></li></a><div style="display:none;height:0px;overflow:hidden" class="sc-boLXHU DecdG"></div></div><div data-component-name="Menu/MenuItem" class="sc-epufQc jNyRbY menu-item-type-group" role="listitem"><a class="sc-bcyEQV eSomNa" href="/settings" data-discover="true"><li role="none" data-testid="menu-item-label" data-active="false" class="sc-iMaYoB buxibf"><div class="sc-hgJgCR fyVeNP"><svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" color="--tree-content-color-Line truncated
<script type="module">
import { hydrate } from "https://cdn.redocly.com/redoc/v3.2.0/bundles/redoc.standalone.js";
const __redoc_definition = {"openapi":"3.2.0","info":{"title":"WeKan REST API","version":"v13.42","description":"The REST API allows you to control and extend WeKan with ease.\n\nIf you are an end-user and not a dev or a tester, [create an issue](https://github.com/wekan/wekan/issues/new) to request new APIs.\n\n> All API calls in the documentation are made using `curl`. However, you are free to use Java / Python / PHP / Golang / Ruby / Swift / Objective-C / Rust / Scala / C# or any other programming languages.\n\n# Production Security Concerns\nWhen calling a production WeKan server, ensure it is running via HTTPS and has a valid SSL Certificate. The login method requires you to post your username and password in plaintext, which is why we highly suggest only calling the REST login api over HTTPS. Also, few things to note:\n\n* Only call via HTTPS\n* Implement a timed authorization token expiration strategy\n* Ensure the calling user only has permissions for what they are calling and no more\n"},"paths":{"/users/login":{"post":{"operationId":"login","summary":"Login with REST API","tags":["Login"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["username","password"],"properties":{"username":{"description":"Your username\n","type":"string"},"password":{"description":"Your password\n","type":"string","format":"password"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["username","password"],"properties":{"username":{"description":"Your username\n","type":"string"},"password":{"description":"Your password\n","type":"string","format":"password"}}}}},"description":"Login credentials","required":true},"responses":{"200":{"description":"Successful authentication","content":{"*/*":{"schema":{"type":"object","required":["id","token","tokenExpires"],"properties":{"id":{"type":"string","description":"User ID"},"token":{"type":"string","description":"Authentication token\n"},"tokenExpires":{"type":"string","format":"date-time","description":"Token expiration date\n"}}}}}},"400":{"description":"Error in authentication\n","content":{"*/*":{"schema":{"type":"object","properties":{"error":{"type":"string"},"reason":{"type":"string"}}}}}},"default":{"description":"Error in authentication\n"}}}},"/users/register":{"post":{"operationId":"register","summary":"Register with REST API","description":"Notes:\n - You will need to provide the token for any of the authenticated methods.\n","tags":["Login"],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"username":{"description":"Your username\n","type":"string"},"password":{"description":"Your password\n","type":"string","format":"password"},"email":{"description":"Your email\n","type":"string"}},"required":["username","password","email"]}}},"required":true},"responses":{"200":{"description":"Successful registration","content":{"*/*":{"schema":{"items":{"properties":{"id":{"type":"string"},"token":{"type":"string"},"tokenExpires":{"type":"string"}}}}}}},"400":{"description":"Error in registration\n","content":{"*/*":{"schema":{"items":{"properties":{"error":{"type":"number"},"reason":{"type":"string"}}}}}}},"default":{"description":"Error in registration\n"}}}},"/api/admin/attachment-settings":{"get":{"operationId":"get_attachment_settings","summary":"Get the attachment storage / upload-block settings (GlobalAdmin)","description":"Only the global admin can call this. Returns the Admin Panel >\n Attachments settings document, including `limitSettings.attachmentsUploadBlocked`\n and `limitSettings.avatarsUploadBlocked` plus the size limits. Cloud-storage\n secret keys (S3 secretAccessKey, Azure accountKey/connectionString, GCS\n credentials) are masked and never returned; a boolean `\u003cfield>Set` marker\n shows whether a value exists.\n","tags":["AttachmentStorageSettings","Settings"],"security":[{"UserSecurity":[]}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"type":"Object"}}}}}},"put":{"operationId":"update_attachment_settings","summary":"Update the attachment storage / upload-block settings (GlobalAdmin)","description":"Only the global admin can call this. The request body is a\n partial settings object (for example\n `{\"limitSettings\": {\"avatarsUploadBlocked\": true}}`). It is applied through\n the same update path as the `updateAttachmentStorageSettings` Meteor method,\n so validation and `$set` semantics are identical: cloud-storage secrets left\n blank are preserved. The masked, updated settings document is returned.\n","tags":["AttachmentStorageSettings","Settings"],"security":[{"UserSecurity":[]}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"type":"Object"}}}}}}},"/api/admin/domains":{"get":{"operationId":"get_admin_domains","summary":"List email domains with their user counts (GlobalAdmin)","description":"Only the global admin can call this. CountsLine truncated
const __redoc_definition = {"openapi":"3.2.0","info":{"title":"WeKan REST API","version":"v13.43","description":"The REST API allows you to control and extend WeKan with ease.\n\nIf you are an end-user and not a dev or a tester, [create an issue](https://github.com/wekan/wekan/issues/new) to request new APIs.\n\n> All API calls in the documentation are made using `curl`. However, you are free to use Java / Python / PHP / Golang / Ruby / Swift / Objective-C / Rust / Scala / C# or any other programming languages.\n\n# Production Security Concerns\nWhen calling a production WeKan server, ensure it is running via HTTPS and has a valid SSL Certificate. The login method requires you to post your username and password in plaintext, which is why we highly suggest only calling the REST login api over HTTPS. Also, few things to note:\n\n* Only call via HTTPS\n* Implement a timed authorization token expiration strategy\n* Ensure the calling user only has permissions for what they are calling and no more\n"},"paths":{"/users/login":{"post":{"operationId":"login","summary":"Login with REST API","tags":["Login"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["username","password"],"properties":{"username":{"description":"Your username\n","type":"string"},"password":{"description":"Your password\n","type":"string","format":"password"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["username","password"],"properties":{"username":{"description":"Your username\n","type":"string"},"password":{"description":"Your password\n","type":"string","format":"password"}}}}},"description":"Login credentials","required":true},"responses":{"200":{"description":"Successful authentication","content":{"*/*":{"schema":{"type":"object","required":["id","token","tokenExpires"],"properties":{"id":{"type":"string","description":"User ID"},"token":{"type":"string","description":"Authentication token\n"},"tokenExpires":{"type":"string","format":"date-time","description":"Token expiration date\n"}}}}}},"400":{"description":"Error in authentication\n","content":{"*/*":{"schema":{"type":"object","properties":{"error":{"type":"string"},"reason":{"type":"string"}}}}}},"default":{"description":"Error in authentication\n"}}}},"/users/register":{"post":{"operationId":"register","summary":"Register with REST API","description":"Notes:\n - You will need to provide the token for any of the authenticated methods.\n","tags":["Login"],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"username":{"description":"Your username\n","type":"string"},"password":{"description":"Your password\n","type":"string","format":"password"},"email":{"description":"Your email\n","type":"string"}},"required":["username","password","email"]}}},"required":true},"responses":{"200":{"description":"Successful registration","content":{"*/*":{"schema":{"items":{"properties":{"id":{"type":"string"},"token":{"type":"string"},"tokenExpires":{"type":"string"}}}}}}},"400":{"description":"Error in registration\n","content":{"*/*":{"schema":{"items":{"properties":{"error":{"type":"number"},"reason":{"type":"string"}}}}}}},"default":{"description":"Error in registration\n"}}}},"/api/admin/attachment-settings":{"get":{"operationId":"get_attachment_settings","summary":"Get the attachment storage / upload-block settings (GlobalAdmin)","description":"Only the global admin can call this. Returns the Admin Panel >\n Attachments settings document, including `limitSettings.attachmentsUploadBlocked`\n and `limitSettings.avatarsUploadBlocked` plus the size limits. Cloud-storage\n secret keys (S3 secretAccessKey, Azure accountKey/connectionString, GCS\n credentials) are masked and never returned; a boolean `\u003cfield>Set` marker\n shows whether a value exists.\n","tags":["AttachmentStorageSettings","Settings"],"security":[{"UserSecurity":[]}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"type":"Object"}}}}}},"put":{"operationId":"update_attachment_settings","summary":"Update the attachment storage / upload-block settings (GlobalAdmin)","description":"Only the global admin can call this. The request body is a\n partial settings object (for example\n `{\"limitSettings\": {\"avatarsUploadBlocked\": true}}`). It is applied through\n the same update path as the `updateAttachmentStorageSettings` Meteor method,\n so validation and `$set` semantics are identical: cloud-storage secrets left\n blank are preserved. The masked, updated settings document is returned.\n","tags":["AttachmentStorageSettings","Settings"],"security":[{"UserSecurity":[]}],"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"type":"Object"}}}}}}},"/api/admin/domains":{"get":{"operationId":"get_admin_domains","summary":"List email domains with their user counts (GlobalAdmin)","description":"Only the global admin can call this. CountsLine truncated
const __redoc_options = {"skipBundle":true,"disableTelemetry":false};
hydrate(__redoc_definition, __redoc_options, document.getElementById('redoc'));
+1 -1
View File
@@ -1,7 +1,7 @@
swagger: '2.0'
info:
title: WeKan REST API
version: v13.42
version: v13.43
description: |
The REST API allows you to control and extend WeKan with ease.
+2 -2
View File
@@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
appTitle = (defaultText = "Wekan"),
# The name of the app as it is displayed to the user.
appVersion = 1342,
appVersion = 1343,
# Increment this for every release.
appMarketingVersion = (defaultText = "13.42~2026-12-03"),
appMarketingVersion = (defaultText = "13.43~2026-12-03"),
# Human-readable presentation of the app version.
minUpgradableAppVersion = 0,
+4 -4
View File
@@ -19,7 +19,7 @@
# base: core24 (not core26) · no build-base: devel · grade: stable
# ─────────────────────────────────────────────────────────────────────────────
name: wekan
version: '13.42'
version: '13.43'
base: core24
confinement: strict
grade: stable
@@ -703,18 +703,18 @@ parts:
armhf) WEKAN_ARCH="armhf" ;;
*) echo "Unsupported architecture: ${CRAFT_ARCH_BUILD_FOR}"; exit 1 ;;
esac
WEKAN_ZIP="wekan-13.42-${WEKAN_ARCH}.zip"
WEKAN_ZIP="wekan-13.43-${WEKAN_ARCH}.zip"
echo "Cleaning environment first"
rm -rf .build
mkdir .build
cd .build
#wget https://github.com/wekan/wekan/releases/download/v13.42/wekan-13.42-amd64.zip
#wget https://github.com/wekan/wekan/releases/download/v13.43/wekan-13.43-amd64.zip
# Retry: a release asset can 404 for a short while right after it is
# uploaded (CDN/propagation lag), and a plain wget treated that as
# fatal. --retry-on-http-error covers the 404/5xx window; a genuinely
# missing bundle still fails after the tries are spent.
wget --tries=20 --waitretry=20 --retry-on-http-error=404,403,500,502,503 \
"https://github.com/wekan/wekan/releases/download/v13.42/${WEKAN_ZIP}"
"https://github.com/wekan/wekan/releases/download/v13.43/${WEKAN_ZIP}"
unzip "${WEKAN_ZIP}"
python3 ../releases/check-telemetry.py --bundle bundle
rm "${WEKAN_ZIP}"
+6 -4
View File
@@ -28,7 +28,7 @@ Module._resolveFilename = function(request, ...rest) {
const { HEADER_BYTES, ensureTempDir, streamHeaderToTemp, detectedFileMime } =
require('../models/lib/fileTypeCorrection.js');
const { numberedName } = require('../models/lib/uploadFileName.js');
const { numberedName, sanitizeUploadFileName } = require('../models/lib/uploadFileName.js');
let passed = 0;
async function check(name, fn) { await fn(); passed += 1; console.log(' ok -', name); }
@@ -104,14 +104,16 @@ async function check(name, fn) { await fn(); passed += 1; console.log(' ok -',
const fixtures = [
['mail', 'X-Account-Key: account1\r\nX-UIDL: value\r\nX-Mozilla-Status: 0001\r\nFrom: sender@example.org\r\nDate: Tue, 1 Dec 2026 10:50:00 +0000\r\nSubject: Parts\r\n\r\n<html>Order</html>', 'message/rfc822'],
['step', 'ISO-10303-21;\nHEADER;\nENDSEC;\nEND-ISO-10303-21;\n', 'model/step'],
['dxf', ' 0\nSECTION\n 2\nHEADER\n 0\nENDSEC\n 0\nEOF\n', 'image/vnd.dxf'],
['dxf', ' 0\nSECTION\n 2\nHEADER\n 0\nENDSEC\n 0\nEOF\n', 'image/vnd.dxf', 'application/x-dxf'],
];
const base = fs.mkdtempSync(path.join(os.tmpdir(), 'wekan-ft-'));
try {
for (const [file, contents, type] of fixtures) {
for (const [file, contents, ...types] of fixtures) {
const fixturePath = path.join(base, file);
fs.writeFileSync(fixturePath, contents);
assert.strictEqual(await detectedFileMime(fixturePath), type, file);
const detected = await detectedFileMime(fixturePath);
assert.ok(types.includes(detected), `${file}: ${detected}`);
if (file === 'dxf') assert.strictEqual(sanitizeUploadFileName('part.txt', detected), 'part.dxf');
}
} finally {
fs.rmSync(base, { recursive: true, force: true });
@@ -52,6 +52,27 @@ test.describe('Attachments & links', () => {
expect(count).toBeGreaterThanOrEqual(1);
});
test('uploads CNC text files with distinct original extensions', async ({
boardPage,
board,
}) => {
const bp = new BoardPage(boardPage);
const cp = new CardPage(boardPage);
await bp.clickCard(board.listIds[0], 'Alpha Card');
await cp.waitForOpen();
const card = db.findOne('cards', { boardId: board.boardId, title: 'Alpha Card' });
await cp.openAttachmentPanel();
const names = ['flange.nc', 'flange.tap'];
const buffer = Buffer.from('%\nO1234 (FLANGE)\nG21 G90 G17 G40 G80\nM30\n%\n');
await boardPage.locator('.js-pop-over .js-attach-file').setInputFiles(
names.map(name => ({ name, mimeType: 'application/octet-stream', buffer })),
);
await expect.poll(() => db.find('attachments', { 'meta.cardId': card._id })
.filter(attachment => attachment.uploadedAtOstrio)
.map(attachment => attachment.name).sort(), { timeout: 30_000 }).toEqual(names);
});
test('the attachment overlay provides native PDF and isolated Office previews', async ({
boardPage,
board,
+25
View File
@@ -99,6 +99,31 @@ check('preserves IGES extensions when detected as IGES or generic text', () => {
assert.strictEqual(sanitizeUploadFileName('part.txt', 'model/iges'), 'part.igs');
});
check('preserves custom suffixes when detection only identifies text or a container', () => {
for (const ext of ['stl', 'obj', 'nc', 'tap', 'SPF', 'MPF', 'sat', 'vda',
'gcode', 'anc', 'EIA', 'nc1', 'unregistered-format']) {
const name = `flange.${ext}`;
assert.strictEqual(sanitizeUploadFileName(name, 'text/plain'), name);
}
for (const type of ['application/xml', 'text/xml']) {
assert.strictEqual(sanitizeUploadFileName('KUKLOS-A.sym', type), 'KUKLOS-A.sym');
}
assert.strictEqual(sanitizeUploadFileName('job.zzx', 'application/zip'), 'job.zzx');
assert.strictEqual(sanitizeUploadFileName('job.zzx', 'application/octet-stream'), 'job.zzx');
});
check('generic detection still corrects executable and active-content suffixes', () => {
for (const ext of ['HTML', 'htm', 'svg', 'js', 'exe', 'cmd', 'ps1']) {
assert.strictEqual(sanitizeUploadFileName(`part.${ext}`, 'text/plain'), 'part.txt');
}
assert.strictEqual(sanitizeUploadFileName('part.svg', 'application/xml'), 'part.xml');
for (const type of ['application/zip', 'application/x-zip-compressed']) {
assert.strictEqual(sanitizeUploadFileName('part.exe', type), 'part.zip');
}
assert.strictEqual(sanitizeUploadFileName('part.eml', 'text/html'), 'part.html');
assert.strictEqual(sanitizeUploadFileName('part.png', 'application/pdf'), 'part.pdf');
});
check('filenameLooksLikeExploit accepts normal names', () => {
assert.strictEqual(filenameLooksLikeExploit('report.pdf'), false);
assert.strictEqual(filenameLooksLikeExploit('Photo 2024.jpg'), false);