
Contact time zone "Europe/Zurich" saved as "Europe/"
I just created a new contact, and set their time zone to "Europe/Zurich". After saving the contact, I exported the CardDAV address book in vCard format from "https://carddav.OMITTED/addressbooks/OMITTED/addressbook/?export", the time zone just shows up as "Europe/". So either the form data is being handled improperly by Thunderbird, or the CardDAV server is handling it improperly. I'll also file an issue with sabre/dav in case the problem is with them.
The server (run by a third party) is running sabre/dav 4.6.0:
❯ curl https://carddav.OMITTED < d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"> < s:sabredav-version>4.6.0</s:sabredav-version> < s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception> < s:message>No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured. Login was needed for privilege: {DAV:}read on </s:message> < /d:error>
Modified
Chosen solution
> Exactly where does Thunderbird come into this?
I created the contact in Thunderbird.
> I see you scattergunned your query https://github.com/sabre-io/dav/issues/1585 without undertaking an examination of the data presented at any point in the equation to determine a point of failure.
As I'm not in control of the server, nor have access to any of its logs, nor am an expert on Thunderbird, this is as far as I can go with the data I have. If you have any tips for debugging it would be great if you could share them.
> [snip investigation] > As you can see the timezone is as set in Thunderbird. TZ:Europe/Zurich in both instances
Thank you for investigating, but this is not going through the same code path. I'm adding a contact to a CardDAV server, not to local storage.
> I have tried to make the the original post readable by inserting a space after the leading <, but in essence it is some XML responding to a curl command line statement. It is telling you that you are not logged in to SABRE and therefore are not entitled to access privileged information. I can do nothing with it at all and I do not think it adds anything to the posting. Perhaps add it to your post on the SABRE
The point of that snippet was to show that the server version is indeed sabre/dav 4.6.0, as mentioned on the line above. I tried to use the universal triple backticks to delimit the console log, but that did not work with whichever format this website expects.
In any case, just 20 minutes after having reproduced this *three times* I can no longer reproduce 😢, so I guess I'll never know.
Read this answer in context 👍 0All Replies (3)
Oh yeah, this is Thunderbird 136.0 on Linux.
Exactly where does Thunderbird come into this?
I see you scattergunned your query https://github.com/sabre-io/dav/issues/1585 without undertaking an examination of the data presented at any point in the equation to determine a point of failure.
Your narrative is you exported the contact from an unnamed carddav server and after doing so the timezone shows as just Europe.
As I do not have this version 136, I created a contact in Thunderbird 128 and 138 that I do have installed. I gave them the Zurich time zone you specifically mentioned. Then I exported it to a VCF. What I got was
In version 128
BEGIN:VCARD VERSION:4.0 N:user;Linux;;; FN:user\, Linux TZ:Europe/Zurich UID:b8c2ad9e-2a74-4ac9-a74b-b60ac216ec06 END:VCARD
In version 138
BEGIN:VCARD VERSION:4.0 N:Dud;Ronny ;;; FN:Ronny Dud TZ:Europe/Zurich UID:d8d88ef1-6ead-4b03-8b03-b91a484b305d END:VCARD
As you can see the timezone is as set in Thunderbird. TZ:Europe/Zurich in both instances
I have tried to make the the original post readable by inserting a space after the leading <, but in essence it is some XML responding to a curl command line statement. It is telling you that you are not logged in to SABRE and therefore are not entitled to access privileged information. I can do nothing with it at all and I do not think it adds anything to the posting. Perhaps add it to your post on the SABRE
Modified
Chosen Solution
> Exactly where does Thunderbird come into this?
I created the contact in Thunderbird.
> I see you scattergunned your query https://github.com/sabre-io/dav/issues/1585 without undertaking an examination of the data presented at any point in the equation to determine a point of failure.
As I'm not in control of the server, nor have access to any of its logs, nor am an expert on Thunderbird, this is as far as I can go with the data I have. If you have any tips for debugging it would be great if you could share them.
> [snip investigation] > As you can see the timezone is as set in Thunderbird. TZ:Europe/Zurich in both instances
Thank you for investigating, but this is not going through the same code path. I'm adding a contact to a CardDAV server, not to local storage.
> I have tried to make the the original post readable by inserting a space after the leading <, but in essence it is some XML responding to a curl command line statement. It is telling you that you are not logged in to SABRE and therefore are not entitled to access privileged information. I can do nothing with it at all and I do not think it adds anything to the posting. Perhaps add it to your post on the SABRE
The point of that snippet was to show that the server version is indeed sabre/dav 4.6.0, as mentioned on the line above. I tried to use the universal triple backticks to delimit the console log, but that did not work with whichever format this website expects.
In any case, just 20 minutes after having reproduced this *three times* I can no longer reproduce 😢, so I guess I'll never know.