laurent22 / joplin-nextcloud

Joplin Web API for Nextcloud
https://apps.nextcloud.com/apps/joplin
47 stars 8 forks source link

Unsupported WebDAV URL format #8

Open Riccardomirto opened 4 years ago

Riccardomirto commented 4 years ago

Hi, running nextcloud 18 on a hosted webserver, using Joplin on mac ios and android and love it - trying to share notes from mac I get error:

The Joplin Nextcloud App is either not installed or misconfigured. Please see the full error message below: Unsupported WebDAV URL format: https://www.mysite.ext/nextcloud/remote.php/dav/files/admin/Joplin_Notes

Joplin Sync config on mac is set to Nextcloud (not webdav) and saving reading notes work fine on all 3 devices.

Thanks

laurent22 commented 4 years ago

Joplin expects the URL to be .../remote.php/webdav/... but you have .../remote.php/dav/.... Did they change the URL format in Nextcloud 18?

Riccardomirto commented 4 years ago

I do not know, I installed nextcloud as a webapp from my hosting provider, was not a manual installation. The webdav link is what nextcloud gives me as predefined - I only added the joplin folder name at the end. notes sync works on all devices, only when I try to call API for note sharing I get error. not sure I can change it seems no options in nextcloud UI to do it

Riccardomirto commented 4 years ago

from V18.0.1 documentation image

nezuky commented 4 years ago

This is also an issue with the Nextcloud 17.0.3 Snap package, Nextcloud defaults to using remote.php/dav, not remote.php/webdav.

Joplin can sync if /dav is set, but then the Nextcloud app API will not work. Setting the link to /webdav allows the API to work, but Sync is now broken.

nezuky commented 4 years ago

I believe setting $s = explode('remote.php/webdav', $url); to $s = explode('remote.php/dav', $url); in public function pathFromWebDavUrl in SyncTargetModel.php would correct this issue.

Or have it look for both /webdav and /dav to not break working configurations.

Jeanoo commented 4 years ago

I use nextcloud 18 and I have remote.php/dav

JediBrooker commented 4 years ago

I'm also experiences the same problem. I tried editing SyncTargetModel.php but I still get the error.

openwrtledediy commented 4 years ago

same here, waiting for fix...

davidszp commented 4 years ago

Same problem. Syncing via WebDAV works fine but trying to share a note gives the above error message. Using Nextcloud 18.0.4

2bein commented 3 years ago

Is it going to be fixed? No pressure, I just love Nextcloud and discovered Joplin, only missing to share notes with my family... Does updating Nextcloud help (still on 18.x)?