Skip to content

Broken URL for OCS capability requests #2043

@ghostshadow

Description

@ghostshadow

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

  1. Nextcloud not hosted at root of (Nginx) webserver
  2. Trigger sync
  3. 404 Error

Debug log provided

  • I have provided a debug log file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions