core icon indicating copy to clipboard operation
core copied to clipboard

Renaming folders locally causes deletion of the content

Open Rothy opened this issue 12 years ago • 31 comments

Hi everyone:

Expected behaviour

When I rename a folder locally and the client syncs to the cloud, the folder in the cloud should get renamed and the files stored in the new folder afterwords.

Actual behaviour

When I rename a folder the content of the folder gets deletet. Actually following happens: In the data directory the files are at the new position in the new folder, but in the database, table filecash, their entries are deleted an there are 2 entries with the new foldername.

Steps to reproduce

  1. rename folder locally
  2. wait for first sync
  3. wait for 2nd sync

Server configuration

Operating system: MS Windows Server 2012 german

Web server: Microsoft-IIS/8.0

Database: mysql 5.0.8

PHP version: 5.3

ownCloud version: 6.0.1 Updated from an older ownCloud with updates from 5.14a, but problem existed also in 5.12.

Im using only https.

List of activated app: 6.0.1 Standard installation

  • Activity
  • Calendar
  • Deleted Files
  • Documents
  • Full Text Search
  • PDF Viewer
  • Share Files
  • Text Editor
  • Updater
  • Versions
  • Video Viewer

(deactivating Deleted Files and Versions seemed to fix it, but the error recurred.)

The content of config/config.php:

<?php
$CONFIG = array (
  'installed' => true,
  'dbtype' => 'mysql',
  'dbname' => 'sc_owncloud',
  'dbuser' => 'sc_owncloud',
  'dbpassword' => '',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'passwordsalt' => '',
  'forcessl' => true,
  'blacklisted_files' => 
  array (
    0 => '.htaccess',
  ),
  'overwritehost' => '',
  'overwriteprotocol' => '',
  'overwritewebroot' => '',
  'overwritecondaddr' => '',
  'proxy' => '',
  'proxyuserpwd' => '',
  'theme' => '',
  'default_language' => 'en',
  '3rdpartyroot' => '',
  '3rdpartyurl' => '',
  'defaultapp' => 'files',
  'knowledgebaseenabled' => true,
  'appstoreenabled' => true,
  'appstoreurl' => 'http://api.apps.owncloud.com/v1',
  'mail_domain' => 'example.com',
  'mail_smtpdebug' => false,
  'mail_smtpmode' => 'sendmail',
  'mail_smtphost' => '127.0.0.1',
  'mail_smtpport' => 25,
  'mail_smtptimeout' => 10,
  'mail_smtpsecure' => '',
  'mail_smtpauth' => false,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'memcached_server' => 
  array (
    0 => 'localhost',
    1 => 11211,
  ),
  'trashbin_retention_obligation' => 30,
  'trashbin_auto_expire' => false,
  'allow_user_to_change_display_name' => false,
  'appcodechecker' => '',
  'updatechecker' => true,
  'has_internet_connection' => true,
  'check_for_working_webdav' => true,
  'check_for_working_htaccess' => true,
  'log_type' => 'owncloud',
  'logfile' => '',
  'loglevel' => '0',
  'logdateformat' => 'F d, Y H:i:s',
  'logtimezone' => 'Europe/Berlin',
  'log_query' => false,
  'log_authfailip' => false,
  'log_rotate_size' => true,
  'remember_login_cookie_lifetime' => 1296000,
  'session_lifetime' => 86400,
  'custom_csp_policy' => 'default-src \'self\'; script-src \'self\' \'unsafe-eval\'; style-src \'self\' \'unsafe-inline\'; frame-src *; img-src *; font-src \'self\' data:; media-src *',
  'xframe_restriction' => true,
  'datadirectory' => 'D:\\sc_owncloud',
  'maintenance' => false,
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => 'C:\\inetpub\\wwwroot\\cloud\\apps',
      'url' => '/apps',
      'writable' => true,
    ),
  ),
  'user_backends' => 
  array (
    0 => 
    array (
      'class' => 'OC_User_IMAP',
      'arguments' => 
      array (
        0 => '{imap.gmail.com:993/imap/ssl}INBOX',
      ),
    ),
  ),
  'customclient_desktop' => '',
  'customclient_android' => '',
  'customclient_ios' => '',
  'enable_previews' => true,
  'preview_max_x' => NULL,
  'preview_max_y' => NULL,
  'preview_max_scale_factor' => 10,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'preview_office_cl_parameters' => '',
  'enable_avatars' => false,
  'openssl' => 
  array (
  ),
  'singleuser' => false,
  'instanceid' => 'oc25845159bf',
  'version' => '6.0.0.16',
);

or tried it also with:

$CONFIG = array (
  'instanceid' => '5259953f8af04',
  'passwordsalt' => '280c16e6c02fce851aba964b986e73',
  'datadirectory' => 'D:\\sc_owncloud',
  'dbtype' => 'mysql',
  'version' => '6.0.0.16',
  'dbname' => 'sc_owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'sc_owncloud',
  'dbpassword' => 'JcÄ=dqq4',
  'installed' => true,
  'forcessl' => true,
  'maxZipInputSize' => 0,
  'allowZipDownload' => true,
  'theme' => '',
  'maintenance' => false,
);

Client configuration

Browser: Firefox Operating system: Windows 7 Also tested on: Operating system: mac

Both with different Client Versions.

Logs

At my latest Tests, I couldnt found any entries in the logfiles. in older ones, I found that:

Here we go. This time I created an folder mktest. Then into it "Neuer Ordner" and I put 2 files into it. Then I renamed "Neuer Ordner" to "Umbenannt". Short later the files locally got deleted and in the webinterface I have now 2 folders "Umbenannt" without content.

Logfiles:

owncloud.log [code]{"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/mktestn' is not readable !!!","level":0,"time":"January 30, 2014 12:07:38"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/mktestn/Neuer Ordner' is not readable !!!","level":0,"time":"January 30, 2014 12:07:57"} {"app":"OC\Files\Cache\Scanner","message":"!!! No reuse of etag for 'files/mktestn/Neuer Ordner/Release.txt' !!! \ncache: Array\n(\n [fileid] => 10287\n [storage] => local::D:\sc_owncloud/data/\n [path] => files/mktestn/Neuer Ordner/Release.txt\n [parent] => 10286\n [name] => Release.txt\n [mimetype] => text/plain\n [mimepart] => text\n [size] => 161547\n [mtime] => 1391080107\n [storage_mtime] => 1391080107\n [encrypted] => \n [unencrypted_size] => 0\n [etag] => 52ea32abd0cc0\n)\n \ndata: Array\n(\n [mimetype] => text/plain\n [mtime] => 1299877890\n [size] => 161547\n [etag] => 52ea32abd15d5\n [storage_mtime] => 1299877890\n)\n","level":0,"time":"January 30, 2014 12:08:27"} {"app":"OC\Files\Cache\Scanner","message":"!!! No reuse of etag for 'files/mktestn/Neuer Ordner/Version.txt' !!! \ncache: Array\n(\n [fileid] => 10288\n [storage] => local::D:\sc_owncloud/data/\n [path] => files/mktestn/Neuer Ordner/Version.txt\n [parent] => 10286\n [name] => Version.txt\n [mimetype] => text/plain\n [mimepart] => text\n [size] => 27283\n [mtime] => 1391080109\n [storage_mtime] => 1391080109\n [encrypted] => \n [unencrypted_size] => 0\n [etag] => 52ea32ad46aba\n)\n \ndata: Array\n(\n [mimetype] => text/plain\n [mtime] => 1299877890\n [size] => 27283\n [etag] => 52ea32ad4734e\n [storage_mtime] => 1299877890\n)\n","level":0,"time":"January 30, 2014 12:08:29"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/mktestn/Umbenannt' is not readable !!!","level":0,"time":"January 30, 2014 12:08:47"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files_versions/mktestn' is not readable !!!","level":0,"time":"January 30, 2014 12:08:47"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files_versions/mktestn' is not readable !!!","level":0,"time":"January 30, 2014 12:08:47"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/mktestn/Umbenannt/Release.txt' is not readable !!!","level":0,"time":"January 30, 2014 12:08:51"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/mktestn/Umbenannt/Release.txt' is not readable !!!","level":0,"time":"January 30, 2014 12:08:52"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/mktestn/Umbenannt/Version.txt' is not readable !!!","level":0,"time":"January 30, 2014 12:08:53"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/mktestn/Umbenannt/Version.txt' is not readable !!!","level":0,"time":"January 30, 2014 12:08:54"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/mktestn/Umbenannt//' is not readable !!!","level":0,"time":"January 30, 2014 12:09:31"} {"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/mktestn/Umbenannt//' is not readable !!!","level":0,"time":"January 30, 2014 12:09:31"} [/code]

owncloud Client [code]12:09:33 Umbenannt/Version.txt SCTEST gelöscht 27 kB
12:09:33 Umbenannt/Release.txt SCTEST gelöscht 158 kB
12:08:54 Neuer Ordner SCTEST Verschoben nach Umbenannt0 B
12:08:34 Neuer Ordner/Version.txt SCTEST Hochladen 27 kB
12:08:32 Neuer Ordner/Release.txt SCTEST Hochladen 158 kB
[/code]

IIS Log [code]2014-01-30 11:07:35 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1372 2014-01-30 11:07:38 192.168.1.101 MKCOL /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 201 0 0 1435 2014-01-30 11:07:40 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1123 2014-01-30 11:07:41 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1123 2014-01-30 11:07:43 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1357 2014-01-30 11:07:55 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1138 2014-01-30 11:07:57 192.168.1.101 MKCOL /remote.php/webdav/mktestn/Neuer+Ordner/ - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 201 0 0 1372 2014-01-30 11:08:00 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1123 2014-01-30 11:08:06 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1341 2014-01-30 11:08:25 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1123 2014-01-30 11:08:26 192.168.1.101 PROPFIND /remote.php/webdav/mktestn/Neuer+Ordner - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1123 2014-01-30 11:08:28 192.168.1.101 PUT /remote.php/webdav/mktestn/Neuer+Ordner/Release.txt - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 201 0 0 1840 2014-01-30 11:08:29 192.168.1.101 PUT /remote.php/webdav/mktestn/Neuer+Ordner/Version.txt - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 201 0 0 1497 2014-01-30 11:08:30 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1154 2014-01-30 11:08:37 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1341 2014-01-30 11:08:45 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1123 2014-01-30 11:08:46 192.168.1.101 PROPFIND /remote.php/webdav/mktestn/Neuer+Ordner - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1107 2014-01-30 11:08:47 192.168.1.101 MOVE /remote.php/webdav/mktestn/Neuer+Ordner - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 201 0 0 1294 2014-01-30 11:08:48 192.168.1.101 PROPPATCH /remote.php/webdav/mktestn/Umbenannt - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1154 2014-01-30 11:08:50 192.168.1.101 HEAD /remote.php/webdav/mktestn/Umbenannt - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 200 0 0 1419 2014-01-30 11:08:51 192.168.1.101 PROPPATCH /remote.php/webdav/mktestn/Umbenannt/Release.txt - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 404 0 0 1154 2014-01-30 11:08:52 192.168.1.101 HEAD /remote.php/webdav/mktestn/Umbenannt/Release.txt - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 404 0 0 1248 2014-01-30 11:08:53 192.168.1.101 PROPPATCH /remote.php/webdav/mktestn/Umbenannt/Version.txt - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 404 0 0 1107 2014-01-30 11:08:55 192.168.1.101 HEAD /remote.php/webdav/mktestn/Umbenannt/Version.txt - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 404 0 0 1248 2014-01-30 11:09:00 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1123 2014-01-30 11:09:09 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1388 2014-01-30 11:09:17 192.168.1.101 GET /index.php/apps/files - 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/settings/apps?installed 200 0 0 1559 2014-01-30 11:09:17 192.168.1.101 GET /apps/files/js/file-upload.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 46 2014-01-30 11:09:17 192.168.1.101 GET /apps/files/js/jquery.iframe-transport.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 46 2014-01-30 11:09:17 192.168.1.101 GET /apps/files/js/jquery.fileupload.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 46 2014-01-30 11:09:17 192.168.1.101 GET /apps/files/js/jquery-visibility.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 46 2014-01-30 11:09:17 192.168.1.101 GET /apps/files/js/filelist.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 31 2014-01-30 11:09:17 192.168.1.101 GET /apps/files/js/fileactions.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 46 2014-01-30 11:09:17 192.168.1.101 GET /apps/files/js/files.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 46 2014-01-30 11:09:17 192.168.1.101 GET /apps/files/js/keyboardshortcuts.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 233 2014-01-30 11:09:18 192.168.1.101 GET /remote.php/core.css v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 1435 2014-01-30 11:09:18 192.168.1.101 GET /index.php/apps/files/css/files.css v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 2340 2014-01-30 11:09:20 192.168.1.101 GET /index.php/apps/files/css/upload.css v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 3416 2014-01-30 11:09:22 192.168.1.101 GET /index.php/core/js/config.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 200 0 0 4586 2014-01-30 11:09:23 192.168.1.101 GET /remote.php/core.js v=74b4d273507a7e0eba857955bd45b2cf 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 5772 2014-01-30 11:09:23 192.168.1.101 GET /core/img/breadcrumb.svg 2014-01-22T11:25:00Z 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/remote.php/core.css?v=74b4d273507a7e0eba857955bd45b2cf 304 0 0 234 2014-01-30 11:09:24 192.168.1.101 GET /index.php/core/routes.json - 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 304 0 0 1341 2014-01-30 11:09:25 192.168.1.101 POST /index.php/core/ajax/translations.php - 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 200 0 0 2402 2014-01-30 11:09:25 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1310 2014-01-30 11:09:26 192.168.1.101 GET /cron.php - 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 200 0 0 3541 2014-01-30 11:09:26 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1123 2014-01-30 11:09:26 192.168.1.101 POST /index.php/core/ajax/translations.php - 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 200 0 0 2152 2014-01-30 11:09:28 192.168.1.101 POST /index.php/core/ajax/translations.php - 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 200 0 0 1123 2014-01-30 11:09:28 192.168.1.101 PROPFIND /remote.php/webdav/mktestn/Umbenannt - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1435 2014-01-30 11:09:30 192.168.1.101 GET /index.php/core/ajax/share.php fetch=getItemsSharedStatuses&itemType=file 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 200 0 0 1169 2014-01-30 11:09:30 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1154 2014-01-30 11:09:31 192.168.1.101 GET /index.php/apps/files/ajax/scan.php force=false&dir=&requesttoken=399e3dc401a6f1e6565e 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files 200 0 0 2574 2014-01-30 11:09:32 192.168.1.101 GET /index.php/apps/files/ajax/list.php dir=%2Fmktestn&breadcrumb=true 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files?dir=/mktestn 200 0 0 2995 2014-01-30 11:09:33 192.168.1.101 POST /index.php/core/ajax/translations.php - 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files?dir=/mktestn 200 0 0 3588 2014-01-30 11:09:34 192.168.1.101 GET /index.php/apps/files/ajax/getstoragestats.php dir=%2Fmktestn 443 - MY_IP Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:26.0)+Gecko/20100101+Firefox/26.0 https://socialcert.krichenbauer.it/index.php/apps/files?dir=/mktestn 200 0 0 2262 2014-01-30 11:09:40 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1341 2014-01-30 11:10:00 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1357 2014-01-30 11:10:00 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1591 2014-01-30 11:10:11 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1372 2014-01-30 11:10:30 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1341 2014-01-30 11:10:30 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1747 2014-01-30 11:10:42 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1326 2014-01-30 11:11:00 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1341 2014-01-30 11:11:00 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1747 2014-01-30 11:11:14 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1357 2014-01-30 11:11:30 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1341 2014-01-30 11:11:45 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1357 2014-01-30 11:12:00 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1388 2014-01-30 11:12:16 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1404 2014-01-30 11:12:30 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1310 2014-01-30 11:12:47 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1341 2014-01-30 11:13:00 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1372 2014-01-30 11:13:18 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1325 2014-01-30 11:13:30 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1357 2014-01-30 11:13:49 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1372 2014-01-30 11:14:00 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1372 2014-01-30 11:14:21 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1326 2014-01-30 11:14:30 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+csyncoC/0.91.4+neon/0.30.0 - 207 0 0 1138 2014-01-30 11:14:52 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1357 2014-01-30 11:15:01 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1310 2014-01-30 11:15:23 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1372 2014-01-30 11:15:31 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1326 2014-01-30 11:15:54 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1388 2014-01-30 11:16:01 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1372 2014-01-30 11:16:25 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1372 2014-01-30 11:16:31 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1326 2014-01-30 11:16:56 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1388 2014-01-30 11:17:01 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1310 2014-01-30 11:17:28 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1341 2014-01-30 11:17:31 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1403 2014-01-30 11:17:59 192.168.1.101 PROPFIND /remote.php/webdav/ - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1419 2014-01-30 11:18:01 192.168.1.101 PROPFIND /remote.php/webdav/mktestn - 443 - MY_IP Mozilla/5.0+(Windows)+mirall/1.5.0 - 207 0 0 1388[/code]

Rothy avatar Feb 02 '14 22:02 Rothy

@ringmaster @dragotin

PVince81 avatar Feb 03 '14 09:02 PVince81

Hi, thx for helping. My idea of today: I think there is nothing in the logs, so there is no real mistake happening. I think, the "new" moving-files-while-renaming-feature of the client inserts instead of the filenames only the path. Thats why filenames are gone in the db and the path is twice, one with / in it one without. Im quite sure in older versions renaming worked well!

Rothy avatar Feb 03 '14 22:02 Rothy

If you want to see what happens: I made a new test-site, unzipped the a new owncloud download, made a new db... https://test.krichenbauer.it/owncloud Just connect with your client, demouser1 or demouser 2, password demouser. Create a Folder, put files in it and rename it. See what happens...

Rothy avatar Feb 06 '14 01:02 Rothy

And again a update from our site: As you can see here: http://forum.owncloud.org/viewtopic.php?f=26&t=19128&start=20 we just found out, that the error occurrs only on Windows Server and also only, if a space is in the renamed foldername. Renaming folders without spaces is working without problems.

Rothy avatar Feb 06 '14 14:02 Rothy

Hi! Is there a way to disable your buggy renaming feature? In older Versions when there was a folder renamed, it deleted the folder and synct it with the new name. But this worked. I want that back and not, that the content and db is useless after renaming a folder.

Rothy avatar Feb 25 '14 16:02 Rothy

@ringmaster could you take a look here? I am sure that is an IIS problem.

dragotin avatar Mar 04 '14 08:03 dragotin

In my opinion, there is no problem from IIS. It is only on Windows Server. If Apache + ownCloud used on a Windows server, it comes with the same error.

With another client, such as: gm universal sync, folders can also be renamed.

OwncloudJB avatar Mar 21 '14 10:03 OwncloudJB

I am not sure that this is related to Windows Server or IIS. We have Linux with Nginx running ownCloud 6.0.2 and we do have the same issue:

  1. Create a folder within a shared file structure
  2. Place content into it
  3. Rename the folder locally => folder gets deleted

In the "Activities" section in ownCloud I can see, that some others user Client (latest Windows client) "decided" to delete the folder. This user did not change anything manually at that moment.

Regarding @OwncloudJB 's comment from above, I think this is more related to the client.

adressler avatar May 08 '14 12:05 adressler

I encountered the same problem with

Owncloud 6.0.4 Windows 2012 R2 and IIS PHP 5.5.11 MySQL 5.6.19 Windows Sync Client 1.6.1

To reproduce 1.) Create Folder named "Test A" and put a file "File 1.txt" into this folder 2.) Check tabel oc_file_map. You will find two entrys.

'files/Test A' 'files/Test A/File 1.txt'

On the server a folder "test-a" will be created.

3.) Now rename on the client the folder "Test A" to folder "Test B".

First you will get a file not found error from the sync client but the the sync continues.

In the webinterface you will find two folders "Test B". One of them with size 0.

In table oc_file_map you will find three entries (!):

'files/Test B', 'files/Test B/' 'files/Test B/File 1.txt'

On the server the folder name is changed to "test-b" and this folder contains now two files:

file-1.txt file-1-0.txt

If you do the same rename procdure with the webinterface everything is correct.

In my humble opinion this error has nothing to do with IIS or the PHP version or the client - the same happens with the mac client

The mistake seems to be related to the second entry 'files/Test B/' in the oc_map_files table.

Just my thoughts...

Axel

kraeg avatar Jun 29 '14 07:06 kraeg

I have the same problem. Sometimes renaming a folder deletes it. Thats why I always create a zip of the local folder and rename afterwards...you never know! It already saved my a**.

godfuture avatar Jul 20 '14 22:07 godfuture

Problem persists in latest ownCloud 7.0.2. Renaming a folder through ownCloud Client inside a shared folder causes it to disappear. It does not go to the "deleted files" list.

Tested with a brand new database installation on Windows Server 2008 R2 Enterprise SP1, MySQL 5.6, IIS 7.5, PHP 5.5.9.

Havenard avatar Sep 18 '14 08:09 Havenard

Just reporting it's still happening in 7.0.2.

If I change the casing of the folder (Moo -> moo), it's always deleted.

tgracin avatar Oct 17 '14 11:10 tgracin

@nickvergessen @th3fallen

PVince81 avatar Oct 17 '14 11:10 PVince81

Same behaviour reproducable on a Mac OSX Server (Mavericks) running Owncloud 6.0.2.

fanatique avatar Oct 29 '14 22:10 fanatique

Is Mac OS also using the MappedStorage?

nickvergessen avatar Oct 30 '14 00:10 nickvergessen

Same thing happened to me.

Owncloud 7.0.2 Ubuntu 12.04

BradPhillips avatar Nov 30 '14 23:11 BradPhillips

I have the same ISSUE

Owncloud 7.0.3 With Ubuntu 14.04

Zachi777 avatar Dec 01 '14 06:12 Zachi777

If this happens to you on non-windows, it is a different issue. Please reopen a new issue

nickvergessen avatar Dec 01 '14 07:12 nickvergessen

I have this same problem and it occurs on my Windows Clients. Is there an ETA for a fix?

My server is Ubuntu Linux 14.04, Owncloud is version 7.0.3, and my clients are using Windows 7 with the sync client version 1.7.0.

airforceboricua avatar Dec 05 '14 21:12 airforceboricua

If the server is Linux see my above comment

nickvergessen avatar Dec 06 '14 11:12 nickvergessen