dropbox-sdk-java icon indicating copy to clipboard operation
dropbox-sdk-java copied to clipboard

listFolderLongpoll().changes return true when changes in any folder, not in specified folder

Open beprogressive opened this issue 4 years ago • 5 comments

fun getDir(path: String) {
     var result = client.files().listFolderBuilder(path)
            .withLimit(500)
            .withIncludeDeleted(true)
            .withRecursive(false)
            .start()
        while (true) {
            if (!result.hasMore) {
                startLongPoll(result.cursor)
                break
            }
            result = client.files().listFolderContinue(cursor)
        }
}

fun startLongPoll(cursor: String) {
     client.files().listFolderLongpoll(cursor, 30).changes // returns true if any changes in account, not in path specified with listFolderBuilder(path)
}

beprogressive avatar Jul 19 '21 16:07 beprogressive

Thanks for the report. This is a known issue with the longpoll functionality. This is open with the team, but I don't have a timeline for a resolution. I'll follow up here with any news.

greg-db avatar Jul 19 '21 16:07 greg-db

@greg-db What should we do with this ticket?

handstandsam avatar Sep 23 '22 13:09 handstandsam

@handstandsam This issue is still valid, so we can keep this open.

greg-db avatar Sep 23 '22 14:09 greg-db

We'd have to setup a reproduction case and debug to understand. Therefore we can keep it open until that is done. Thanks! 👍

handstandsam avatar Sep 23 '22 18:09 handstandsam

I talked with @greg-db and he pointed me to some more information we have in an internal tracking system. Thanks Greg!

handstandsam avatar Sep 23 '22 20:09 handstandsam