Item13379: Rename attachments error
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
How to reproduce
- Attach file to the topic for example attach
screenshot_62.png
to the topic UnicodeErrors
- click "manage" in the attachments table
- click "move"
- Fill the fields:
- "To topic" enter the current topic e.g. UnicodeErrors
- Enter some new attachment name as "Xscreenshot_62.png"
- click the "Move" button
Got error such following.
Attention
Attachment move failed
During move of attachment screenshot_62.png to Jomoutf.UnicodeErrors an error was found.
PlainFile: move /me/fw/utest5/foswiki/core/data/Jomoutf/UnicodeErrors,pfv/ATTACHMENTS/screenshot_62.png to /me/fw/utest5/foswiki/core/data/Jomoutf/UnicodeErrors,pfv/ATTACHMENTS/Xscreenshot_62.png failed: No such file or directory at /me/fw/utest5/foswiki/core/lib/Foswiki/Store/PlainFile.pm line 1321. at /Users/clt/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/CGI/Carp.pm line 357. CGI::Carp::realdie("PlainFile: move /me/fw/utest5/foswiki/core/data/Jomoutf/Unico"...) called at /Users/clt/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/CGI/Carp.pm line 449 CGI::Carp::die("PlainFile: move /me/fw/utest5/foswiki/core/data/Jomoutf/Unico"...) called at /me/fw/utest5/foswiki/core/lib/Foswiki/Store/PlainFile.pm line 1321 Foswiki::Store::PlainFile::_moveFile("/me/fw/utest5/foswiki/core/data/Jomoutf/UnicodeErrors,pfv/ATT"..., "/me/fw/utest5/foswiki/core/data/Jomoutf/UnicodeErrors,pfv/ATT"...) called at /me/fw/utest5/foswiki/core/lib/Foswiki/Store/PlainFile.pm line 153 Foswiki::Store::PlainFile::moveAttachment(Foswiki::Store::PlainFile=HASH(0x7fd53cbd8a40), Foswiki::Meta=HASH(0x7fd53d252600), "screenshot_62.png", Foswiki::Meta=HASH(0x7fd53d3924d8), "Xscreenshot_62.png", "BaseUserMapping_333") called at /me/fw/utest5/foswiki/core/lib/Foswiki/Meta.pm line 3167 Foswiki::Meta::__ANON__() called at /Users/clt/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Error.pm line 421 eval {...} called at /Users/clt/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Error.pm line 413 Error::subs::try(CODE(0x7fd53d392130), HASH(0x7fd53d398418)) called at /me/fw/utest5/foswiki/core/lib/Foswiki/Meta.pm line 3213 Foswiki::Meta::moveAttachment(Foswiki::Meta=HASH(0x7fd53d252600), "screenshot_62.png", Foswiki::Meta=HASH(0x7fd53d3924d8), "new_name", "Xscreenshot_62.png") called at /me/fw/utest5/foswiki/core/lib/Foswiki/UI/Rename.pm line 805 Foswiki::UI::Rename::__ANON__() called at /Users/clt/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Error.pm line 421 eval {...} called at /Users/clt/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Error.pm line 413 Error::subs::try(CODE(0x7fd53c81ebe0), HASH(0x7fd53d391f68)) called at /me/fw/utest5/foswiki/core/lib/Foswiki/UI/Rename.pm line 819 Foswiki::UI::Rename::_moveTopicOrAttachment(Foswiki=HASH(0x7fd53b616190), Foswiki::Meta=HASH(0x7fd53d252600), Foswiki::Meta=HASH(0x7fd53d3924d8), "screenshot_62.png", "Xscreenshot_62.png", undef) called at /me/fw/utest5/foswiki/core/lib/Foswiki/UI/Rename.pm line 295 Foswiki::UI::Rename::_renameTopicOrAttachment(Foswiki=HASH(0x7fd53b616190), "Jomoutf", "UnicodeErrors") called at /me/fw/utest5/foswiki/core/lib/Foswiki/UI/Rename.pm line 85 Foswiki::UI::Rename::rename(Foswiki=HASH(0x7fd53b616190)) called at /me/fw/utest5/foswiki/core/lib/Foswiki/UI.pm line 374 Foswiki::UI::__ANON__() called at /Users/clt/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Error.pm line 421 eval {...} called at /Users/clt/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Error.pm line 413 Error::subs::try(CODE(0x7fd53b017c48), HASH(0x7fd53c930928)) called at /me/fw/utest5/foswiki/core/lib/Foswiki/UI.pm line 500 Foswiki::UI::_execute(Foswiki::Request=HASH(0x7fd53b5b0348), CODE(0x7fd53bafa848), "rename", 1) called at /me/fw/utest5/foswiki/core/lib/Foswiki/UI.pm line 326 Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x7fd53b5b0348)) called at /me/fw/utest5/foswiki/core/lib/Foswiki/Engine/CGI.pm line 98 Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x7fd53bbf5350)) called
Please go back in your browser and try again.
- The attachment is got RENAMED, but didn't changes the information in the
META:FILEATTACHMENT
- so when next time click on the "manage" -> "move" it says:
Attention
Attachment move failed
During move of attachment screenshot_62.png to . an error was found.
Attachment does not exist.
Please go back in your browser and try again.
--
JozefMojzis - 21 Apr 2015
I'm unable to recreate this issue. I did a new install of trunk, and I've moved the attachment repeatedly and it all seems to work fine.
--
GeorgeClark - 22 Apr 2015
Hm.. now nor me... Strange, "something" is happened meantime.
Closing this - will reopen, if this will happen again and when find how to recreate. (maybe, the topic contained some other utf8 attachments or such - but don't know now.
--
JozefMojzis - 23 Apr 2015