-
Notifications
You must be signed in to change notification settings - Fork 677
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
Discovery: Allow more HTTP error code to be treated as ignored dir #7588
Conversation
The original code from csync was stopping at any error. But we have been whitelisting soeme http error code one by one to ignore the directory instead of aborting the sync. However, as there are more requests to continue the sync in case of error, just ignore most HTTP errors Issue #7586
Questions:
|
Same as before: the directory is considered ignored.
There is a comment in the code about it: "403 Forbidden can be sent by the server if the file firewall is active."
Right, maybe the error message could be improved. We currently rely on whatever Qt provides us as an error message. I was under the assumption that this should already include the error code, but maybe not. |
Proposal, as |
Yeah, plenty of room for improvement in the desktop docs, but out of scope of the PR. Better create new doc issue for tracking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
In the comments above, |
Quick question: Would this PR potentially help with continuing discovery even if discovery of some server folders fails with "Operation canceled"? I set up my ownCloud server from scratch recently and none of my clients can do a full rediscovery anymore because the server times out on random folders (seems like it has an issue keeping up with the high number of requests). I would love to test this this PR but it seems like there have been no daily builds for Windows since 2019-11-09. |
@sagamusix what http code do you see in the log when „Operation cancelled „? |
Which log do you mean exactly? The client sync log isn't very helpful, it's empty:
Should I run the client with |
Here's the
Note that hundreds of other folders were scanned in the meantime and finished with status "OK" instead. The sync run itself started roughly half a minute before this folder was discovered. EDIT: Switching the server back from HTTP2 to HTTP1.1 solves the issue... |
@sagamusix Maybe open a new issue to collect details of your problem, instead of hijacking this merged PR |
The original code from csync was stopping at any error.
But we have been whitelisting soeme http error code one by one
to ignore the directory instead of aborting the sync.
However, as there are more requests to continue the sync in case
of error, just ignore most HTTP errors
Issue #7586