Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Bug] Android app: Nextcloud URL expects the user to use %20 instead of space in path #470
Spaces in URL
If there is a space in Nextcloud URL, sync fails. The user has to use "https://nextcloud.example.org/remote.php/webdav/Some/path/with%20space" instead.
The Android app should transliterate spaces to standard URL notation automatically.
Interestingly, after migration from Evernote to the Desktop app (via ENEX files) and lot of hours of syncing of both Android app and desktop app, now the desktop app complains too:
However, in the desktop app it worked just fine to use regular space in URL. Until now.
I tried to search all the files in Nextcould local file system for "%20" and did not find anything. So I guess the URL is not stored in any file (I do not use encryption) so the bug may not be influenced by the URL set in the Android app. (But then again, who knows without studying the code...)
Changing the URL also in the desktop app to have %20 instead of spaces resolved the problem, eventually.
P.S. Debugging console did not show anything on sync.
URL should not have spaces in them as it's not a valid character, although it's possible it will work by chance depending on config, server, etc.
I think the solution, rather than supporting spaces in URLs, would be to detect such a URL as invalid from the start and display a message on how to fix it.