Item13054: TopicInteractionPlugion fails when moving attachments
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Whenever I try to move an attachment, I get a red pop-up window with this message:
Move failed
Insecure dependency in rename while running with -T switch at /usr/share/perl5/File/Copy.pm line 271.
at /usr/share/perl5/File/Copy.pm line 271
File::Copy::move('/var/www/html/StsFoswiki/pub/Sandbox/TestUwe/1dd01bc01e938893...', '/var/www/html/StsFoswiki/pub/Sandbox/TestCalendar/1dd01bc01e9...') called at /var/www/html/StsFoswiki/lib/Foswiki/Store/VC/Handler.pm line 973
Foswiki::Store::VC::Handler::moveFile('Foswiki::Store::VC::RcsWrapHandler=HASH(0x37983f8)', '/var/www/html/StsFoswiki/pub/Sandbox/TestUwe/1dd01bc01e938893...', '/var/www/html/StsFoswiki/pub/Sandbox/TestCalendar/1dd01bc01e9...') called at /var/www/html/StsFoswiki/lib/Foswiki/Store/VC/Handler.pm line 764
Foswiki::Store::VC::Handler::moveAttachment('Foswiki::Store::VC::RcsWrapHandler=HASH(0x37983f8)', 'Foswiki::Store::RcsWrap=HASH(0x2730990)', 'Sandbox', 'TestCalendar', '1dd01bc01e9388938afc95a651958ef6.png') called at /var/www/html/StsFoswiki/lib/Foswiki/Store/VC/Store.pm line 163
Foswiki::Store::VC::Store::moveAttachment('Foswiki::Store::RcsWrap=HASH(0x2730990)', 'Foswiki::Meta=HASH(0x28695c8)', '1dd01bc01e9388938afc95a651958ef6.png', 'Foswiki::Meta=HASH(0x3798188)', '1dd01bc01e9388938afc95a651958ef6.png', 'SergioNogales') called at /var/www/html/StsFoswiki/lib/Foswiki/Meta.pm line 2937
Foswiki::Meta::__ANON__() called at /usr/share/perl5/Error.pm line 411
eval {...} called at /usr/share/perl5/Error.pm line 403
Error::subs::try('CODE(0x3799988)', 'HASH(0x3799d00)') called at /var/www/html/StsFoswiki/lib/Foswiki/Meta.pm line 2974
Foswiki::Meta::moveAttachment('Foswiki::Meta=HASH(0x28695c8)', '1dd01bc01e9388938afc95a651958ef6.png', 'Foswiki::Meta=HASH(0x3798188)', 'new_name', '1dd01bc01e9388938afc95a651958ef6.png') called at /var/www/html/StsFoswiki/lib/Foswiki/Plugins/TopicInteractionPlugin/Action/MoveAttachment.pm line 107
Foswiki::Plugins::TopicInteractionPlugin::Action::MoveAttachment::__ANON__() called at /usr/share/perl5/Error.pm line 411
eval {...} called at /usr/share/perl5/Error.pm line 403
Error::subs::try('CODE(0x3798788)', 'HASH(0x3798c08)') called at /var/www/html/StsFoswiki/lib/Foswiki/Plugins/TopicInteractionPlugin/Action/MoveAttachment.pm line 112
Foswiki::Plugins::TopicInteractionPlugin::Action::MoveAttachment::handle('Foswiki::Response=HASH(0x26e2fb0)', 'HASH(0x378f840)') called at /var/www/html/StsFoswiki/lib/Foswiki/Plugins/TopicInteractionPlugin/Core.pm line 82
Foswiki::Plugins::TopicInteractionPlugin::Core::restMove('Foswiki=HASH(0x26ecb98)', 'TopicInteractionPlugin', 'move', 'Foswiki::Response=HASH(0x26e2fb0)') called at /var/www/html/StsFoswiki/lib/Foswiki/Plugins/TopicInteractionPlugin.pm line 144
Foswiki::Plugins::TopicInteractionPlugin::restMove('Foswiki=HASH(0x26ecb98)', 'TopicInteractionPlugin', 'move', 'Foswiki::Response=HASH(0x26e2fb0)') called at /var/www/html/StsFoswiki/lib/Foswiki/Func.pm line 704
Foswiki::Func::__ANON__('Foswiki=HASH(0x26ecb98)', 'TopicInteractionPlugin', 'move', 'Foswiki::Response=HASH(0x26e2fb0)') called at /var/www/html/StsFoswiki/lib/Foswiki/UI/Rest.pm line 242
Foswiki::UI::Rest::rest('Foswiki=HASH(0x26ecb98)') called at /var/www/html/StsFoswiki/lib/Foswiki/UI.pm line 316
Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 411
eval {...} called at /usr/share/perl5/Error.pm line 403
Error::subs::try('CODE(0x1c94f28)', 'HASH(0x26ec760)') called at /var/www/html/StsFoswiki/lib/Foswiki/UI.pm line 435
Foswiki::UI::_execute('Foswiki::Request=HASH(0x2579cc8)', 'CODE(0x269fba8)', 'rest', 1) called at /var/www/html/StsFoswiki/lib/Foswiki/UI.pm line 274
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x2579cc8)') called at /var/www/html/StsFoswiki/lib/Foswiki/Engine/CGI.pm line 74
Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x1ff66c8)') called
TopicINteractionPLugin version: 3.6
--
SergioNogales - 16 Oct 2014
Have you got
{Locales}
enabled? Try again when disabled.
--
MichaelDaum - 17 Oct 2014
I didn't find {locales} in the configure. But:
{UseLocale} is disabled
is this what you meant?
--
SergioNogales - 21 Oct 2014
You could remove the -T switch from the bin scripts. We will be shipping 1.2 with -T removed, which also gives a small performance boost.
What version of Perl are you using, and on what web server?
Yes, Michale was referring to referring to {UseLocale}, so if that is disabled, it eliminates a lot of sources of Tainted variable pain.
(Don't forget to set the currentState to "Waiting for feedback" and
WaitingFor to
MichaelDaum, or questions get lost in the noise.)
--
GeorgeClark - 24 Dec 2014
changing "#! /usr/bin/perl -wT" to "#! /usr/bin/perl -w" in all bin scripts, worked here (perl v5.10.1 in RHEL 6.5).
thankx
--
SergioNogales - 26 Feb 2015