Skip to content
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

How to use with Nextcloud? #3

Open
doronbehar opened this issue Nov 20, 2022 · 2 comments
Open

How to use with Nextcloud? #3

doronbehar opened this issue Nov 20, 2022 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@doronbehar
Copy link

Hello :)

Thanks for writing and sharing this command line application. It looks promising!

I'm having trouble using it with Nextcloud, I'm getting 404 errors (admin is my nextcloud username):

When using https://nextcloud.doronbehar.com/remote.php/dav/ as the endpoint:

404 Not Found: <error xmlns="DAV:"><exception xmlns="http://sabredav.org/ns">Sabre\DAV\Exception\NotFound</exception><message xmlns="http://sabredav.org/ns">File not found: admin in &#39;principals&#39;</message></error>

When using https://nextcloud.doronbehar.com/remote.php/dav/addressbooks/users/admin/personal/ as the endpoint:

404 Not Found: <error xmlns="DAV:"><exception xmlns="http://sabredav.org/ns">Sabre\DAV\Exception\NotFound</exception><message xmlns="http://sabredav.org/ns">Card not found</message></error>

The last URL works with vdirsyncer.

@mrusme
Copy link
Owner

mrusme commented Nov 20, 2022

Thanks for reporting! Unfortunately I do not have access to a Nextcloud system and hence can't really tell what's going on there. However, what you should be able to do (depending on the server) is open the URL in your browser and see what it shows you. The solution that I'm using is also using SabreDAV as backend and when I open the /dav/ URL in my browser (and log in) I can navigate through the DAV tree.

However, one thing that might be causing an issue is the fact that currently addrb doesn't go through all your address books, but only the very first it can find. See here:

addrb/addrb.go

Line 128 in 785d726

vcs := cd.GetVcardsInAddressBook(paths[0])

It could be that your server is structured differently and hence this approach won't work. As said before, this solution works for me (TM) but I have never tested it on Nextcloud or any other backend. Feel free to further investigate and submit a PR if you happen to find a quickfix for the issue!

@mrusme mrusme added bug Something isn't working help wanted Extra attention is needed question Further information is requested labels Nov 20, 2022
@Junker
Copy link

Junker commented Dec 30, 2022

probably same problem: mrusme/caldr#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants