We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-05-13 17:26:13 +0200

[bug] 1.1.4.29: CardDav not working anymore (posteo.de)

Hi,

since the last update, CardDav synchronization isn't working anymore. I used the configuration discussed in this issue.

I've recreated the account after the update.

This is the journalctl output when manually triggering a sync:

 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] CardDav::fetchUserInformation:292 - void CardDav::fetchUserInformation() requesting principal urls for user 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] RequestGenerator::generateRequest:93 - generateRequest(): ""  QUrl( "https://MYUSERNAME@posteo.de/.well-known/carddav" )  "0" "PROPFIND" "<d:propfind xmlns:d="DAV:"><d:prop><d:current-user-principal /></d:prop></d:propfind>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] SignOn::IdentityImpl::getInfoReply:381 - identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, () ) ) ( "AuthMethods" ,  QVariant(QDBusArgument, ) ) ( "Caption" ,  QVariant(QString, "Jolla") ) ( "Id" ,  QVariant(uint, 23) ) ( "Owner" ,  QVariant(QStringList, () ) ) ( "Realms" ,  QVariant(QStringList, () ) ) ( "RefCount" ,  QVariant(int, 0) ) ( "StoreSecret" ,  QVariant(bool, true) ) ( "Type" ,  QVariant(int, 0) ) ( "UserName" ,  QVariant(QString, "MYUSERNAME") ) ( "UserNameSecret" ,  QVariant(bool, false) ) ( "Validated" ,  QVariant(bool, true) ) )  
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x207d8c0) 
Mai 13 16:07:59 Jolla carddav-client[2615]: [W] CardDav::userInformationResponse:342 - void CardDav::userInformationResponse() error: 202 ( 403 ) to request "https://posteo.de/.well-known/carddav" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<html><head>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<title>403 Forbidden</title>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "</head><body>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<h1>Forbidden</h1>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<p>You don't have permission to access /.well-known/carddav" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "on this server.</p>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "</body></html>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [C] CardDavClient::syncFinished:137 - CardDAV sync failed: 401 "" 

I've did some basic testing with curl to find out what's going on:

$ curl --request PROPFIND  --user username:password --header "Content-Type: text/xml" --header "Brief:t" --data "<d:propfind xmlns:d="DAV:"><d:prop><d:current-user-principal /></d:prop></d:propfind>" https://posteo.de/.well-known/carddav
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /.well-known/carddav
on this server.</p>
</body></html>


$ curl --request PROPFIND  --user username:password --header "Content-Type: text/xml" --header "Brief:t" --data "<d:propfind xmlns:d="DAV:"><d:prop><d:current-user-principal /></d:prop></d:propfind>" https://posteo.de:8843/.well-known/carddav
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://posteo.de:8843/addressbooks">here</a>.</p>
</body></html>

So my guess is, that the Jolla CardDav-client does not send the request to the correct port!?

I've configured the URL as "https://posteo.de:8843" as proposed in the issue linked above.

[bug] 1.1.4.29: CardDav not working anymore (posteo.de)(posteo.de) [workaround]

Hi,

since the last update, CardDav synchronization isn't working anymore. I used the configuration discussed in this issue.

I've recreated the account after the update.

This is the journalctl output when manually triggering a sync:

 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] CardDav::fetchUserInformation:292 - void CardDav::fetchUserInformation() requesting principal urls for user 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] RequestGenerator::generateRequest:93 - generateRequest(): ""  QUrl( "https://MYUSERNAME@posteo.de/.well-known/carddav" )  "0" "PROPFIND" "<d:propfind xmlns:d="DAV:"><d:prop><d:current-user-principal /></d:prop></d:propfind>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] SignOn::IdentityImpl::getInfoReply:381 - identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, () ) ) ( "AuthMethods" ,  QVariant(QDBusArgument, ) ) ( "Caption" ,  QVariant(QString, "Jolla") ) ( "Id" ,  QVariant(uint, 23) ) ( "Owner" ,  QVariant(QStringList, () ) ) ( "Realms" ,  QVariant(QStringList, () ) ) ( "RefCount" ,  QVariant(int, 0) ) ( "StoreSecret" ,  QVariant(bool, true) ) ( "Type" ,  QVariant(int, 0) ) ( "UserName" ,  QVariant(QString, "MYUSERNAME") ) ( "UserNameSecret" ,  QVariant(bool, false) ) ( "Validated" ,  QVariant(bool, true) ) )  
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x207d8c0) 
Mai 13 16:07:59 Jolla carddav-client[2615]: [W] CardDav::userInformationResponse:342 - void CardDav::userInformationResponse() error: 202 ( 403 ) to request "https://posteo.de/.well-known/carddav" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<html><head>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<title>403 Forbidden</title>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "</head><body>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<h1>Forbidden</h1>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "<p>You don't have permission to access /.well-known/carddav" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "on this server.</p>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [D] {anonymous}::debugDumpData:55 - "</body></html>" 
Mai 13 16:07:59 Jolla carddav-client[2615]: [C] CardDavClient::syncFinished:137 - CardDAV sync failed: 401 "" 

I've did some basic testing with curl to find out what's going on:

$ curl --request PROPFIND  --user username:password --header "Content-Type: text/xml" --header "Brief:t" --data "<d:propfind xmlns:d="DAV:"><d:prop><d:current-user-principal /></d:prop></d:propfind>" https://posteo.de/.well-known/carddav
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /.well-known/carddav
on this server.</p>
</body></html>


$ curl --request PROPFIND  --user username:password --header "Content-Type: text/xml" --header "Brief:t" --data "<d:propfind xmlns:d="DAV:"><d:prop><d:current-user-principal /></d:prop></d:propfind>" https://posteo.de:8843/.well-known/carddav
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://posteo.de:8843/addressbooks">here</a>.</p>
</body></html>

So my guess is, that the Jolla CardDav-client does not send the request to the correct port!?

I've configured the URL as "https://posteo.de:8843" as proposed in the issue linked above.