-
Notifications
You must be signed in to change notification settings - Fork 669
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
Add New Sync Folder Pair: pasting a complete path to remote folder should issue only one PROPFIND #5766
Comments
The message is of course correct: The parent folders can't be listed. But confusing, yes. |
In this case if the full path is copy/pasted then I don't think it should check the parent folders -- just the target one. The error message still applies in case the path which is typed into the textbox is not accessible. In this case the error message should be improved e.g. "Cannot access folder: (Bad Request)" or alike. This improvement makes sense for the more general owncloud logic with unsyncable/unreachable folders which is discussed in several places: e.g. owncloud/core#26311 |
Ughh..
Hmmmmmmm This is departing from the logic we had since years. But might be fine if it is only for the wizard. |
This actually request is for the wizard when the full path specified (and IMO makes sense in general not to query the parent folders by the client in this wizard because it is up to the server to define the access policy on the target folder/URI anyway). For sync discovery phase you obviously goes top down so by definition go cross all the parents. There is no contradiction with owncloud/core#26311: if some subtree would not be accessible, it would not be discovered and synced. |
@moscicki The reason it PROPFINDs the parents is that it wants to highlight the target folder in the file tree view, therefore expands all parents and then needs to discover these folder's contents. We could add a special case for your situation, but it's not something that usually comes up for other people, so it'd be brittle and prone to break. :/ |
Please see screenshot below.
I just pasted the full path into the text box. The error message is bogus - I can proceed with adding the folder. But the error message confuses the users.
The widget creates a sequence of PROPFIND requests for all the parent directories. In our generalized storage approach I do not have access to parent directories (only to the final one). I know that this is not POSIX-like but that's the way it works.
One PROPFIND to the final destination would fix it nicely (and would make less calls to the server anyway).
The text was updated successfully, but these errors were encountered: