Ability to overwrite files in an eXist database

Are you missing a feature? Request its implementation here.
ja2humph
Posts: 13
Joined: Wed Nov 22, 2006 4:45 pm

Ability to overwrite files in an eXist database

Post by ja2humph »

Hello,

I have noticed that when I try to overwrite a resource with a copy on my local machine, I just receive an error message and no option to overwrite the old file.

I then have to find and delete the old file first before I can upload the new version, resulting in a short period of downtime.

This is a fairly frequent task as I tend to work on new versions of a file on a development server and test them before uploading them to the production server.

Any chance this could be looked at for the next release?

Thanks
Julian
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

We will replace the error dialog with a confirmation dialog which asks you to confirm the file overwrite. The overwrite operation is not permitted because the user could overwrite and lose an entire collection by mistake. But for a single file a confirm dialog should be enough as a warning about possibly losing a resource in the database.

Regards,
Sorin
ja2humph
Posts: 13
Joined: Wed Nov 22, 2006 4:45 pm

Post by ja2humph »

Thanks sorin. That sounds reasonable.

Just as a sidenote - the eXist Java client overwrites files without any warning at all!
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

We know that and we considered an implementation error to allow the user to overwrite a resource by mistake without at least a warning. So we decided to signal it as an error and forbid the overwrite. But because in case of an intended overwrite in a collection with very many files it can be difficult to delete the resource first before saving the new version in place of the old one we will replace the error dialog with a confirmation dialog.


Regards,
Sorin
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Post by adrian »

Hello,

We have implemented the requested behaviour. When adding resources that already exist in the database, a confirmation dialog will appear to warn you of that, and you will be able to overwrite the files as needed. This modification will probably be available in the next minor version of Oxygen.

Best regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ja2humph
Posts: 13
Joined: Wed Nov 22, 2006 4:45 pm

Post by ja2humph »

Excellent :) Thank you very much

and Merry Christmas!
Post Reply