[ETAG] If you refresh the files in root in the web after uploading several files and renaming the folder in the device, the etag of the file changes
Expected behaviour
Etag of the file , which is in the second level or more, shouldn't change when you refresh the server
Actual behaviour
Etag of the file, which is in the second level at least, changes
Steps to reproduce
- Create a folder in root in the device (folder1)
- Create another folder inside this one (folder2) in the device
- Upload several files in folder2 in the device, for instance one of the upload file could be a.png
- Go to the root and rename "folder1" as "folder1b" (or delete another folder…) in the device
- Refresh the account in the server
- At this stage, the etag of a.png has changed when it shouldn't
Server configuration
Operating system: MaOs 10.7.5
Database: SQLite 3
ownCloud version: 5.0.11 RC2
Browser: Chrome
@MTRichards
@gig13 Will add it to the support doc.
@DeepDiver1975 for this user.
@rperezb I can not confirm that with server on stable5 (SHA c0f1a6be4a18e6846ee1dec5f95012a6e681a970)
I used a webdav client and
- created a directory folder1 in the root of the the webdav server
- created a directory folder1/folder2
- put a file a.png into folder1/folder2
- noted down the etag of folder1/folder2/a.png
- renamed folder1 to folder1b
- checked the etag of folder1b/folder2/a.png
it has not changed for me. What is the difference that makes it changing for you?
@dragotin The next step, after renamed folder1 to folder1b, is refresh the account in the web (check that folder is renamed in the server) After that, if you check the etag, it has changed
@icewind1991 Is there under any circumstances the possibility that a rescan will change the existing etag? Remember the console based scan in 5.0.10 - that did the same. THX
@karlitschek Also wanted to call attention here, similar problem on keep in sync for mobile.
@icewind1991 Can you have a look please?
news here?
This needs to be investigated. We get constant complains about redownloads and this (see owncloud/mirall#994) could easily the reason for it.
Confirm. Added new file to the root of my file tree. All E-tags of underlying files and folders got regenerated (as far as I can see), causing all clients to resync tens of gigabytes of data in hundreds of thousands of files. Not good.
Haven't extensively tested when does this happen, but I suspect that adding a file in a folder would lead for files in underlying folders to be retagged as well.
OwnCloud Server v. 5.0.12 on Ubuntu 12.04.
I could test further and provide additional debug in case anybody needs it.
@icewind1991 what is the status of this? did you do any work on this? @karlitschek @dragotin @DeepDiver1975 had a discussion on how to solve this and related issues this morning.
unassigning @icewind1991 as he is busy with exams.
@purigarcia Can you retest please with ownCloud 6 beta4? We still can't reproduce.
Tested with {"installed":"true","version":"6.0.0.7","versionstring":"6.0 beta 4","edition":""} And it has worked as expected. Checked different changes (rename, delete, upload...) different depths and it has worked fine