cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Needs followup in Tasks

Error was found by the version control system

I got the following error while I am trying to attach a zip with BatchUploadPlugin:

During save of xxx.WebHome an error was found by the version control system. Please notify your Foswiki administrator.

Do not save zip file! 

Go back in your browser and save your changes locally.

However, files in the zip file were successfully extracted and attached to the topic

I am using RcsLite.

-- HackatonWong - 17 Jul 2009

I guess, the update of the META data within the topic file failed, after the upload itself succeded.RcsLite does not support rcs-style locking. Maybe some other process rcs-locked that file.

Does this happen to many / all topics on your system?

-- OliverKrueger 09 Oct 2009

Getting this same error on Foswiki 1.1.4 now. Tested with simple zip archive with two PDFs. Error page appears as described above. By navigating manually back to the page and reloading, I see that contents of the zip have actually been successfully attached with correct metadata including comment.

Tried turning on Debug option in BatchUploadPlugin settings, but still no information appears in Apache error log nor Foswiki warnYYYYMM.txt files.

This plugin worked without problem last year.

-- HeathRaftery - 06 May 2012

The source of the error message "Do not save zip file!" is line 129 in the beforeUploadHandler of the BatchUploadPlugin. In order
  • not to attach the zip file and
  • not to overwrite the meta data (with the extracted files) with the saved meta data in the caller (that is missing the extracted files)
the author entered
# SMELL: bit of a hack?
# user won't see this, but if left out the zip file will be attached, overwriting the unzipped files
#exit 0; this just returns a blank page to the user, not very good...
  throw Error::Simple( 'Do not save zip file!' ); # this seems to work fine, the user gets returned to their viewed↪ page and the unzipped files do not get overwritten. Presumably it is caught somewhere higher up.

The assumption "user won't see this" is wrong if you use ModPerlEngineContrib.

see also Tasks.Item13049.

-- ChristianLudwig - 07 Oct 2014

QuestionForm edit

Subject Using an extension
Extension BatchUploadPlugin
Version Foswiki 1.1.4
Status Needs followup in Tasks
Related Topics
Topic revision: r7 - 10 Jan 2015, LynnwoodBrown - This page was cached on 18 Jul 2018 - 01:24.

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