You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Folder size not propagated when uploading as share recipient with encryption enabled #24105
Upload a non-empty file into "test/sub" in the web UI
Navigate to folder "test"
Check the size of the folder "sub"
Expected result
Size of "sub" matches contents
Actual result
Size of "sub" stays zero.
Entry in oc_filecache also has a size of zero.
Versions
ownCloud 9.0.1
Note that if you do the same without encryption it works fine.
So I suspect that some of the fileinfo size overrides code is messing up with folder size propagation.
Also the folder sizes cannot properly be corrected with occ files:scan because of encrypted size vs unencrypted size! seems to work fine. occ:files:scan can be used to repair those folder sizes.
Before that commit, even though the upload fails with 500 error, the folder size is correctly updated.
After that commit, the folder size is either -1 or 0. So not sure if that commits is directly related or if there is something else at play.
Activity
PVince81 commentedon Apr 19, 2016
This is bad because it could also doesn't update the share owner's root folder size, so the usage quota isn't updated properly.
PVince81 commentedon Apr 19, 2016
Also the folder sizes cannot properly be corrected with occ files:scan because of encrypted size vs unencrypted size!seems to work fine.occ:files:scancan be used to repair those folder sizes.Regression check:
PVince81 commentedon Apr 19, 2016
Bisect was tough due to many internal server errors on the way.
It pointed at this commit: 1369f2c from PR #21851
Before that commit, even though the upload fails with 500 error, the folder size is correctly updated.
After that commit, the folder size is either -1 or 0. So not sure if that commits is directly related or if there is something else at play.
@icewind1991 can you have a look ?
icewind1991 commentedon Apr 20, 2016
Ok, could reproduce in a unit test
icewind1991 commentedon Apr 20, 2016
Fix is here #24124
lock commentedon Aug 4, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.