Hi,
I made patch to fix this bug. Could you check if it solve the problem?
WBR
Michal Jaskurzynski
From 4ad27dbc8e35c0670ef6c53bc7c8bcee99952c36 Mon Sep 17 00:00:00 2001
From: jaskoola <jaskoola@debian.(none)>
Date: Sun, 1 Apr 2012 19:52:17 +0200
Subject: [PATCH] fix oc-310 bug
---
lib/connector/sabre/locks.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
mode change 100644 => 100755 lib/connector/sabre/locks.php
diff --git a/lib/connector/sabre/locks.php b/lib/connector/sabre/locks.php
old mode 100644
new mode 100755
index 7164d9a..d0dd570
--- a/lib/connector/sabre/locks.php
+++ b/lib/connector/sabre/locks.php
@@ -49,7 +49,7 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract {
// NOTE: the following 10 lines or so could be easily replaced by
// pure sql. MySQL's non-standard string concatination prevents us
// from doing this though.
- $query = 'SELECT * FROM *PREFIX*locks WHERE userid = ? AND (created + timeout) > ? AND ((uri = ?)';
+ $query = 'SELECT * FROM *PREFIX*locks WHERE userid = ? AND (created + timeout) > (? AS int) AND ((uri = ?)';
$params = array(OC_User::getUser(),time(),$uri);
// We need to check locks for every part in the uri.
--
1.7.2.5
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud