sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.42k stars 281 forks source link

cannot connect Baikal to Mozilla Thunderbird #1112

Open schel4ok opened 2 years ago

schel4ok commented 2 years ago

Baikal version: 0.9.2

Expected behaviour: Expected to see contacts and calendars in Mozilla Thunderbird

Current behaviour: Error

Steps to reproduce: I just install fresh Baikal. It is available on address http://dav.lan locally and http://dav.mysite.com. Then I try to connect it to Mozilla Thunderbird, but I cannot. I just copied URI of user's addressbok to Thunderbird and his password

image

It gives me error after checking credentials image

What is wrong?

nillebor commented 2 years ago

please test: http://dav.lan/dav.php User + Pass

schel4ok commented 2 years ago

same result image

nillebor commented 2 years ago

what is this error in english? yellow button

schel4ok commented 2 years ago

It says "Error during check"

nillebor commented 2 years ago

when you enter the url; http://dav.lan/dav.php in the browser (firefox,chrome) comes comes an input field? user & pass is right?

schel4ok commented 2 years ago

correct and after fill in user and pass I see page

Nodes addressbooks Collection
calendars Collection
principals Collection

nillebor commented 2 years ago

thunderbird should also work. i just tested it 2 times which version of thunderbird are you using? i'm on 91.9.0 release (portable)

schel4ok commented 2 years ago

Thunderbird 91.9.0 (64-bit) not portable. CardBook plugin 75.0

nillebor commented 2 years ago

same Cardbook plugin, but i use portable 32bit version windows, linux or apple?

tromlet commented 2 years ago

Very odd. I am NOT using CardBook, but I have connected Thunderbird 91.9.0 on Windows 10 and Windows Server 2019 Standard (all x64) to Baikal using the built-in Thunderbird CardDAV and CalDAV clients, as well as using TbSync addon with the Provider for CalDAV and CardDAV (for TbSync) addon.

I have also been using that SAME pair of addons (TbSync and its Provider for CalDAV and CardDAV) on Thunderbird 91.6.2 installed and running on Fedora 34. I also installed CardBook and tested it on this system, and it retrieved my contacts from our Baikal instance just fine. :|

Is it possible that the password is using some non-standard characters and is having trouble presenting that to Baikal?

rimeraz commented 2 years ago

same issue here:

Thunderbird 91.9.1 (64-bit) on Win 10 21H2 Cardbook 75.5

Baikal 0.9.2 (didn't work with 0.8.0 either), accessible via nginx and php7.4 FPM

Is it possible that the password is using some non-standard characters and is having trouble presenting that to Baikal?

Nothing exceptional. Letters, digits, exclamation mark ! and pound sign # Because of working access and having the passwords in a keepass DB, I'm 100% sure that my passwords are correct.

I have three accounts and it is not account related.

The only entry I see in the log for calendar access from Thunderbird / Lightning is:

myip - - [08/Jun/2022:08:08:33 +0200] "PROPFIND /cal.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 362 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1"

No second attempt or such.

A successful sync from Android appears in the logs as follows:

myip - myuser [08/Jun/2022:08:17:30 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 434 "-" "DAVx5/4.2.1-ose (2022/05/08; dav4jvm; okhttp/4.9.3) Android/12" myip - - [08/Jun/2022:08:17:30 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 207 1291 "-" "DAVx5/4.2.1-ose (2022/05/08; dav4jvm; okhttp/4.9.3) Android/12"

rimeraz commented 2 years ago

doesn't work with php 8.1 FPM either

rimeraz commented 2 years ago

I removed my calendars from Thunderbird and tried to add them again.

myip - - [08/Jun/2022:08:49:44 +0200] "HEAD /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:44 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:45 +0200] "GET /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:45 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:56 +0200] "HEAD /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:56 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:56 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 207 1413 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:57 +0200] "HEAD /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:57 +0200] "GET /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:57 +0200] "GET /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 200 83241 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:57 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:49:57 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 207 688 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:50:02 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:50:11 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 362 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:50:11 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 362 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:50:13 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 362 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:50:13 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 362 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:50:25 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 362 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1" myip - - [08/Jun/2022:08:50:25 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar/ HTTP/1.1" 401 362 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1"

There was a successful logon at 08/Jun/2022:08:49:57. Thunderbird showed me the calendar color. After that no authentication is possible anymore and TB continues to ask for the password although I entered it before and told it so save it.

This is really weird now.

Anywake commented 1 year ago

What is wrong?

@rimeraz @schel4ok

Hi! I had the same problem. Please, check your nginx configurations!

root section - path to html folder root /var/www/html

location section - php fpm fastcgi

location ~ ^(.+\.php)(.*)$ {

Enjoy!

image

The address book is synchronized in a standard way without plugins :)

tromlet commented 1 year ago

...did you, by any chance, check your firewall on the machine where Baikal lives?

rimeraz commented 1 year ago

@Anywake:

Hi! I had the same problem. Please, check your nginx configurations!

root section - path to html folder root /var/www/html

location section - php fpm fastcgi

location ~ ^(.+\.php)(.*)$ {

Looks like yours. For reference:

server {
    listen 443 ssl;
    listen [::]:443;
    root /var/www/vhost_mydomain.example/baikal/html;

    server_name mydomain.example;
    access_log /var/log/nginx/mydomain.example/ssl_access.log;
    error_log /var/log/nginx/mydomain.example/ssl_error.log;

    index index.html index.htm index.php;

    rewrite ^/.well-known/caldav /dav.php redirect;
    rewrite ^/.well-known/carddav /dav.php redirect;

    charset utf-8;

    location ~ /(\.ht|Core|Specific) {
        deny all;
        return 404;
    }

    ssl_certificate /etc/letsencrypt/live/mydomain.example/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/mydomain.example/privkey.pem;

    location ~ ^(.+\.php)(.*)$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
        fastcgi_split_path_info  ^(.+\.php)(.*)$;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  PATH_INFO        $fastcgi_path_info;
    }
}

As you can see i switched from PHP 7.4 to PHP 8.1 but to no avail.

The address book is synchronized in a standard way without plugins :)

@anywake: This might be true but Cardbook shows the contact pictures and the built-in addressbook does not. Thank you for the hint but the contacts are not the issue. The contacts are synced via the very same vhost as the calendar. TB is able to sync the contacts but not the calendar.

For completeness' sake I just tried successfully with built-in addressbook.

@tromlet:

...did you, by any chance, check your firewall on the machine where Baikal lives?

I'd be surprised if there was a firewall running. But I double-checked and there isn't.

Also a curl to the same endpoint will authenticate successfully but TB won't. This speaks against a firewall.

rimeraz commented 1 year ago

BTW, I tried again and documented the different stages of adding a calendar in the log:

These steps:

cause the following log entries:

myip - - [22/Jul/2022:23:16:40 +0200] "HEAD /dav.php/calendars/myuser/ HTTP/1.1" 401 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:40 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 401 427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:40 +0200] "GET /dav.php/calendars/myuser/ HTTP/1.1" 401 427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:40 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 401 427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"

Then I enter my (correct) password and the following log lines will appear together with the list of calendars including their colors in TB:

myip - - [22/Jul/2022:23:16:56 +0200] "HEAD /dav.php/calendars/myuser/ HTTP/1.1" 401 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:56 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 401 427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:56 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 207 1248 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:56 +0200] "HEAD /dav.php/calendars/myuser/ HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PROPFIND /dav.php/principals/myuser/ HTTP/1.1" 401 428 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "GET /dav.php/calendars/myuser/ HTTP/1.1" 401 427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PROPFIND /dav.php/principals/myuser/ HTTP/1.1" 207 532 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "GET /dav.php/calendars/myuser/ HTTP/1.1" 200 1575 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 401 427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 401 427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 207 5548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 207 608 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 401 427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PROPFIND /dav.php/calendars/myuser/ HTTP/1.1" 207 5487 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PUT /dav.php/calendars/myuser/ HTTP/1.1" 401 436 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:16:57 +0200] "PUT /dav.php/calendars/myuser/ HTTP/1.1" 412 369 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"

Now I press Subscribe and it will immediately ask me again for the passwords of each of the three calendars:

myip - - [22/Jul/2022:23:17:05 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar1/ HTTP/1.1" 401 432 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:17:05 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar2/ HTTP/1.1" 401 435 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"
myip - - [22/Jul/2022:23:17:05 +0200] "PROPFIND /dav.php/calendars/myuser/mycalendar3/ HTTP/1.1" 401 434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0"

Although this looks as if Thunderbird forgets the credentials immediately, I can assure you that they are 1. correct and 2. stored in Thunderbird password manager.

schel4ok commented 1 year ago

@Anywake

here is my original nginx config

server {

    server_name dav.lan baikal.lan dav.mydomain.ext baikal.mydomain.ext;
    root /var/www/baikal/html;
    index index.php;

    rewrite ^/.well-known/caldav /dav.php redirect;
    rewrite ^/.well-known/carddav /dav.php redirect;

    charset utf-8;

    include /etc/nginx/errors.conf;

    location ~ /(\.ht|Core|Specific|config) {
        deny all;
        return 404;
    }

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass php:9000; #php running in docker container on port 9000
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;
    }

}

I tried to change location ~ \.php$ { with location ~ ^(.+\.php)(.*)$ {, but it doesn't help. Anyway I got "error during check credentials".

Anywake commented 1 year ago

@rimeraz built-in address book - contact pictures is working. I haven't checked the calendar yet. But only Cardbook can fill in contacts normally.

image

@schel4ok @rimeraz

Here is my nginx config. Pay attention to fast_cgi - fastcgi_pass unix:/run/php/php8.1-fpm.sock;.

server {
        listen 80;
        server_name contacts.domain.int;
        root /home/webserver/contacts/www/html;
        charset utf-8;
        access_log   /home/webserver/contacts/access.log combined;
        error_log  /home/webserver/contacts/error.log error;
        index index.php;
        client_max_body_size 10m;
        location ~ \.(gif|jpg|png|ico|js|css|cur)$ {
                access_log off;
                etag on;
        }
        rewrite ^/.well-known/caldav /dav.php redirect;
        rewrite ^/.well-known/carddav /dav.php redirect;
        location ~ /(\.ht|Core|Specific|config) {
        deny all;
        return 404;
        }

        location ~ ^(.+\.php)(.*)$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_buffer_size 32k;
                fastcgi_buffers 4 32k;
                try_files $fastcgi_script_name =404;
                set $path_info $fastcgi_path_info;
                fastcgi_param PATH_INFO $path_info;
                fastcgi_index index.php;
                include fastcgi.conf;
                fastcgi_read_timeout 150;
                fastcgi_pass unix:/run/php/php8.1-fpm.sock;
        }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
    root   /usr/share/nginx/html;
    }
}
rimeraz commented 1 year ago

@Anywake I don't see significant changes in your config compared to mine. Especially you point out the fastcgi_pass config. This is identical.

Nevertheless I managed to solve it meanwhile - in Thunderbird, not in Baikal or nginx config. During my tests I noticed that a fresh TB profile on a Linux machine and one on second Windows did not show the observed behaviour. Even a second profile on the same Windows with the issues worked fine.

Subsequently I removed all calendar related configuration from my prefs.js and started TB again. Calendars are now working. Root cause seems to have been indeed located in Thunderbird. Apologies for suspecting Baikal.

Agendav however is still not able to log in. That issue is minor though. If somebody knows a useable web UI for calendars, that'd be highly appreciated.

Thank you very much for your support and suggestions here.

Zetalia commented 1 year ago

Hello @rimeraz hello @schel4ok

For completeness' sake I just tried successfully with built-in addressbook. What Os are you using? Do you mean the mac addressbook?

fiee commented 1 year ago

Since I upgraded my Baïkal installation to 0.9.2, I can’t add calendars to Thunderbird (102.3.3 on MacOS) any more. Existing ones keep working. No problems with Apple Calendar or DAVx5 on Android.

In the calendar tab I click + = New calendar, Network, enter user name and address (https://cal.fiee.de/dav.php/calendars/sabre/default)*, click on "search calendars" and get the eternal spinner, no password dialogue or whatever.

Adding address books works, though (default, not CardBook).

defulmere commented 5 months ago

This has to be a bug in Thunderbird because Thunderbird is refusing to follow the redirects, right?

For example, here's the log traffic from my Baikal test instance when attempting to add an account in Thunderbird. You can see the first request to /.well-known/caldav gets the 308 redirect, but it goes to / instead of /dav.php

NNN.NNN.NNN.NNN - - [05/Feb/2024:22:14:53 +0000] "PROPFIND /.well-known/caldav HTTP/1.1" 308 315 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Thunderbird/120.0"
NNN.NNN.NNN.NNN - - [05/Feb/2024:22:14:54 +0000] "PROPFIND / HTTP/1.1" 200 949 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Thunderbird/120.0"

By comparison, here are the logs from the same request, but made with curl. You can see that it redirects to /dav.php as expected.

NNN.NNN.NNN.NNN - - [05/Feb/2024:22:15:38 +0000] "PROPFIND /.well-known/caldav HTTP/1.1" 308 315 "-" "curl/7.29.0"
NNN.NNN.NNN.NNN - - [05/Feb/2024:22:15:38 +0000] "PROPFIND /dav.php HTTP/1.1" 401 403 "-" "curl/7.29.0"
NNN.NNN.NNN.NNN - - [05/Feb/2024:22:15:38 +0000] "PROPFIND /dav.php HTTP/1.1" 207 971 "-" "curl/7.29.0"

To support this further, here's a shot of Thunderbird devtools showing that it chokes on the 308:

image

Every indication is that Baikal is working as designed and that Thunderbird is clearly not following the redirect response from Baikal. Am I mistaken? Or is Baikal doing something wrong by using a 308?

p-a-s-c-a-l commented 1 month ago

Thunderbird 115.11.0 (64-Bit) Baikal 0.9.5 PHP 8.3.6

Same problem here. Thunderbird can't authenticate. Server Logs:

401 | PROPFIND /dav.php/calendars/pascal/default/ HTTP/1.0 mod_fcgid: stderr: user (name stripped-out) authentication failure for Baikal