Ticket #1317 (new defect)

Opened 1 year ago

Last modified 10 months ago

move fails for properties when new file exists

Reported by: henrik.holst2@gmail.com Assigned to: jan
Priority: normal Milestone: 1.4.20
Component: mod_webdav Version: 1.4.16
Severity: normal Keywords: webdav patch bug
Cc: Blocking:
Need Feedback: 0

Description

When performing a MOVE the properties database is adjusted with an )"UPDATE properites SET resource = "new" WHERE resource ="old"). This however fails if there is properties for the new file since there now would be two records with the exactly same columns and sqlite fails the call.

Now I do not know SQL that well, but I think that the UPDATE call should by prefixed with a ("DELETE FROM properties where resource="new"). This worked when I did it offline using the sqlite3 utility.

Besides failing when there is an new file, the current situation also means that we inherit the properties from the existing new file.

Attachments

mod_webdav[1].patch (0.8 kB) - added by henrik.holst2@gmail.com on 08/23/2007 10:01:51 AM.
fix as patch

Change History

08/23/2007 10:01:51 AM changed by henrik.holst2@gmail.com

  • attachment mod_webdav[1].patch added.

fix as patch

10/02/2007 08:56:26 AM changed by HenrikHolst

  • keywords set to webdav patch bug.

I have tested the patch against 1.5.x and it works so please consider this for inclusion for both 1.4.x and 1.5.x since MOVE operation without this patch fails horribly when there is metadata properties.


Add/Change #1317 (move fails for properties when new file exists)




Change Properties