Skip to content

Ensure dropbox app sync works with whitespaces - #207

Merged
fsantini merged 1 commit into
fsantini:masterfrom
StefSchenkelaars:fix-dropbox-whitespace
Jun 3, 2026
Merged

fsantini merged 1 commit into
fsantini:masterfrom
StefSchenkelaars:fix-dropbox-whitespace

Conversation

@StefSchenkelaars

Copy link
Copy Markdown
Contributor

Dropbox removed the whitespace from their JSON response. Since the regular expression matchers included those spaces, they did not work anymore. Made these spaces optional to ensure it works both with and without spaces.

Additionally, it seems that they sorted their response attributes. This resulted in the size attribute being last and therefore there is no attribute after size and thus the match on the comma separator did not work.

To make it even more future proof, proper JSON parsing would be nice but that is a big change. This is a "quick fix" that works and is easy to understand.

Dropbox removed the whitespace from their JSON response. Since the
regular expression matchers included those spaces, they did not work
anymore. Made these spaces optional to ensure it works both with and
without spaces.

Additionally, it seems that they sorted their response attributes. This
resulted in the `size` attribute being last and therefore there is no
attribute after size and thus the match on the comma separator did not
work.

To make it even more future proof, proper JSON parsing would be nice but
that is a big change. This is a "quick fix" that works and is easy to
understand.
@fsantini
fsantini merged commit a8abb08 into fsantini:master Jun 3, 2026
1 check failed
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

Successfully merging this pull request may close these issues.

2 participants