You are here: Foswiki>Tasks Web>Item13547 (03 Aug 2015, GeorgeClark)Edit Attach

Item13547: Copy failed from system to Sandbox

pencil
Priority: Urgent
Current State: Closed
Released In: 2.0.1
Target Release: patch
Applies To: Extension
Component: PlainFileStoreContrib
Branches: master Item13525
Reported By: JozefMojzis
Waiting For:
Last Change By: GeorgeClark

How to repo

  • Fresh Install fro tarbal
  • go to PackageForm
  • copy it to Sandbox
  • go to SlideShowPlugin
  • copy to Sandbox
  • got page long error message about the copy-failed

Or simpler
  • just try copy any topic from a System what has attachment to Sandbox
  • like PatternSkinCss

-- JozefMojzis - 21 Jul 2015

Confirmed. The issue is caused by us shipping System with "empty history". The copy function attempts to copy the attachment history and crashes if it's missing.

Also, the traceback is presented to the user and is not logged. That leaks server information that should not be revealed. That alone is a blocker!

Error saving topic

During save of Sandbox.SlideShowPlugin an error was found by the version control system. Please notify your Foswiki administrator.
PlainFile: copy /me/fw/sites/test02/Foswiki-2.0.0/data/System/SlideShowPlugin,pfv/ATTACHMENTS/slideshow.css to /me/fw/sites/test02/Foswiki-2.0.0/data/Sandbox/SlideShowPlugin,pfv/ATTACHMENTS/slideshow.css failed: No such file or directory at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/Store/PlainFile.pm line 1438.
 at /Users/clt/perl5/perlbrew/perls/perl-5.22.0t/lib/site_perl/5.22.0/CGI/Carp.pm line 357.
	CGI::Carp::realdie("PlainFile: copy /me/fw/sites/test02/Foswiki-2.0.0/data/System"...) called at /Users/clt/perl5/perlbrew/perls/perl-5.22.0t/lib/site_perl/5.22.0/CGI/Carp.pm line 449
	CGI::Carp::die("PlainFile: copy /me/fw/sites/test02/Foswiki-2.0.0/data/System"...) called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/Store/PlainFile.pm line 1438
	Foswiki::Store::PlainFile::_copyFile("/me/fw/sites/test02/Foswiki-2.0.0/data/System/SlideShowPlugin"..., "/me/fw/sites/test02/Foswiki-2.0.0/data/Sandbox/SlideShowPlugi"...) called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/Store/PlainFile.pm line 246
	Foswiki::Store::PlainFile::copyAttachment(Foswiki::Store::PlainFile=HASH(0x7fa06db560d8), Foswiki::Meta=HASH(0x7fa06e1915b0), "slideshow.css", Foswiki::Meta=HASH(0x7fa06e193b48), "slideshow.css", "BaseUserMapping_333") called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/Meta.pm line 3268
	Foswiki::Meta::__ANON__() called at /Users/clt/perl5/perlbrew/perls/perl-5.22.0t/lib/site_perl/5.22.0/Error.pm line 421
	eval {...} called at /Users/clt/perl5/perlbrew/perls/perl-5.22.0t/lib/site_perl/5.22.0/Error.pm line 413
	Error::subs::try(CODE(0x7fa06de5c000), HASH(0x7fa06de73548)) called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/Meta.pm line 3302
	Foswiki::Meta::copyAttachment(Foswiki::Meta=HASH(0x7fa06e1915b0), "slideshow.css", Foswiki::Meta=HASH(0x7fa06e193b48)) called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/UI/Save.pm line 696
	Foswiki::UI::Save::__ANON__() called at /Users/clt/perl5/perlbrew/perls/perl-5.22.0t/lib/site_perl/5.22.0/Error.pm line 421
	eval {...} called at /Users/clt/perl5/perlbrew/perls/perl-5.22.0t/lib/site_perl/5.22.0/Error.pm line 413
	Error::subs::try(CODE(0x7fa06e186418), HASH(0x7fa06de5b478)) called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/UI/Save.pm line 709
	Foswiki::UI::Save::save(Foswiki=HASH(0x7fa06d8d48c0)) called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/UI.pm line 374
	Foswiki::UI::__ANON__() called at /Users/clt/perl5/perlbrew/perls/perl-5.22.0t/lib/site_perl/5.22.0/Error.pm line 421
	eval {...} called at /Users/clt/perl5/perlbrew/perls/perl-5.22.0t/lib/site_perl/5.22.0/Error.pm line 413
	Error::subs::try(CODE(0x7fa06c016580), HASH(0x7fa06d8d42d8)) called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/UI.pm line 500
	Foswiki::UI::_execute(Foswiki::Request=HASH(0x7fa06ccccf18), CODE(0x7fa06d8b22f0), "save", 1) called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/UI.pm line 326
	Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x7fa06ccccf18)) called at /me/fw/sites/test02/Foswiki-2.0.0/lib/Foswiki/Engine/CGI.pm line 99
	Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x7fa06c5b63e0)) called
Go back in your browser and save your changes locally.

-- GeorgeClark - 21 Jul 2015
 
Topic revision: r6 - 03 Aug 2015, GeorgeClark - This page was cached on 30 Sep 2016 - 06:16.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License