Skip to content
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

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

Open
beprogressive opened this issue Jul 19, 2021 · 5 comments

Comments

@beprogressive
Copy link

beprogressive commented Jul 19, 2021

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)
}
@greg-db
Copy link
Contributor

greg-db commented Jul 19, 2021

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.

@handstandsam
Copy link
Contributor

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

@greg-db
Copy link
Contributor

greg-db commented Sep 23, 2022

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

@handstandsam
Copy link
Contributor

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

@handstandsam
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants