core icon indicating copy to clipboard operation
core copied to clipboard

Etag and contain of the folder doesn't refresh after replace a file

Open purigarcia opened this issue 13 years ago • 6 comments

Expected behaviour

Etag and contain of the folder don't refresh through webdav protocol after replace a file

Actual behaviour

After replace a file, in the server, only one file is shown, but the etag and contain of the folder should refresh through webdav protocol. As the etag doesn't refresh, on the movile you can not see the changes, two files are shown instead of one

Steps to reproduce

  1. Upload "photo.jpg" to the server
  2. Upload another photo with the same name ("photo.jpg")
  3. In the folder, there are two files ("photo.jpg" and "photo (2).jpg")
  4. Rename "photo (2).jpg" as "photo.jpg"
  5. A message is shown saying "foot.jpg already exists replace cancel"
  6. Select to replace

Server configuration

Operating system: MacOS 10.7.5

Database:SQLite 3

PHP version:

ownCloud version: 5.0.11 RC2

Browser: Chrome

Web server error log

Error hook error while running hook (\OC\Files\Cache\Updater::renameHook): SQLSTATE[23000]: Integrity constraint violation: 19 columns storage, path_hash are not unique

purigarcia avatar Sep 05 '13 08:09 purigarcia

@karlitschek Just flagging this for you, as a bug in 5. It impacts the mobile apps in general.

MTRichards avatar Oct 02 '13 17:10 MTRichards

@icewind1991 Can you have a look please?

karlitschek avatar Oct 03 '13 15:10 karlitschek

@purigarcia @rperezb please retest this with the latest oc6 beta and 5.0.13 - THX

DeepDiver1975 avatar Nov 15 '13 10:11 DeepDiver1975

@purigarcia @rperezb Ladies - any news? THX

DeepDiver1975 avatar Nov 21 '13 16:11 DeepDiver1975

@purigarcia @rperezb Can you test again please? Thanks

karlitschek avatar Nov 25 '13 10:11 karlitschek

Checked with {"installed":"true","version":"6.0.0.8","versionstring":"6.0 beta 5","edition":""} It does work, tested in FF and Chrome with different folder levels

rperezb avatar Nov 26 '13 09:11 rperezb