Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    UNSOLVED DAV support

    Monica
    4
    18
    90
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • yusf
      yusf last edited by yusf

      CardDAV Client Support #2738 is apparently in progress. 😋

      …if the self-hosted version is on feature parity with the commercial one. When reading the 🔔 changelog on my self-hosted instance they write of features I cannot find in mine. 🤔

      1 Reply Last reply Reply Quote 0
      • yusf
        yusf last edited by

        Oh, CardDAV server is already present, but it's only in the premium version. Cloudron seems to install the free version. 😞

        1 Reply Last reply Reply Quote 0
        • yusf
          yusf last edited by yusf

          Wrong again! Seems like DAV support was added in after the creation of the app package and ENABLE_DAV is not present in the .env file. Adding it should enable this mighty fine feature of a built-in DAV server.

          🔔 Requesting @nebulon or @girish for an update. Check out the latest env example file as there are some other new settings present as well.

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            @yusf I have updated it now. Can you tell me how well the dav support works?

            yusf 1 Reply Last reply Reply Quote 1
            • yusf
              yusf @girish last edited by yusf

              @girish Not so good. I get an http auth dropdown in Firefox and the server accepts my credentials (API key for password, not actual password) but throws a 404 after that.

              37b64bcc-d979-4a8f-b48e-dd06e65b75ff-bild.png

              I got the URLs from monica.domain.tld/settings/dav

              fbartels girish 2 Replies Last reply Reply Quote 0
              • girish
                girish Staff last edited by

                @yusf Does this doc help - https://github.com/monicahq/monica/blob/master/docs/user/carddav.md ?

                yusf 1 Reply Last reply Reply Quote 0
                • yusf
                  yusf @girish last edited by

                  @girish No. I'm doing exactly this but on macOS. I don't know if the fact that the API key is 953 charachters long affects the process, but it shouldn't.

                  1 Reply Last reply Reply Quote 0
                  • fbartels
                    fbartels App Dev @yusf last edited by

                    @yusf said in DAV support:

                    http auth dropdown in Firefox

                    Have you also tried an actual dav client?

                    yusf 1 Reply Last reply Reply Quote 0
                    • yusf
                      yusf @fbartels last edited by

                      @fbartels Yes of course, Contacts in macOS. 🙂

                      1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @yusf last edited by

                        @yusf said in DAV support:

                        I got the URLs from monica.domain.tld/settings/dav

                        Per the docs this should be monica.domain.tld/dav , I think.

                        yusf 1 Reply Last reply Reply Quote 0
                        • yusf
                          yusf @girish last edited by yusf

                          @girish Yes. What I mean is that the monica.domain.tld/settings/dav page provides the full DAV URL, which I've also tested.

                          The same page also states that the normal password can be used, which I can't even use for HTTP Auth in the browser.

                          This page also provides a link for a downloadable export of the contacts, https://monica.domain.tld/dav/addressbooks/user@domain.tld/contacts?export which also throws 404.

                          I've also tried connecting CalDAV with the same result as CardDAV.

                          1 Reply Last reply Reply Quote 0
                          • yusf
                            yusf last edited by

                            Now I've tried macOS, iOS and Thunderbird. They all fail 🤔

                            1 Reply Last reply Reply Quote 0
                            • nebulon
                              nebulon Staff last edited by

                              I can confirm that it does not work with evolution/thunderbird/davx
                              The logs show a PROPFIND /.well-known/caldav HTTP/1.1" 301 which seems to be correct, but then nothing happens further.

                              1 Reply Last reply Reply Quote 0
                              • nebulon
                                nebulon Staff last edited by

                                Actually the well-known just redirects to /dav/ which is correct, but at least in my case I can't get over the authentication issue then. Both username/password nor api token allow me to access the dav resources. Always get 401 status code.

                                1 Reply Last reply Reply Quote 0
                                • nebulon
                                  nebulon Staff last edited by

                                  I was able to get it working with using api tokens, however they are very long and evolution for example would not accept that as a password.

                                  I've created an upstream issue at https://github.com/monicahq/monica/issues/4295

                                  yusf 1 Reply Last reply Reply Quote 1
                                  • nebulon
                                    nebulon Staff last edited by

                                    So according to the upstream project, the api tokens are actually the only way to do so. The text in monica is just wrong by now.

                                    1 Reply Last reply Reply Quote 1
                                    • yusf
                                      yusf @nebulon last edited by

                                      @nebulon Thank you. Which client did you succeed with?

                                      On a sidenote my first post in this subject was technically regarding a DAV client feature in Monica meaning that it will be able to latch on to already existing contact databases such as one served from Radicale or SOGo. That seems like a better solution to me, but the feature is WIP still.

                                      girish 1 Reply Last reply Reply Quote 0
                                      • girish
                                        girish Staff @yusf last edited by

                                        @yusf said in DAV support:

                                        regarding a DAV client feature in Monica

                                        That does make is much more useful that having to put all contacts into Monica.

                                        1 Reply Last reply Reply Quote 1
                                        • First post
                                          Last post