Which version of floccus are you using?
5.7.0
How many bookmarks do you have, roughly?
300
Are you using other means to sync bookmarks in parallel to floccus?
No
Sync method
Nextcloud Bookmarks
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
Firefox 141.0.3 / Linux Desktop
Which version of Nextcloud Bookmarks are you using? (if relevant)
No response
Which version of Nextcloud? (if relevant)
No response
What kind of WebDAV server are you using? (if relevant)
Raw Nextcloud (not Docker) install behind Nginx in a multi service setup (nextcloud not at webserver root but subdirectory).
Describe the Bug
Floccus fails to sync with code 404. The debug log shows, this is happening for the capability request.
The apparent issue is a doubling up of slashes in the URL: https://***/nextcloud//ocs/v2.php/... instead of https://***/nextcloud/ocs/v2.php/....
The offending code is related to the concatenation of the base URL and the OCS relative URL, which inserts an extra slash. (
|
const url = this.normalizeServerURL(this.server.url) + relUrl |
in combination with
|
`/ocs/v2.php/cloud/capabilities?format=json`, |
)
Expected Behavior
Use correct URL => do not get an error.
To Reproduce
- Nextcloud not hosted at root of (Nginx) webserver
- Trigger sync
- 404 Error
Debug log provided
Which version of floccus are you using?
5.7.0
How many bookmarks do you have, roughly?
300
Are you using other means to sync bookmarks in parallel to floccus?
No
Sync method
Nextcloud Bookmarks
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
Firefox 141.0.3 / Linux Desktop
Which version of Nextcloud Bookmarks are you using? (if relevant)
No response
Which version of Nextcloud? (if relevant)
No response
What kind of WebDAV server are you using? (if relevant)
Raw Nextcloud (not Docker) install behind Nginx in a multi service setup (nextcloud not at webserver root but subdirectory).
Describe the Bug
Floccus fails to sync with code 404. The debug log shows, this is happening for the capability request.
The apparent issue is a doubling up of slashes in the URL:
https://***/nextcloud//ocs/v2.php/...instead ofhttps://***/nextcloud/ocs/v2.php/....The offending code is related to the concatenation of the base URL and the OCS relative URL, which inserts an extra slash. (
floccus/src/lib/adapters/NextcloudBookmarks.ts
Line 826 in d496afb
floccus/src/lib/adapters/NextcloudBookmarks.ts
Line 771 in d496afb
Expected Behavior
Use correct URL => do not get an error.
To Reproduce
Debug log provided