Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] pollintervall from server capabilities is ignored (msec vs sec confusion) #8961

Closed
jnweiger opened this issue Aug 26, 2021 · 9 comments
Closed

Comments

@jnweiger
Copy link
Contributor

jnweiger commented Aug 26, 2021

Seen in testpilotcloud 2.9.0-beta3 on Linux Mint 20.2

  • server config.php with
    'pollinterval' => 122,
08-26 21:38:54:493 [ info sync.connectionvalidator ]:	Server capabilities QJsonObject({"checksums":{"preferredUploadType":"SHA1","supportedTypes":["SHA1"]},"core":{"pollinterval":122,"status": ...

But the client seems to poll every 30 seconds, nevertheless:

$ grep 'time since last' ~/testpilotcloud.log  
08-26 21:53:08:348 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 28 s)
08-26 21:53:39:347 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 59 s)
08-26 21:54:10:348 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 90 s)
08-26 21:54:41:347 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 121 s)
08-26 21:55:17:346 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 157 s)
08-26 21:55:48:347 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 188 s)
08-26 21:56:19:347 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 219 s)
08-26 21:56:50:347 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 250 s)
08-26 21:57:21:347 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 281 s)
08-26 21:57:52:347 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 312 s)
08-26 21:58:28:353 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 349 s)
08-26 21:58:59:347 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 379 s)
08-26 21:59:30:348 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 410 s)
08-26 22:00:01:346 [ info gui.folder ]: Trying to check "https://12.23.34.45/remote.php/dav/files/jwtest/" for changes via ETag check. (time since last sync: 441 s)

Expected behaviour: as per #8777 the server capabilitiy is honored.

@TheOneRing
Copy link
Contributor

You set a pill interval of 122ms, everything < 5s will be ignored

@jnweiger
Copy link
Contributor Author

jnweiger commented Aug 27, 2021

That is bad. The server default was 60, so how should anybody get the Idea, that this is in milliseconds?

Server default is:

curl -s -u admin:admin 'https://demo.owncloud.com/ocs/v1.php/cloud/capabilities?format=json' | jq  .ocs.data.capabilities.core.pollinterval
 60

This value made me assume it is meant in units of seconds.
@felix-schwarz commented about this in #8777 (comment)
@michaelstingl can you confirm, how mobile clients interpret the value?
@mmattel FYI

@jnweiger jnweiger mentioned this issue Aug 27, 2021
39 tasks
@TheOneRing
Copy link
Contributor

#8777 (comment)

Needs documentation

@mmattel
Copy link
Contributor

mmattel commented Aug 27, 2021

@TheOneRing pls file a docs issue in the docs-client-desktop repo.

@jnweiger jnweiger reopened this Aug 27, 2021
@TheOneRing
Copy link
Contributor

@jnweiger when the topic of an issue drastically changes from EVERYTHING IS BROKEN to doc is missing please update the title of the issue to something meaning ful

@felix-schwarz
Copy link

felix-schwarz commented Aug 27, 2021

@jnweiger I waited for the PR to be merged, then implemented the feature identically in the iOS client: owncloud/ios-app#1021

The only difference IIRC is that the iOS client will log a warning for values exceeding 60 seconds, in case someone added too many zeros and wonders why the client seemingly no longer refreshes.

@michaelstingl
Copy link
Contributor

@TheOneRing pls file a docs issue in the docs-client-desktop repo.

@mmattel here we go:

@jnweiger
Copy link
Contributor Author

jnweiger commented Aug 27, 2021

Confirmed: The desktop client currently interprets the value as milliseconds.
If that is the correct interpretation, then we can close this issue here and follow up in the above doc issues. Thanks @michaelstingl

Please also note, that server 10.8 still sends a default capability of pollinterval:60 and does not document the parameter in the config.sample.php file...

@jnweiger jnweiger changed the title [QA] pollintervall from server capabilities is ignored [QA] pollintervall from server capabilities is ignored (msec vs sec confusion) Aug 27, 2021
@TheOneRing
Copy link
Contributor

I think we discussed the issue in length, feel free to open a doc issue with the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants