-
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
Directory tree depth limit #1067
Comments
agreed. More than 50 directories should a) work or b) reported as proper error. |
I can reproduce the problem. It seems that, in the update phase, the subdirectories are not seen. |
That's because csync hardcode a maximum depth.
I beleive the reason is not to be fooled by symbolic link loops. |
Ignoring and reporting this clearly to the users sounds good enough. Many thanks, kuba On Oct 14, 2013, at 3:01 PM, Olivier Goffart [email protected] wrote:
|
@dragotin Can we bubble this up the the UI easily? |
We could set the define to a higher value, ie. 250 maybe. Should we do that? |
What is the minimum of the maximum depth of all OSes we support? |
Does this still exist as an issue? |
yes |
@pmaier1 @michaelstingl to define wanted behaviour and then lets implement it. In any case, when we reach the limit we should have a defined behaviour and not just break. |
Limit 50 seems to work. We should display a error message in the UI. |
|
@ogoffart Could me make this configurable with a environment variable? |
For now we think a limit of 50 is fine - at least until we hear something else. Anyway we need proper error handling and docs that explain the reason for such limit (symlink loop limiting). In case the directory depth exceeds the limit, the client should show an error message like "Could not be synced due to exceeded directory depth (50). See ". |
As requested in owncloud#1067, this commit adds an entry to the FAQ to highlight the fact that the sync client will never scan greater than 50 sub-directories.
Before this patch, to deep folder would just be ignored, without any feedback. This patch makes it so deep folder are properly shown as ignored in the UI. Also increase the MAX_DEPTH Issue: #1067
Before this patch, to deep folder would just be ignored, without any feedback. This patch makes it so deep folder are properly shown as ignored in the UI. Also increase the MAX_DEPTH Issue: #1067
Before this patch, to deep folder would just be ignored, without any feedback. This patch makes it so deep folder are properly shown as ignored in the UI. Also increase the MAX_DEPTH Issue: #1067
What needs to be tested? @SamuAlfageme ? Is there already an error message as @pmaier1 suggested? |
I've tested the current behavior: The too-deep directory is not synced and is shown in the "not synced" list of files. It's a silent error, similar to other files being excluded due to hiddenness or by exclude pattern. |
Perfect IMO, if anybody thinks it should be more then 50, please raise your voice now! We can test more and up the limit ... |
Above 50 levels of directories the sync breaks however the sync client does not report an error (RC=0).
If there is a policy on a maximum allowed tree depth then it should be handled somehow properly.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: