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

[Bug] Android app: Nextcloud URL expects the user to use %20 instead of space in path #470

milankni opened this Issue Apr 29, 2018 · 3 comments


None yet
3 participants

milankni commented Apr 29, 2018

Operating system

  • Android


  • Mobile

Spaces in URL

If there is a space in Nextcloud URL, sync fails. The user has to use "" instead.
This is not obvious and it is not required in the Linux desktop app.

The Android app should transliterate spaces to standard URL notation automatically.


This comment has been minimized.

quotengrote commented Apr 29, 2018

Can confirm.


This comment has been minimized.

milankni commented Apr 29, 2018

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:

2018-04-29 09:21:17: "Operations completed: "
2018-04-29 09:21:17: "Total folders: 1"
2018-04-29 09:21:17: "Total notes: 1"
2018-04-29 09:21:17: "Total resources: 0"
2018-04-29 09:21:17: "There was some errors:"
2018-04-29 09:21:17: "Error: href /remote.php/webdav/Documents/Joplin%20Notes/ not in baseUrl https://nextcloud.example.orgt/r
emote.php/webdav/Documents/Joplin Notes nor relativeBaseUrl /remote.php/webdav/Documents/Joplin Notes
Error: href /remote.php/webdav/Documents/Joplin%20Notes/ not in baseUrl
ents/Joplin Notes nor relativeBaseUrl /remote.php/webdav/Documents/Joplin Notes
    at FileApiDriverWebDav.hrefToRelativePath_ (/tmp/.mount_JoplinBUvKW3/app/resources/app/lib/file-api-driver-webdav.js
    at FileApiDriverWebDav.statsFromResources_ (/tmp/.mount_JoplinBUvKW3/app/resources/app/lib/file-api-driver-webdav.js
    at FileApiDriverWebDav.list (/tmp/.mount_JoplinBUvKW3/app/resources/app/lib/file-api-driver-webdav.js:274:22)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:109:7)"

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.


This comment has been minimized.


laurent22 commented Apr 30, 2018

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.

@laurent22 laurent22 added the bug label Apr 30, 2018

@laurent22 laurent22 closed this in 1ba3fae May 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment