Etag and contain of the folder doesn't refresh after replace a file
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
- Upload "photo.jpg" to the server
- Upload another photo with the same name ("photo.jpg")
- In the folder, there are two files ("photo.jpg" and "photo (2).jpg")
- Rename "photo (2).jpg" as "photo.jpg"
- A message is shown saying "foot.jpg already exists replace cancel"
- 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
@karlitschek Just flagging this for you, as a bug in 5. It impacts the mobile apps in general.
@icewind1991 Can you have a look please?
@purigarcia @rperezb please retest this with the latest oc6 beta and 5.0.13 - THX
@purigarcia @rperezb Ladies - any news? THX
@purigarcia @rperezb Can you test again please? Thanks
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