Lauri Ojansivu
5d44e0b98b
Sandstorm: remove the temporary MongoDB-3->FerretDB debugging diagnostics
...
Now that the grain boots, logs in, lists/opens boards, uploads/downloads attachments,
and migrates an old MongoDB 3 grain end to end, drop the two temporary diagnostics:
- models/attachments.js: revert the Meteor-Files debug flag to false (it was enabled on
Sandstorm to trace the upload 'session expired [408]' issue and was spamming the grain
log with the full FilesCollection dump and every find()).
- server/ferretdbQueryDebug.js: remove the mongodb Collection.find wrapper that logged
FerretDB-rejected selectors (used to find the $elemMatch 'unknown operator: userId'
issue, since fixed in wekan/FerretDB).
Thanks to xet7.
2026-07-13 04:11:22 +03:00
Lauri Ojansivu
c671a7fc8c
Sandstorm .spk: temporarily enable Meteor-Files debug logging on Sandstorm
...
Attachment uploads in the grain fail with HTTP 400 "Can't continue upload, session
expired [408]": the upload start succeeds but the per-fileId session is gone by the
time a chunk arrives (both the in-memory _currentUploads entry and the
__pre_attachments pre-collection doc are missing), which points at the polling
observe (FerretDB has no oplog) firing a spurious removed event and aborting the
upload. The Attachments FilesCollection had debug: false, so nothing about the
upload path is logged. Enable Meteor-Files debug on Sandstorm only (gated on
Meteor.settings.public.sandstorm) so the grain debug log shows the start /
createStream / observer / continueUpload steps and pinpoints where the session is
lost. TEMPORARY: revert to debug: false once the upload is fixed.
2026-07-12 22:09:57 +03:00
Lauri Ojansivu and Claude Opus 4.8
f592735080
Fix #5905 : notify card members and record history when an attachment is added
...
Uploading an attachment now creates an addAttachment activity, so card members
and subscribers are notified (consistent with attachment removal) and it appears
in card history. Previously the activity was never created because the store
strategy upload hook was dead code. buildAttachmentAddedActivity unit tested.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 14:40:13 +03:00
Lauri Ojansivu and Copilot Autofix powered by AI
36274f35f4
Potential fix for code scanning alert no. 57: Incomplete multi-character sanitization
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-05-30 22:51:07 +03:00
Lauri Ojansivu
8b6c459453
Revert not working PR 6337 Fix attachments API 500 error and upload crash.
...
Thanks to xet7 !
2026-05-13 18:14:42 +03:00
KhaoulaMaleh
ac2bacf42c
attachement fix
2026-05-10 01:41:03 -11:00
Lauri Ojansivu
03e0cfdc15
Try to fix Docker and Snap.
...
Thanks to xet7 !
2026-04-03 20:35:54 +03:00
Lauri Ojansivu
edc6b18b5f
Fix Bug: WeKan v8.50 WRITABLE_PATH.
...
Thanks to snowsky and xet7 !
Fixes #6242
2026-04-03 20:16:32 +03:00
Harry Adel
63ce45c538
Split shared models from Meteor 3 server runtime
2026-03-24 01:50:39 +02:00
Harry Adel
620e5ce9dc
Meteor 3.4 migration: Convert remaining sync methods to async
...
Convert all remaining Meteor.methods with sync collection calls:
- users.js: deleteWorkspace → async with findOneAsync/updateAsync
- userPositionHistory.js: 3 methods → async with insertAsync/fetchAsync
- attachmentStorageSettings.js: 4 methods → findOneAsync/insertAsync/upsertAsync
- org.js, team.js, translation.js: insert → insertAsync
- boards.js: acceptInvite + collection hooks → updateAsync
- settings.js: sendInvitation → updateAsync/insertAsync
- import.js: importBoard/cloneBoard → async with await creator.create()
- attachments.js: onAfterUpload → async with findOneAsync/updateAsync
2026-03-22 17:50:31 +02:00
Harry Adel
2e3fbf25db
Meteor 3.4 migration: Convert allow/deny callbacks to async
...
Meteor 3.x supports async allow/deny callbacks. Convert all 25 sync
allow/deny callbacks across 23 model files to use async/await with
findOneAsync/fetchAsync instead of sync findOne/find().fetch().
Also converts helper functions in server/lib/utils.js:
- allowIsBoardMemberWithWriteAccessByCard -> async
- allowIsBoardMemberByCard -> async
- canUpdateCard (cards.js) -> async
- permissionHelper.allow (integrations.js) -> async
2026-03-22 17:44:29 +02:00
Lauri Ojansivu
be5bdbe314
Export Card to Excel and related fixes. Part 1.
...
Thanks to xet7 !
Fixes #5324
2026-03-21 20:57:07 +02:00
Lauri Ojansivu
274f1309c3
Fixed unable to delete Avatar, with Meteor 3 compatible avatar and attachments fixes.
...
Thanks to inDane and xet7 !
Fixes #6160
2026-03-05 17:27:33 +02:00
Harry Adel
e77be37450
Use sync code in allow/deny for 2.x
2026-02-19 00:26:47 +02:00
Harry Adel
71eb01e233
Update ReactiveCache call sites to use async/await for Meteor 3.0
...
Part 3 of ReactiveCache async migration:
- Add await before all ReactiveCache.getX() calls
- Make functions containing ReactiveCache calls async
- Convert forEach/map/filter loops with async callbacks to for...of
- Update model helpers, Meteor methods, JsonRoutes handlers
- Update collection hooks (.before/.after insert/update/remove)
- Update .allow() callbacks to async
Files updated across models/ and server/ directories:
- Model files: cards, boards, lists, swimlanes, activities, users,
checklists, checklistItems, customFields, attachments, integrations,
cardComments, settings files, creators, exporters, and more
- Server files: publications, methods, notifications, routes, migrations
2026-02-01 00:54:38 +02:00
Lauri Ojansivu
a419d831a4
Fix Filebleed of Floppybleed.
...
Thanks to Luke Hebenstreit Twitter lheben_ and xet7 !
2026-01-28 13:20:28 +02:00
Harry Adel
ca2083c858
Migrate createIndex to createIndexAsync
2026-01-24 01:55:29 +02:00
Lauri Ojansivu
c413a7e860
Security Fix 8: MoveStorageBleed.
...
Thanks to [Joshua Rogers](https://joshua.hu ) of [Aisle Research](https://aisle.com ) and xet7.
2026-01-18 19:45:44 +02:00
Lauri Ojansivu
eabb6a239d
Fix New Board Permissions: NormalAssignedOnly, CommentAssignedOnly, ReadOnly, ReadAssignedOnly. Part 1.
...
Thanks to nazim-oss and xet7 !
Related #6060
2026-01-14 23:43:11 +02:00
Lauri Ojansivu
e9a727301d
Fix SECURITY ISSUE 1: File Attachments enables stored XSS (High).
...
Thanks to Siam Thanat Hack (STH) !
2025-11-02 08:36:29 +02:00
Lauri Ojansivu
30620d0ca4
Some migrations and mobile fixes.
...
Thanks to xet7 !
2025-10-25 21:09:07 +03:00
Lauri Ojansivu
4283b5b0e3
Disable not working minio and s3 support temporarily.
...
Thanks to xet7 !
2025-10-16 17:49:39 +03:00
Lauri Ojansivu
cc99da5357
Fixed Error in migrate-lists-to-per-swimlane migration.
...
Thanks to xet7 !
Fixes #5918
2025-10-13 20:34:23 +03:00
Lauri Ojansivu
bd8c565415
Fixes to make board showing correctly.
...
Thanks to xet7 !
2025-10-12 03:48:21 +03:00
Lauri Ojansivu
ae1f80a52c
Added attachments API and admin panel attachment management for file storage backends settings. Fixed drag drop upload attachments from file manager to minicard or opened card.
...
Thanks to xet7 !
2025-10-11 11:05:46 +03:00
Lauri Ojansivu
e1fa607f87
Security Fix JVN#74210258: Stored XSS.
...
Thanks to Ryoya Koyama of Mitsui Bussan Secure Directions, Inc and xet7 !
2025-10-10 23:06:06 +03:00
Lauri Ojansivu
9720e703fd
Security Fix JVN#14269684: Broken access control.
...
Thanks to Ryoya Koyama of Mitsui Bussan Secure Directions, Inc and xet7 !
2025-10-10 22:59:20 +03:00
Lauri Ojansivu
30c1597b65
Security Fix FG-VD-22-078: Prevent SVG Billion Laughs Attack.
...
Thanks to Nguyen Thanh Nguyen of Fortinet's FortiGuard Labs and xet7 !
2025-10-10 22:16:47 +03:00
Lauri Ojansivu
a8de2f224f
Use attachments from old CollectionFS database structure, when not yet migrated to Meteor-Files/ostrio-files, without needing to migrate database structure.
...
Thanks to xet7 !
2025-10-10 19:07:04 +03:00
Martin Filser
3fc9c6efe7
Move every Attachments.findOne() to the ReactiveCache
2023-07-18 21:25:28 +02:00
Martin Filser
a182482cfb
Move every Boards.findOne(boardId) to the ReactiveCache (Part 2)
2023-07-18 21:25:28 +02:00
Lauri Ojansivu
aef6967d4c
Fix Exception in callback of async function: TypeError: this._now is not a function. Part 2.
...
Thanks to xet7 !
2023-04-21 22:03:47 +03:00
Lauri Ojansivu
aeb0f1e6d8
Fix Exception in callback of async function: TypeError: this._now is not a function.
...
Thanks to xet7 !
2023-04-21 21:15:00 +03:00
Lauri Ojansivu
76ac070f9b
Save files serverside with filename ObjectID, without filename.
...
Thanks to g-roliveira, iamabrantes, Floaz, koelle25, scott-dunt, mfilser and xet7 !
Fixes #4416
2023-04-17 23:42:56 +03:00
Lauri Ojansivu
f11650ece1
Added more descriptive times of attachment migrations and uploads.
...
Thanks to xet7 !
Related https://github.com/wekan/wekan/issues/4891
2023-04-14 15:16:50 +03:00
Lauri Ojansivu
fd9478dc57
Try to fix build errors on some platforms.
...
Thanks to xet7 !
Related #4842
2023-02-21 21:27:34 +02:00
Lauri Ojansivu
382168a5b4
Try to fix some security issues. Part 2.
...
Thanks to responsible security disclosure contributors and xet7 !
2023-02-20 16:48:02 -05:00
Lauri Ojansivu
ff993e7c91
Try to fix some security issues.
...
Thanks to responsible security disclosure contributors and xet7 !
2023-02-20 01:21:33 +02:00
Lauri Ojansivu
cd1750f368
Forked minio npm package to @wekanteam/minio to update package dependencies. S3/MinIO support In Progress.
...
Thanks to xet7 !
Related #142
2023-01-16 15:11:31 +02:00
Martin Filser
f6fbd0a5c2
Attachment, rename not needed anymore since Meteor-Files 2.3.0
...
Thanks to @dr-dimitru
https://github.com/wekan/wekan/pull/4638#issuecomment-1217883870
https://github.com/veliovgroup/Meteor-Files/commit/00ab6f723b84eb596b366c5d26e6981a00377809
2022-08-21 11:10:27 +02:00
Martin Filser
25443926d3
Attachment, path was wrong if the file hasn't a extension
2022-08-21 11:10:27 +02:00
Tobias Wolf
469d81f8a5
Separate uploaded file validation logic from the model "Attachments"
2022-08-19 14:30:22 +02:00
Lauri Ojansivu
c23f5dc858
Fix Validate attachment error at PR Meteor files 2.2.1 fixes + attachment view.
...
Thanks to xet7 !
Fixes #4640
2022-08-16 22:27:22 +03:00
Martin Filser
ea5025595a
Server side code don't need a Meteor.call
2022-08-16 18:34:27 +02:00
Martin Filser
344aeb4051
Meteor-Files 2.2.1 changed the function "namingFunction"
...
See also:
https://github.com/veliovgroup/Meteor-Files/commit/f872569be282e3abfd1d812ab72cdd1b446273fa
2022-08-16 18:34:26 +02:00
Martin Filser
db8e707049
Attachment filename was truncated to 28 characters since Meteor-Files 2.1.0. Fixed this
...
See also:
https://github.com/veliovgroup/Meteor-Files/commit/e3a347c432b1296c2f6ee9ce48d356b631d2ce14#diff-4d4d0cea7e443590b59dddca4fc34faa6f37fbfd94a251d8d0047b8aa8ca19eeR4-R6
2022-08-16 18:34:26 +02:00
Tobias Wolf
e6b705be26
Remove leftover unused arguments parsing for external execution
2022-08-16 12:01:25 +02:00
Tobias Wolf
b5d311c00c
Add support to validate attachment uploads by an external program
2022-08-15 21:09:46 +02:00
Lauri Ojansivu
7c619859fc
Updated dependencies like ostrio:files etc.
...
Thanks to developers of dependencies and xet7 !
Related https://github.com/veliovgroup/Meteor-Files/issues/847
2022-08-15 15:24:16 +03:00
Tobias Wolf
ed3223fedc
Add support to validate attachment uploads by type and size
2022-08-03 13:06:23 +02:00