Foswiki.org is running Foswiki 2.0.
Please report any issues to IRC #foswiki channel, or open a Task
. (If you see unusual behaviour, you might need to clear your browser cache).
Item10665: can't copy attachments under a different user
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
This is an error in the Foswiki::Meta class. The copyAttachment() function allows to do that operation
overriding the currently logged in user with another optional user, e.g. calling it like
$fromMeta->copyAttachment("image.gif", $toMeta, user => "SomeUserID");
However this fails halting the server in a deadlock.
method creates an atomic lock for the given user "SomeUserID" and will afterwards
try to create yet another atomic lock as part of the
operation. This normally all comes out fine
_as long as you do not use the
override feature. Otherwise the second try to lock
the topic is done using with the current user id in
which not necessarily equals "SomeUserId" provided to
The fix is to pass the
override down to the
call part of the copy action.
(... which for
must be a
- 21 Apr 2011