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

Resolve the OpenPaaS ids with DAV #1504

Open
chibenwa opened this issue Feb 3, 2025 · 0 comments
Open

Resolve the OpenPaaS ids with DAV #1504

chibenwa opened this issue Feb 3, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@chibenwa
Copy link
Member

chibenwa commented Feb 3, 2025

Description of the bug

This way TMail will not depend on OpenPaaS and would be more compatible with DAV clients.

OUTCOME: Remove the OpenPaaS client & related code

How

curl -k -u '[email protected]:xxxxxxxxxxxxxxxxx' https://dav.linagora.com -X PROPFIND -d '<?xml version="1.0" encoding="UTF-8" ?><D:propfind xmlns:D="DAV:"><D:prop><D:displayname/><D:principal-collection-set/><D:current-user-principal/></D:prop></D:propfind>' | xmllint --format - 

<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav">
  <d:response>
    <d:href>/</d:href>
    <d:propstat>
      <d:prop>
        <d:principal-collection-set>
          <d:href>/principals/users/</d:href>
          <d:href>/principals/resources/</d:href>
          <d:href>/principals/domains/</d:href>
        </d:principal-collection-set>
        <d:current-user-principal>
          <d:href>/principals/users/5f50a663bdaffe002629099c/</d:href>
        </d:current-user-principal>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
    <d:propstat>
      <d:prop>
        <d:displayname/>
      </d:prop>
      <d:status>HTTP/1.1 404 Not Found</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/principals/</d:href>
    <d:propstat>
      <d:prop>
        <d:principal-collection-set>
          <d:href>/principals/users/</d:href>
          <d:href>/principals/resources/</d:href>
          <d:href>/principals/domains/</d:href>
        </d:principal-collection-set>
        <d:current-user-principal>
          <d:href>/principals/users/5f50a663bdaffe002629099c/</d:href>
        </d:current-user-principal>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
    <d:propstat>
      <d:prop>
        <d:displayname/>
      </d:prop>
      <d:status>HTTP/1.1 404 Not Found</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/calendars/</d:href>
    <d:propstat>
      <d:prop>
        <d:principal-collection-set>
          <d:href>/principals/users/</d:href>
          <d:href>/principals/resources/</d:href>
          <d:href>/principals/domains/</d:href>
        </d:principal-collection-set>
        <d:current-user-principal>
          <d:href>/principals/users/5f50a663bdaffe002629099c/</d:href>
        </d:current-user-principal>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
    <d:propstat>
      <d:prop>
        <d:displayname/>
      </d:prop>
      <d:status>HTTP/1.1 404 Not Found</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/addressbooks/</d:href>
    <d:propstat>
      <d:prop>
        <d:principal-collection-set>
          <d:href>/principals/users/</d:href>
          <d:href>/principals/resources/</d:href>
          <d:href>/principals/domains/</d:href>
        </d:principal-collection-set>
        <d:current-user-principal>
          <d:href>/principals/users/5f50a663bdaffe002629099c/</d:href>
        </d:current-user-principal>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
    <d:propstat>
      <d:prop>
        <d:displayname/>
      </d:prop>
      <d:status>HTTP/1.1 404 Not Found</d:status>
    </d:propstat>
  </d:response>
</d:multistatus>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants