Closed keenmouse closed 2 years ago
Has anyone attempted to reproduce this?
Can't reproduce
I've just tried it again and encountered the same issue. I'll lay out my procedure in precise detail. Maybe you can point to what I'm doing differently.
I've tried this on both a Hyper-V virtual machine and on an SSD Nodes VPS with a valid live domain.
su -
curl -sSL https://get.docker.com/ | CHANNEL=stable sh
systemctl enable --now docker
curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
cd /opt
git clone https://github.com/mailcow/mailcow-dockerized
cd mailcow-dockerized
./generate_config.sh
SKIP_LETS_ENCRYPT=y
docker-compose pull
docker-compose up -d
chrome.exe --guest
(also tested with other browsers with clean profiles)moohoo
)You not provided TZ maybe?
You not provided TZ maybe?
I don't know how it's possible not to. I did; I just didn't note it because I just accepted the suggestion because it was correct.
I reproduced on Fedora 35 on Firefox 96. Event dialog closes and forces a refresh.
Then you better create bug report directly in sogo bug tracker
Then you better create bug report directly in sogo bug tracker
I think at least a little investigation on the mailcow side is warranted, given that, as I mentioned in my initial post, the problem only occurs when mailcow authenticates the user via the Login to webmail button in mailcow. The problem does not occur when authenticating manually at /SOGo
.
I don't want to see mailcow and SOGo blaming each other and nothing getting done.
the problem only occurs when mailcow authenticates the user via the Login to webmail button in mailcow
Thanks for pointing that out. It does sound like it might be a Mailcow-specific issue then. I’ll see if I can reproduce it myself. In the meantime, could you please provide logs from only the sogo, nginx and phpfpm containers from precisely that point in time where the page refreshes?
Yep, I read about it and later honestly forget :). I could not get it reproduced.
Thank you for being so accepting and willing to help. You guys are awesome.
I've included logs for both failure (logging in via mailcow) and success (logging in manually to SOGo) in case comparing them might be useful.
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:32 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:32 -0700] "GET /SOGo/so/user1@example.com/Contacts/allContactSearch?search=user2 HTTP/2.0" 200 199 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | 172.22.1.8 - 27/Jan/2022:11:55:32 -0700 "GET /sogo-auth.php" 200
php-fpm-mailcow_1 | fd4d:6169:6c63:6f77::a - 27/Jan/2022:11:55:32 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:32 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:32 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:32 -0700] "GET /SOGo/so/user1@example.com/freebusy.ifb/ajaxRead?eday=20220202&sday=20220120 HTTP/2.0" 200 2 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:32 -0700] "GET /SOGo/so/user2@example.com/freebusy.ifb/ajaxRead?eday=20220202&sday=20220120 HTTP/2.0" 200 8625 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | 172.22.1.8 - 27/Jan/2022:11:55:33 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:33 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:33 -0700] "GET /SOGo/so/user1@example.com/Calendar/ HTTP/2.0" 302 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | fd4d:6169:6c63:6f77::a - 27/Jan/2022:11:55:33 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:33 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:33 -0700] "GET /SOGo/so/user1@example.com/Calendar/view HTTP/2.0" 200 19138 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:34 -0700] "GET /SOGo.woa/WebServerResources/css/theme-default.css?lm=1642770516 HTTP/2.0" 200 30551 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:34 -0700] "GET /SOGo.woa/WebServerResources/css/styles.css?lm=1642770516 HTTP/2.0" 200 68735 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | 172.22.1.8 - 27/Jan/2022:11:55:34 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:34 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | fd4d:6169:6c63:6f77::a - 27/Jan/2022:11:55:34 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:34 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:34 -0700] "GET /SOGo.woa/WebServerResources/img/sogo.ico?lm=1643228168 HTTP/2.0" 200 4915 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:34 -0700] "GET /SOGo/so/user1@example.com/Calendar/alarmslist?browserTime=1643309734 HTTP/2.0" 200 63 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | 172.22.1.8 - 27/Jan/2022:11:55:34 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:34 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:34 -0700] "GET /SOGo/so/user1@example.com/Calendar/eventsblocks?ed=20220130&sd=20220124&view=weekview HTTP/2.0" 200 323 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | fd4d:6169:6c63:6f77::a - 27/Jan/2022:11:55:34 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:34 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:34 -0700] "GET /SOGo/so/user1@example.com/Calendar/weekview?day=20220127 HTTP/2.0" 200 3677 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | 172.22.1.8 - 27/Jan/2022:11:55:34 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:34 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | fd4d:6169:6c63:6f77::a - 27/Jan/2022:11:55:34 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:55:34 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:34 -0700] "POST /SOGo/so/user1@example.com/Calendar/saveSelectedList HTTP/2.0" 204 0 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:34 -0700] "GET /SOGo/so/user1@example.com/Calendar/eventslist?asc=1&day=20220127&filterpopup=view_next7&search=title_Category_Location&sort=start&value= HTTP/2.0" 200 243 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:55:34 -0700] "POST /SOGo/so/user1@example.com/Mail/0/folderINBOX/changes HTTP/2.0" 200 20 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | fd4d:6169:6c63:6f77::a - 27/Jan/2022:11:59:07 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:59:07 -0700] "GET /sogo-auth HTTP/1.0" 200 655 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:59:07 -0700] "GET /SOGo/so/user1@example.com/Contacts/allContactSearch?search=user2 HTTP/2.0" 200 199 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | 172.22.1.8 - 27/Jan/2022:11:59:07 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:59:07 -0700] "GET /sogo-auth HTTP/1.0" 200 655 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
php-fpm-mailcow_1 | fd4d:6169:6c63:6f77::a - 27/Jan/2022:11:59:07 -0700 "GET /sogo-auth.php" 200
nginx-mailcow_1 | 127.0.0.1 - - [27/Jan/2022:11:59:07 -0700] "GET /sogo-auth HTTP/1.0" 200 655 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:59:07 -0700] "GET /SOGo/so/user1@example.com/freebusy.ifb/ajaxRead?eday=20220202&sday=20220120 HTTP/2.0" 200 2 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
nginx-mailcow_1 | 172.23.144.1 - - [27/Jan/2022:11:59:07 -0700] "GET /SOGo/so/user2@example.com/freebusy.ifb/ajaxRead?eday=20220202&sday=20220120 HTTP/2.0" 200 2 "https://172.23.159.69/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36"
I have been able to reproduce this and It is actually a Mailcow bug. It happens at the /SOGo/so/otheruser@example.com/freebusy.ifb/ajaxRead?eday=20220201&sday=20220119
request, which sogo-auth.php declines because it contains an email address different from the logged-in user (user@example.com). There are two more places where the bug can be triggered: go to calendars or contacts, click the plus button next to "Subscriptions" and try to search for another user. It will again reload the page. The requests here are /SOGo/so/otheruser@example.com/foldersSearch?type=contact
and /SOGo/so/otheruser@example.com/foldersSearch?type=calendar
. I will submit a pull request to fix this. Thanks for reporting, @keenmouse!
Hm, why I can't get it reproduced?
Edit: well, sorry, actually I also get it reproduced now. Will test PR tomorrow.
@mkuron, thank you so much!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Prior to placing the issue, please check following: (fill out each checkbox with an
X
once done)Summary
When inviting an attendee to a SOGo calendar event, having authenticated via the Mailcow web interface, the event dialog closes and the page refreshes. No event is created. The problem does not occur when authenticating directly via the SOGo login dialog.
Mailcow installed fresh today. Tested on an SSD Nodes 8GB/2 core VPS under both Debian 10 and Ubuntu 20.04. Also tested on a Hyper-V virtual machine.
Logs
Reproduction
On a fresh Mailcow installation on a fresh Debian or Ubuntu install:
System information
docker version
)docker-compose version
)Output of
git diff origin/master
(certs and keys are no longer in use):+myhostname = mailcow.grusendorf.lan
No firewall installed
DNS problems? Please run
docker exec -it $(docker ps -qf name=acme-mailcow) dig +short stackoverflow.com @172.22.1.254
: 151.101.193.69 151.101.1.69 151.101.129.69 151.101.65.69