Closed ifinkelstein closed 6 months ago
@ifinkelstein wrote
After upgrading to OSX Sonoma, DavMail crashes as soon as it enters the O365Interactive authentication frame. I cannot progress to an authentiation screen in manual mode for some reason.
You refer to "manual mode", but O365Interactive is not O365Manual. If you haven't actually tried O365Manual mode, I recommend that you try that. O365Interactive creates an interactive browser window, while O365Manual uses a simple dialog box and is more likely to work. Make sure your properties file contains the following lines:
davmail.mode=O365Manual
davmail.oauth.persistToken=true
Thank you for the suggestion.
After changing these lines in my .davmail.properties
I can navigate to my institution's Duo 2FA screens. DavMail doesn't crash.
However, I get redirected to https://login.microsoftonline.com/login.srf
where I am prompted "Are you trying to sign in to Microsoft Office?"
Clicking "Continue" throws up Safari cannot open the page because the address is invalid.
dialog box.
I don't see a blank page with an authentication URL.
Update: I use the Outlook desktop client id. Not sure if this is part of the problem.
davmail.oauth.clientId=d3590ed6-52b3-4102-aeff-aad2292ab01c
davmail.oauth.redirectUri=urn:ietf:wg:oauth:2.0:oob
May be related to this discussion: https://sourceforge.net/p/davmail/discussion/644057/thread/a7061b73cb/
Any advice would be appreciated!
@ifinkelstein: I don't know. I have davmail.oauth.redirectUri=https://login.microsoftonline.com/common/oauth2/nativeclient
and a different clientId in my .davmail.properties
file.
What's your setting for davmail.url
?
Your issue might be related to issue #284 if your institution is using a different endpoint than outlook.office365.com/login.microsoftonline.com.
See also issue #248 for another case of Duo MFA apparently not working with O365Manual.
I tried the davmail.url
you mentioned above, but it doesn't work with the Outlook desktop client id.
The core issue, I think, is that DavMail crashes when opening an authentication window in Interactive mode in OS X Sonoma.
I tried the davmail.url you mentioned above, but it doesn't work with the Outlook desktop client id.
Huh? I didn't mention a davmail.url
value. I asked you what you had for your davmail.url
setting, and you didn't answer!
Did you mean davmail.oauth.redirectUri
? If so, I think you are correct. Is there no other clientId
you can use?
The core issue, I think, is that DavMail crashes when opening an authentication window in Interactive mode in OS X Sonoma.
And that sure seems like a problem with Java on Sonoma. Report to Oracle at https://bugreport.java.com/bugreport/ ?
If you are desperate for a more near-term workaround, I would try installing XQuartz and Docker and running DavMail in a Linux Docker container on your Mac using something like this Docker image: https://hub.docker.com/r/jberrenberg/davmail
Is there no other
clientId
you can use?
DavMail's default clientId is facd6cff-a294-4415-b59f-c5b01937d7bd
. Try that.
davmail.oauth.clientId=facd6cff-a294-4415-b59f-c5b01937d7bd
davmail.oauth.redirectUri=https://login.microsoftonline.com/common/oauth2/nativeclient
You may want to try to embed Azul JRE inside DavMail app, warning this is untested but similar approach is working fine on windows:
To get all features, run with latest Zulu JRE FX:
<key>LSEnvironment</key>
<dict>
<key>JAVA_HOME</key>
<string>Contents/Frameworks/zulu-jre-fx/Contents/Home</string>
<dict>
Please let me know it this is working so I can update documentation
Thank you everyone for trying to troubleshoot this issue. I ended up reinstalling Ventura 13.6.2 as a fresh re-install. Needed to do this for other reasons.
I also installed Oracle Java 8-391 targeting ARM64.
This solved all DavMail crashes. So maybe I had a corrupt Java?
Thank you again. Marking this closed
Thank you for this phenomenal project. I've been a happy DavMail/mbsync user for many years.
After upgrading to OSX Sonoma, DavMail crashes as soon as it enters the O365Interactive authentication frame. I cannot progress to an authentiation screen in manual mode for some reason. I can reproduce the crash in 6.xx and 5.5.xx.
I upgraded my Java to the latest version, but no luck. Importantly, DavMail was rock solid with the prior OS X release. This makes me think there is a problem between DavMail and OS X. DavMail log: