core icon indicating copy to clipboard operation
core copied to clipboard

[5.0.11RC1] wrong quota value in sync-client and webdav client

Open JacekZ opened this issue 13 years ago • 14 comments

After upgrading to 5.0.11RC1 sync-client (1.4rc1) displays wrong quota value. It seems to sum up actual quota value and used space. I have 2GB quota and used 1,3GB. Now quota in sync-client and webdav client (netdrive) is equal 3,3GB (2GB + 1.3GB).

In web interface everything works well.

JacekZ avatar Aug 28 '13 13:08 JacekZ

@DeepDiver1975 Can you have a look?

karlitschek avatar Aug 28 '13 13:08 karlitschek

@JacekZ can you please provide screenshots?

This is really strange observation because with 5.0.11 the methods to display these information have been harmonized

DeepDiver1975 avatar Aug 28 '13 22:08 DeepDiver1975

A now it's strange, I kept track your quota commits and didn't expect any trouble. Has anybody similar problem with quota?

oc1 oc2

JacekZ avatar Aug 29 '13 06:08 JacekZ

Can you please fire propfind requests against your webdav endpoints - one for each folder you have setup on your sync client? - THX

curl --request PROPFIND  --user user:pass --header "Content-Type: text/xml" <webdav-url>

DeepDiver1975 avatar Aug 29 '13 07:08 DeepDiver1975

You're welcome: https://gist.github.com/JacekZ/83dd3280de7797a12b05 https://gist.github.com/JacekZ/98ec04e3de0756c451f2

JacekZ avatar Aug 29 '13 07:08 JacekZ

@JacekZ can I as you to give on change a try?

Please replace 'total' with 'free' in https://github.com/owncloud/core/blob/master/lib/connector/sabre/directory.php#L239

THX

DeepDiver1975 avatar Aug 29 '13 08:08 DeepDiver1975

I did it. The sync-client shows the same result :( Nothing has changed.

JacekZ avatar Aug 29 '13 08:08 JacekZ

I did it. The sync-client shows the same result :( Nothing has changed.

hmm - afaik quota values in the client are currently updated only during sync runs - can you force a sync run by e.g. creating a new file ? THX

DeepDiver1975 avatar Aug 29 '13 08:08 DeepDiver1975

@danimo maybe a periodic query for the quota information makes sense? THX

DeepDiver1975 avatar Aug 29 '13 08:08 DeepDiver1975

/cc @ogoffart

danimo avatar Aug 29 '13 08:08 danimo

hmm - afaik quota values in the client are currently updated only during sync runs - can you force a sync run by e.g. creating a new file ? THX

I had done it, before I wrote about the results.

JacekZ avatar Aug 29 '13 09:08 JacekZ

interesting - we tested this here and we definitely got different results back

DeepDiver1975 avatar Aug 29 '13 09:08 DeepDiver1975

Please replace 'total' with 'free' in https://github.com/owncloud/core/blob/master/lib/connector/sabre/directory.php#L239

Guys, really really sorry. After replace "total" to "free", everything works fine. I have few owncloud servers in LB. I accidentally ignore one of them, and unfortunately my connection was redirect to this one :( Sorry for wasting your time.

JacekZ avatar Aug 29 '13 09:08 JacekZ

no problem - you initial bug report helped to find this issue - THX

DeepDiver1975 avatar Aug 29 '13 09:08 DeepDiver1975