Skip to content

2.3.0-nightly (6228): Folder in exception list is still synced #5039

Closed

Description

@sagamusix

Expected behaviour

In one of my ownCloud folders, I have a sub folder called "Festplatten-Images". Since it contains huge files that I do not want to sync, I previously added the exact folder name to the exception list. Until upgrading to 2.3.0-nightly (6228), the folder was never synced, as intended.

Actual behaviour

With 2.3.0-nightly (6228), the client tried to upload a file from said folder. The folder name is still in my exception list.

Client configuration

Client version: 2.3.0-nightly (6228)

Operating system: Windows 7

OS language: German

Installation path of client: Default

Activity

  1. changed the title [-]2.3.0-nightly (6228): [/-] [+]2.3.0-nightly (6228): Folder in exception list is still synced[/+] on Jul 7, 2016
  2. sagamusix commented on Jul 7, 2016

    @sagamusix
    Author

    Update: This revision seems to sync any file on my exception list happily. Exception list seems to be entirely broken.

  3. ckamm commented on Jul 8, 2016

    @ckamm
    Contributor

    Looking at it now.

  4. added this to the 2.3.0 milestone on Jul 8, 2016
  5. ckamm commented on Jul 8, 2016

    @ckamm
    Contributor

    @sagamusix I can't reproduce it with 2.2 or master. My steps:

    • Add a new "myignore" pattern to the exception list in the user interface.
    • Add a "/myignore" and "/subfolder/myignore" file to a sync folder
    • Verify
      • No sync is triggered when the files are added
      • The files are not uploaded to the server
      • The files appear in the "Not Synced" tab

    Could you explain the setup in which you observe this problem?

  6. self-assigned this
    on Jul 8, 2016
  7. sagamusix commented on Jul 8, 2016

    @sagamusix
    Author

    That's pretty much what I did, just with a different ignore pattern name. Seeing the recent discussions about regex in ignore lists, maybe something in the full list of ignore patterns makes ownCloud break on the entire list? My ignore list has a couple of entries so it could be tripping over that.

  8. ckamm commented on Jul 8, 2016

    @ckamm
    Contributor

    @sagamusix @guruz patch #4999 hasn't been merged yet. Do your patterns contain anything unusual or surprising? Can you check whether the pattern in question appears in the log file?

  9. sagamusix commented on Jul 8, 2016

    @sagamusix
    Author

    I've uploaded my personal ignore list for you to check if there's anything unusual in it: http://sagagames.de/stuff/sync-exclude.lst
    Apart from this, I have modified ownCloud's own ignore list to remove .htaccess from it as I need these files to be synced, but I doubt that could be the reason.

    The log is also not very helpful, apart from seeing that ownCloud even tries to upload its own sync log, which it normally shouldn't:

    # timestamp | duration | file | instruction | dir | modtime | etag | size | fileId | status | errorString | http result code | other size | other modtime | other etag | other fileId | other instruction
    #=#=#=# Syncrun started 2016-07-08T11:25:34
    #=#=#=# Syncrun started 2016-07-08T11:33:43
    #=#=#=#=# Propagation starts 2016-07-08T12:08:16 (last step: 2072981 msec, total: 2072981 msec)
    10:08:18|2267|.owncloudsync.log|INST_SYNC|Up|1467970404||248||4||204|477457|1467849479|94de3ff13dd0d2522fa9abae9648ba3e|01322523oc79c8z0bi2n|INST_NONE|
    

    After that, the upload of a (normally ignored) huge disk image started, at which point I closed the client to prevent it from further uploading ignored files.

  10. sagamusix commented on Jul 13, 2016

    @sagamusix
    Author

    After further investigating which disallowed sync data has been uploaded to my ownCloud server, it seems like the client even synced Windows' $RECYCLE.BIN, which it would normally never do "because the name contains characters which cannot be displayed on all systems" or something along those lines (and additionally, "just in case", I have this folder name in my personal exclude list). So it seems like the client simply uploaded all files and folders, no matter through which way they would normally be prevented from being updated.

  11. guruz commented on Jul 14, 2016

    @guruz
    Contributor

    @sagamusix What does the log say? Can you start with a --logfile (see documentation) and check what is output for the exclude list?

  12. sagamusix commented on Jul 14, 2016

    @sagamusix
    Author

    I deleted the old installers and as mentioned in #5053 I'm now back to 2.2.2 to prevent these things from happening. http://download.owncloud.com/desktop/daily/ currently does not contain any 2.3.0 builds, is that intentional? Should I test this with the latest 2.2.3 build?

  13. ckamm commented on Jul 19, 2016

    @ckamm
    Contributor

    The way in which this breaks is still unclear. Thanks for sharing your exclude list, I'll try using it though I doubt that'll show the problem.

    That even ".owncloudsync.log" and "$RECYCLE.BIN" get synced is a major hint. There's a hardcoded path for files with these patterns in _csync_excluded_common. At first I thought csync_fnmatch might not be working for some reason, but the code for ignoring "$RECYCLE.BIN" doesn't even need that. Either the function doesn't get called or the result gets ignored somehow, I don't know how that would happen yet.

  14. ckamm commented on Jul 19, 2016

    @ckamm
    Contributor

    @jturcotte Spotted the problem, will be fixed soon.

  15. added
    ReadyToTest
    on Jul 19, 2016
  16. sagamusix commented on Jul 21, 2016

    @sagamusix
    Author

    Using 2.2.3-nightly (6258), the problem seems to be fixed.

  17. removed
    ReadyToTest
    on Jul 22, 2016
  18. mcastroSG commented on Jul 22, 2016

    @mcastroSG

    @sagamusix thanks a lot for testing

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions