Files
wekan/models
Lauri Ojansivu d3e80af1ac Attachments: validateAttachmentAndMoveToStorage moves the file again.
After validating, the method moved the file from Meteor.defer by calling
the moveAttachmentToStorage method. A deferred call has no method
invocation and so no userId, and that method's first check is "You must be
logged in.": every move was refused, the error went nowhere, and the file
stayed where it was.

Every check moveAttachmentToStorage makes - a site admin, the board
visible, the destination on the allowlist - is made by this method before
the defer, so the deferred step now calls moveToStorage itself, as the
upload path already does, and logs a failure instead of dropping it.

tests/moveStorageBleed.test.cjs pins it; its existing guard still requires
the admin check and the allowlist before every caller-named move, and a
new one fails on any Meteor.defer or Meteor.setTimeout in server/ or
models/ that calls a Meteor method.

This was in CHANGELOG TODO Later as needing a maintainer decision.

Thanks to xet7 !
2026-10-27 21:23:54 +02:00
..
2026-10-14 13:15:39 +03:00
2026-06-12 20:15:56 +03:00