spatie / flysystem-dropbox

A flysystem driver for Dropbox that uses the v2 API
https://freek.dev/734-dropbox-will-turn-off-v1-of-their-api-soon-its-time-to-update-your-php-application
MIT License
342 stars 50 forks source link

Endless Loop for listContents #57

Closed greeven closed 3 years ago

greeven commented 3 years ago

The Dropbox-API seems to have a bug where the listContents function in DropboxAdapter:175 gets into an endless loop for some folders.

The returned entries become at some point only 1 entry which is the $location itself but the index "has_more" still is true.

This happens in our company for only one specific folder. The function and API call for other folders behaves as expected.

As this is a quite random behavior I haven't encountered anywhere else, I thought I let you know.

Maybe someone has the same problem. Maybe someone knows whats going on. Maybe its my fault. I don't know.

Any input as to how to go about it is welcome.