If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org
to view this page for some minimal testing.
for docu changes for 1.2 and 2.0.
Item10665: can't copy attachments under a different user
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