Skip to content

"Ask confirmation before downloading folders larger than X MB" does not work when creating a folder sync connection #5421

Closed

Description

@SamuAlfageme

Expected behavior

After setting a download size limit for folders in the sync client settings:

larger_than

Those remote folders larger than the specified size should be initially unchecked on the wizards.

Actual behavior

No manual confirmation is asked, everything is selected in the Choose what to sync (in both new account and new folder sync connection wizards) and syncs by default:

screenshot_2016-12-27_10_01_36

However, when the .csync_journal.db (or ._sync_[...].db after #5045) is removed, the expected behavior is triggered:

  • The notification is finally displayed:

screenshot 2016-12-27 09 48 45

  • The 3 options to handle these folders are shown:

screenshot 2016-12-27 09 52 14

Steps to reproduce

  1. Configure the sync client to ask confirmation before downloading folders larger than 20MB
  2. Create a folder larger than 20MB in the web UI
  3. Complete the add account/create new folder sync connection wizard selecting to synchronize a parent the folder just created.

Client configuration

  • Client version: 2.2.4
  • Operating system: OS X 10.11.6

This was also reported in #5340 (comment) as this is the workaround used there and causing it to fail on first runs.

Activity

  1. SamuAlfageme commented on Dec 27, 2016

    @SamuAlfageme
    ContributorAuthor

    I think this is somehow conflicting with the Theme::wizardSelectiveSyncDefaultNothing() concept.

    Also related with that: #4581

  2. self-assigned this
    on Jan 3, 2017
  3. ckamm commented on Jan 3, 2017

    @ckamm
    Contributor

    @SamuAlfageme I don't think this is a bug. Currently the user gets to explicitly choose which folders to sync when the folder sync connection is made. So after the user approves the dialog where all the folders are listed with their sizes, the client doesn't believe that big folders need an additional level of confirmation.

    I'm unsure how to resolve this: We could disable these bigger folders by default, but this might be surprising to users. Maybe then the "Choose What To Sync" dialog itself needs a note that "Some folders like A, B, C, ... will not be synced by default because their size exceeds the configured threshold"?

  4. phil-davis commented on Jan 3, 2017

    @phil-davis
    Contributor

    I guess the client knows the size of each folder at that point when it presents the "Choose What To Sync" dialog. If so, then I would expect it to deselect each folder over the limit, using the same logic as if all those folders had just appeared on the server for new download.

    If there is a download confirmation threshold set, and there was at least 1 folder exceeding the threshold, then text like the following could be displayed:
    "Folders whose size exceeds the download confirmation threshold (nnnMB) have been deselected. You may select them if you wish to download them."

  5. ckamm commented on Jan 3, 2017

    @ckamm
    Contributor

    @phil-davis Agreed, that's what I started on :)

  6. ckamm commented on Jan 3, 2017

    @ckamm
    Contributor

    Pull request: #5426

  7. added this to the 2.3.0 milestone on Jan 3, 2017
  8. added
    ReadyToTest
    on Jan 4, 2017
  9. guruz commented on Jan 4, 2017

    @guruz
    Contributor

    (ReadyToTest in PR not master)

  10. SamuAlfageme commented on Jan 10, 2017

    @SamuAlfageme
    ContributorAuthor

    Summing up with this:

    • Now the expected behavior (those folders larger than the threshold are unchecked) when selecting what to sync works 🎉
    • The option "Ask confirmation before downloading folders larger than 500 MB" is selected by default in a clean install of the client
    • "Sync everything" (without considering those folders that exceed the threshold) is the default behavior in the new account wizard (if Theme::wizardSelectiveSyncDefaultNothing() is true), "Choose what to sync" would be more close to what happens in the new folder sync connection wizard
    • For the new folders created via web UI exceeding the set size (created one after another, not in bulk) in some weird cases, they are first created empty and then their content is downloaded. I'll see how often this happens and open a new issue if needed.

    Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Design & UXReadyToTestsev3-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions