Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic Aurora

 AfterLogic Forum : AfterLogic Aurora
Subject Topic: DAV does not work anymore Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 09 July 2025 at 12:39pm | IP Logged Quote solkmaaker

After upgrading 9.8.0 ->9.8.2
Dav just does not work any more.

Code:
[17:09:22.67][57b3eb8c] [GET][ip:XX.XX.XX.XX] /addressbooks/b283ebd8-a71f-46de-8ece-6b09f34d695e/
[17:09:22.67][57b3eb8c] POST > []
[17:09:22.67][57b3eb8c]
[17:09:22.67][57b3eb8c] Exception: Aurora\System\Exceptions\ApiException: ApiException in /var/www/aurora/modules/TwoFactorAuth/Module.php:1200
Stack trace:
#0 /var/www/aurora/system/EventEmitter.php(178): Aurora\Modules\TwoFactorAuth\Module->onAfterSetAuthDataAndGetAuthToken()
#1 /var/www/aurora/system/Module/Manager.php(753): Aurora\System\EventEmitter->emit()
#2 /var/www/aurora/system/Module/AbstractModule.php(499): Aurora\System\Module\Manager->broadcastEvent()
#3 /var/www/aurora/system/Module/AbstractModule.php(896): Aurora\System\Module\AbstractModule->broadcastEvent()
#4 /var/www/aurora/system/Module/Decorator.php(45): Aurora\System\Module\AbstractModule->CallMethod()
#5 /var/www/aurora/modules/Core/Module.php(2089): Aurora\System\Module\Decorator->__call()
#6 [internal function]: Aurora\Modules\Core\Module->Login()
#7 /var/www/aurora/system/Module/AbstractModule.php(858): call_user_func_array()
#8 /var/www/aurora/system/Module/Decorator.php(45): Aurora\System\Module\AbstractModule->CallMethod()
#9 /var/www/aurora/modules/Dav/Module.php(631): Aurora\System\Module\Decorator->__call()
#10 [internal function]: Aurora\Modules\Dav\Module->Login()
#11 /var/www/aurora/system/Module/AbstractModule.php(858): call_user_func_array()
#12 /var/www/aurora/system/Module/Decorator.php(45): Aurora\System\Module\AbstractModule->CallMethod()
#13 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Auth/Backend.php(27): Aurora\System\Module\Decorator->__call()
#14 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Auth/Backend/Basic.php(29): Afterlogic\DAV\Auth\Backend::Login()
#15 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php(103): Afterlogic\DAV\Auth\Backend\Basic->validateUserPass()
#16 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Plugin.php(179): Sabre\DAV\Auth\Backend\AbstractBasic->check()
#17 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Plugin.php(135): Sabre\DAV\Auth\Plugin->check()
#18 /var/www/aurora/vendor/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\Auth\Plugin->beforeMethod()
#19 /var/www/aurora/vendor/sabre/dav/lib/DAV/Server.php(456): Sabre\DAV\Server->emit()
#20 /var/www/aurora/vendor/sabre/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->invokeMethod()
#21 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->start()
#22 /var/www/aurora/system/dav/server.php(30): Afterlogic\DAV\Server->exec()
#23 /var/www/aurora/dav.php(19): include('/var/www/aurora...')
#24 {main}

Next Aurora\System\Exceptions\ApiException: ApiException in /var/www/aurora/system/Module/AbstractModule.php:910
Stack trace:
#0 /var/www/aurora/system/Module/Decorator.php(45): Aurora\System\Module\AbstractModule->CallMethod()
#1 /var/www/aurora/modules/Core/Module.php(2089): Aurora\System\Module\Decorator->__call()
#2 [internal function]: Aurora\Modules\Core\Module->Login()
#3 /var/www/aurora/system/Module/AbstractModule.php(858): call_user_func_array()
#4 /var/www/aurora/system/Module/Decorator.php(45): Aurora\System\Module\AbstractModule->CallMethod()
#5 /var/www/aurora/modules/Dav/Module.php(631): Aurora\System\Module\Decorator->__call()
#6 [internal function]: Aurora\Modules\Dav\Module->Login()
#7 /var/www/aurora/system/Module/AbstractModule.php(858): call_user_func_array()
#8 /var/www/aurora/system/Module/Decorator.php(45): Aurora\System\Module\AbstractModule->CallMethod()
#9 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Auth/Backend.php(27): Aurora\System\Module\Decorator->__call()
#10 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Auth/Backend/Basic.php(29): Afterlogic\DAV\Auth\Backend::Login()
#11 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php(103): Afterlogic\DAV\Auth\Backend\Basic->validateUserPass()
#12 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Plugin.php(179): Sabre\DAV\Auth\Backend\AbstractBasic->check()
#13 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Plugin.php(135): Sabre\DAV\Auth\Plugin->check()
#14 /var/www/aurora/vendor/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\Auth\Plugin->beforeMethod()
#15 /var/www/aurora/vendor/sabre/dav/lib/DAV/Server.php(456): Sabre\DAV\Server->emit()
#16 /var/www/aurora/vendor/sabre/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->invokeMethod()
#17 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->start()
#18 /var/www/aurora/system/dav/server.php(30): Afterlogic\DAV\Server->exec()
#19 /var/www/aurora/dav.php(19): include('/var/www/aurora...')
#20 {main}

Next Aurora\System\Exceptions\ApiException: ApiException in /var/www/aurora/system/Module/AbstractModule.php:910
Stack trace:
#0 /var/www/aurora/system/Module/Decorator.php(45): Aurora\System\Module\AbstractModule->CallMethod()
#1 /var/www/aurora/modules/Dav/Module.php(631): Aurora\System\Module\Decorator->__call()
#2 [internal function]: Aurora\Modules\Dav\Module->Login()
#3 /var/www/aurora/system/Module/AbstractModule.php(858): call_user_func_array()
#4 /var/www/aurora/system/Module/Decorator.php(45): Aurora\System\Module\AbstractModule->CallMethod()
#5 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Auth/Backend.php(27): Aurora\System\Module\Decorator->__call()
#6 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Auth/Backend/Basic.php(29): Afterlogic\DAV\Auth\Backend::Login()
#7 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php(103): Afterlogic\DAV\Auth\Backend\Basic->validateUserPass()
#8 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Plugin.php(179): Sabre\DAV\Auth\Backend\AbstractBasic->check()
#9 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Plugin.php(135): Sabre\DAV\Auth\Plugin->check()
#10 /var/www/aurora/vendor/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\Auth\Plugin->beforeMethod()
#11 /var/www/aurora/vendor/sabre/dav/lib/DAV/Server.php(456): Sabre\DAV\Server->emit()
#12 /var/www/aurora/vendor/sabre/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->invokeMethod()
#13 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->start()
#14 /var/www/aurora/system/dav/server.php(30): Afterlogic\DAV\Server->exec()
#15 /var/www/aurora/dav.php(19): include('/var/www/aurora...')
#16 {main}

Next Aurora\System\Exceptions\ApiException: ApiException in /var/www/aurora/system/Module/AbstractModule.php:910
Stack trace:
#0 /var/www/aurora/system/Module/Decorator.php(45): Aurora\System\Module\AbstractModule->CallMethod()
#1 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Auth/Backend.php(27): Aurora\System\Module\Decorator->__call()
#2 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Auth/Backend/Basic.php(29): Afterlogic\DAV\Auth\Backend::Login()
#3 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php(103): Afterlogic\DAV\Auth\Backend\Basic->validateUserPass()
#4 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Plugin.php(179): Sabre\DAV\Auth\Backend\AbstractBasic->check()
#5 /var/www/aurora/vendor/sabre/dav/lib/DAV/Auth/Plugin.php(135): Sabre\DAV\Auth\Plugin->check()
#6 /var/www/aurora/vendor/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\Auth\Plugin->beforeMethod()
#7 /var/www/aurora/vendor/sabre/dav/lib/DAV/Server.php(456): Sabre\DAV\Server->emit()
#8 /var/www/aurora/vendor/sabre/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->invokeMethod()
#9 /var/www/aurora/vendor/afterlogic/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->start()
#10 /var/www/aurora/system/dav/server.php(30): Afterlogic\DAV\Server->exec()
#11 /var/www/aurora/dav.php(19): include('/var/www/aurora...')
#12 {main}, Code: 102, Message: ApiException


Same happens with upgrade 9.8.0 -> 9.8.1
Code:
[19:29:13.64][33210169] Exception: Aurora\System\Exceptions\ApiException: ApiException in /var/www/modules/TwoFactorAuth/Module.php:1201


(Logs are from two separate servers)

If i disable TwoFactorAuth then DAV works again.
If i enable TwoFactorAuth module, then it does not, and it does not matter if i set Skip2FA true or false in Dav.config.

If i downgrade to 9.8.0, dav starts to work correctly again.

Tested also with clean install (without adding modules, etc), result was same - dav does not work.
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6187
Posted: 09 July 2025 at 11:14pm | IP Logged Quote Igor

Got it, will have this looked into.

Quote:
it does not matter if i set Skip2FA true or false in Dav.config.


Is there any difference in the logs in these two situations?

--
Regards,
Igor, Afterlogic
Back to Top View Igor's Profile Search for other posts by Igor
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 09 July 2025 at 11:34pm | IP Logged Quote solkmaaker

Hello Igor

Only difference is line number between versions.
If i set Skip2FA true or false, it does not matter and logs are same in both situations.

Two lines (1199 and 1200) that came with commit 663c79d in aurora-module-two-factor-auth Module.php file are the ones that produce this behavior.
Code:

} else {
                throw new \Aurora\System\Exceptions\ApiException(\Aurora\System\Notifications::AuthError);

Those lines were not there in 9.8.0
If i comment them out (both 9.8.1 and 9.8.2 versions), dav works ok - user authenticates correctly, gets his contacts and calendars correctly, and there is no errors in logs.

I tested also (with those two lines commented out) with 9.8.2 a behaviour where user has 2FA set up (worked OK) and user uses dav, and it worked also ok.
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6187
Posted: 09 July 2025 at 11:53pm | IP Logged Quote Igor

Got it, forwarding the info to the developers. And just to doublecheck, with 2FA disabled, everything works fine, correct?

--
Regards,
Igor, Afterlogic
Back to Top View Igor's Profile Search for other posts by Igor
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 10 July 2025 at 12:04am | IP Logged Quote solkmaaker

Confused a bit here.
"2FA disabled"? As module (globally) or as function by user?

It does not matter if user has 2FA enabled or disabled (if that is what you mean).
Behaviour is still same - dav does not work.

But if 2FA module is disabled, then dav works OK.
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6187
Posted: 10 July 2025 at 12:08am | IP Logged Quote Igor

Ohh I see. Strangely enough, I'm unable to reproduce such an issue, everything works locally as well as on my test server, and "Skip2FA" works as intended as well. I hope developers will be able to offer some ideas.

--
Regards,
Igor, Afterlogic
Back to Top View Igor's Profile Search for other posts by Igor
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 10 July 2025 at 12:16am | IP Logged Quote solkmaaker

Yes, i know. i connected yesterday to afterlogic aurora demo server with dav, and calendars worked OK there.

Can you ask developers: in what condition this last error is executed?
Maybe some module or user settings can cause this in certain configuration.

In meantime, i'll install clean version with new and clean DB and unmodified module configs to our test server and see what happens.
So fas i have tested with my module configs and DB.
I'l let you know how it goes.
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6187
Posted: 10 July 2025 at 12:31am | IP Logged Quote Igor

I think I've found something. This seems to be caused by "AllowUsedDevices" set to true - in such a case, I'm unable to log into DAV indeed, even if the particular user has 2FA disabled.

--
Regards,
Igor, Afterlogic
Back to Top View Igor's Profile Search for other posts by Igor
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 10 July 2025 at 12:37am | IP Logged Quote solkmaaker

You are right.
I had "AllowUsedDevices" enabled, and disabling it makes dav work again.
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 16 April 2026 at 5:07am | IP Logged Quote solkmaaker

This issue is not fixed in latest version 9.8.4
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 01 September 2026 at 12:01pm | IP Logged Quote solkmaaker

v9.8.6
This bug is now a bit different.
(Havent tested DAV yet.)
If AllowUsedDevices is enabled and you log in to desktop version of webmail with device that has small screen, and you click mobile version you get errors.


Those numbers grow very rapidly.


If AllowUsedDevices is false OR those two lines
Code:
} else {
                throw new \Aurora\System\Exceptions\ApiException(\Aurora\System\Notifications::AuthError);

are commented out everything works as expected.


Also, there seems to be problem with logout button on new mobile version.
It just does not work, tested this on aurora demo too, same result, click how many times you want - nothing happens

In my test env i also got same errors if AllowUsedDevices was enabled and those two lines commented out.
Log said: Exception: Aurora\System\Exceptions\ApiException: ApiException in /var/www/modules/TwoFactorAuth/Module.php:1243
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6187
Posted: 03 September 2026 at 6:44am | IP Logged Quote Igor

Hello,

To correct the errors on mobile version, you need to use "Delete browsing data" option of your browser and remove the data related to the website; after that, it all should work.

As for the logout not working, could you please confirm that you performed the migration of database tables with:

Code:
./system/bin/console migrate


or by running "Update tables" in adminpanel? Thanks!

--
Regards,
Igor, Afterlogic
Back to Top View Igor's Profile Search for other posts by Igor
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 03 September 2026 at 7:21am | IP Logged Quote solkmaaker

For the second part: yes, i did run update tables and update configutation before logging in and testing.
Further more: it also happened with afterlogic aurora demo.
I'll try to make a video.

Oh, and another thing, update was from v9.8.4 to v9.8.6
And after update, i was unable to log in (both, as user and as admin from adminpanel). Logs then complained about missing table.
I had to disable 2FA plugin in order to log in to adminpanel and update tables, which created missing table and then, when i enabled 2FA plugin, i was able to log in again.
So it seems that requierment for missing table creates a situation where you cannot log in as admin to create that missing table.

As for "Delete browsing data", i'll test that and let you know.
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 03 September 2026 at 9:52am | IP Logged Quote solkmaaker

I did "Delete browsing data" and behavior changed.
Maybe this flow gives you a clue.

If i log in from mobile version, everything work as it should all the time, i can log out and log in as many times as i want.
If i log in from mobile version and switch to desktop version and back to mobile version, again, everything works it should.
But, if i log in from desktop version and switch then to mobile version with /?mobile then log out no longer works in mobile version.
After that, if i log on from mobile version, everything works again.
So it seems that it mattesrs from which UI i log in.
Between those steps, browsing data was not deleted.

I cannot reproduce this in aurora demo, so maybe it has to do with some plugin setting or something.
I tried to disable 2FA and securitysettings module, but that did not change behavior.
Also, somehow, when 2Fa module was enabled, i did not see that in my test, but in afterlogic aurora test, it was there in mobile version.
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
vasil
AfterLogic Support
AfterLogic Support


Joined: 13 March 2009
Online Status: Offline
Posts: 2
Posted: 04 September 2026 at 7:23am | IP Logged Quote vasil

Hello,

Let's put the issues you encountered in order.

Is the initial problem with accessing Aurora via DAV resolved now?

If so, as I understand it, there are two remaining issues:

many error notifications and inability to log out from the mobile UI;
inability to log in as an admin after upgrading the system from 9.8.4 to 9.8.6.

Is that correct?

Also, could you please check the exact Aurora version in the VERSION file? It should be 9.8.6.build9.

If the build number is different, please download the build again and update the installation to the latest build.

Thank you.
Back to Top View vasil's Profile Search for other posts by vasil
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 04 September 2026 at 8:08am | IP Logged Quote solkmaaker

I see that things have changed.
My downloaded package has version 9.8.6.build7 it is from 27 August.
I'll re-download newer package and test again.
I'll let you know how it goes.
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 201
Posted: 04 September 2026 at 8:58am | IP Logged Quote solkmaaker

Downloaded package again and now it has version 9.8.6.build9-build-o3
DAV problem is gone. Calendars and contacts work OK.
Mobile UI logot problem is gone, it will log out and back in again without any problems.
But, there are some issues.
I'll create new thread for them.
Back to Top View solkmaaker's Profile Search for other posts by solkmaaker
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide