android icon indicating copy to clipboard operation
android copied to clipboard

[BUG] Failure to use Mailbox.org webdav

Open Docga1835 opened this issue 2 months ago • 8 comments

Please agree to the following

Summary

I have tried adding a vault to my Webdav at mailbox.org but I always get a popup stating an error occurred. Sometimes it actually creates a vault file but when I subsequently try to "add an existing vault" I still get an error occured. I've tried going through local storage to my Davx5 mount... An error occurred. I tried adding the Webdav manually in Cryptomator... An error occurred. I use the url "https://dav.mailbox.org/servlet/webdav.infostore/" in Davx5 to add the webdav but cryptomator doesn't accept it. When trying just "https://dav.mailbox.org"... An error occurred. I tried disabling cache and still the same result.

System Setup

- Android: [Version shown in the settings of Android"]
- Cryptomator: [Version shown in the settings of Cryptomator]
- …

Cloud Type

No response

Steps to Reproduce

  1. Try webdav with mailbox.org
  2. An error occurred.

Expected Behavior

Work

Actual Behavior

Doesn't

Reproducibility

Always

Relevant Log Output


Anything else?

Logs sent to [email protected]

Docga1835 avatar Nov 03 '25 09:11 Docga1835

Can you please enable debug mode, reproduce the problem and send us the logs again? https://community.cryptomator.org/t/how-do-i-enable-debug-mode-on-android/66

SailReal avatar Nov 03 '25 11:11 SailReal

Can you please enable debug mode, reproduce the problem and send us the logs again? https://community.cryptomator.org/t/how-do-i-enable-debug-mode-on-android/66

I have enabled debug mode and resent the logs.

Docga1835 avatar Nov 03 '25 19:11 Docga1835

https://dav.mailbox.org seems to be the wrong URL as we get a http status code 405 while creating an folder which means we are not allowed to create folders there, see https://datatracker.ietf.org/doc/html/rfc4918#section-9.3.1

D	20251103142557.561	OkHttp	--> MKCOL https://dav.mailbox.org/Test2 http/1.1 (unknown length)
D	20251103142557.561	OkHttp	--> END MKCOL
I	20251103142557.580	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.VaultListActivity@d7fe932
V	20251103142557.580	FragmentLifecycle	onResume VaultListFragment{60aca5b} (b68e5f99-2dc9-4b94-9400-59f5e9c7c9ac id=0x7f0a011f)
D	20251103142557.581	GetVaultListUseCase	started 4b2dc085
D	20251103142557.581	ActivityLifecycle	onResumeFragments org.cryptomator.presentation.ui.activity.VaultListActivity@d7fe932
D	20251103142557.581	PresenterLifecycle	resume org.cryptomator.presentation.presenter.VaultListPresenter@c03db5c
D	20251103142557.581	GetVaultListUseCase	finished 4b2dc085
D	20251103142557.866	OkHttp	<-- 405  https://dav.mailbox.org/Test2 (304ms)
D	20251103142557.866	OkHttp	feature-policy: accelerometer 'none'; camera 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; usb 'none';
D	20251103142557.866	OkHttp	referrer-policy: no-referrer
D	20251103142557.866	OkHttp	strict-transport-security: max-age=15552000; includeSubDomains; preload;
D	20251103142557.866	OkHttp	x-content-type-options: nosniff
D	20251103142557.866	OkHttp	x-download-options: noopen
D	20251103142557.866	OkHttp	x-permitted-cross-domain-policies: none
D	20251103142557.866	OkHttp	x-robots-tag: noindex, nofollow
D	20251103142557.866	OkHttp	x-xss-protection: 1; mode=block
D	20251103142557.867	OkHttp	vary: Accept-Encoding
D	20251103142557.867	OkHttp	date: Mon, 03 Nov 2025 19:25:57 GMT
D	20251103142557.867	OkHttp	Cache-Control: max-age=0
D	20251103142557.867	OkHttp	<-- END HTTP

According to https://docs.cryptomator.org/misc/supported-cloud-services/#cloud-services-with-webdav-support, the URL should be https://dav.mailbox.org/servlet/webdav.infostore/ , can you try this one again with enabled debug mode and if it fails, please send us the log again.

SailReal avatar Nov 03 '25 20:11 SailReal

https://dav.mailbox.org seems to be the wrong URL as we get a http status code 405 while creating an folder which means we are not allowed to create folders there, see https://datatracker.ietf.org/doc/html/rfc4918#section-9.3.1

D	20251103142557.561	OkHttp	--> MKCOL https://dav.mailbox.org/Test2 http/1.1 (unknown length)
D	20251103142557.561	OkHttp	--> END MKCOL
I	20251103142557.580	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.VaultListActivity@d7fe932
V	20251103142557.580	FragmentLifecycle	onResume VaultListFragment{60aca5b} (b68e5f99-2dc9-4b94-9400-59f5e9c7c9ac id=0x7f0a011f)
D	20251103142557.581	GetVaultListUseCase	started 4b2dc085
D	20251103142557.581	ActivityLifecycle	onResumeFragments org.cryptomator.presentation.ui.activity.VaultListActivity@d7fe932
D	20251103142557.581	PresenterLifecycle	resume org.cryptomator.presentation.presenter.VaultListPresenter@c03db5c
D	20251103142557.581	GetVaultListUseCase	finished 4b2dc085
D	20251103142557.866	OkHttp	<-- 405  https://dav.mailbox.org/Test2 (304ms)
D	20251103142557.866	OkHttp	feature-policy: accelerometer 'none'; camera 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; usb 'none';
D	20251103142557.866	OkHttp	referrer-policy: no-referrer
D	20251103142557.866	OkHttp	strict-transport-security: max-age=15552000; includeSubDomains; preload;
D	20251103142557.866	OkHttp	x-content-type-options: nosniff
D	20251103142557.866	OkHttp	x-download-options: noopen
D	20251103142557.866	OkHttp	x-permitted-cross-domain-policies: none
D	20251103142557.866	OkHttp	x-robots-tag: noindex, nofollow
D	20251103142557.866	OkHttp	x-xss-protection: 1; mode=block
D	20251103142557.867	OkHttp	vary: Accept-Encoding
D	20251103142557.867	OkHttp	date: Mon, 03 Nov 2025 19:25:57 GMT
D	20251103142557.867	OkHttp	Cache-Control: max-age=0
D	20251103142557.867	OkHttp	<-- END HTTP

According to https://docs.cryptomator.org/misc/supported-cloud-services/#cloud-services-with-webdav-support, the URL should be https://dav.mailbox.org/servlet/webdav.infostore/ , can you try this one again with enabled debug mode and if it fails, please send us the log again.

Tried again... An error occurred. Logs sent again.

Docga1835 avatar Nov 03 '25 21:11 Docga1835

D	20251103165402.746	OkHttp	--> OPTIONS https://dav.mailbox.org/servlet/webdav.infostore http/1.1 (unknown length)
D	20251103165402.746	OkHttp	--> END OPTIONS
D	20251103165403.772	OkHttp	<-- 401  https://dav.mailbox.org/servlet/webdav.infostore (1025ms)
D	20251103165403.772	OkHttp	feature-policy: accelerometer 'none'; camera 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; usb 'none';
D	20251103165403.772	OkHttp	referrer-policy: no-referrer
D	20251103165403.772	OkHttp	strict-transport-security: max-age=15552000; includeSubDomains; preload;
D	20251103165403.772	OkHttp	x-content-type-options: nosniff
D	20251103165403.772	OkHttp	x-download-options: noopen
D	20251103165403.772	OkHttp	x-permitted-cross-domain-policies: none
D	20251103165403.772	OkHttp	x-robots-tag: noindex, nofollow
D	20251103165403.773	OkHttp	x-xss-protection: 1; mode=block
D	20251103165403.773	OkHttp	vary: Accept-Encoding
D	20251103165403.773	OkHttp	date: Mon, 03 Nov 2025 21:54:03 GMT
D	20251103165403.773	OkHttp	Cache-Control: max-age=0
D	20251103165403.773	OkHttp	<-- END HTTP
D	20251103165403.774	ConnectToWebDavUseCase	failed 4bb4de47
V	20251103165403.793	Progress	COMPLETED -1%
V	20251103165403.805	FragmentLifecycle	onPause WebDavAddOrChangeFragment{b271e4} (946ce957-9e3a-492e-b8fc-e95929250526 id=0x7f0a011f)
D	20251103165403.805	ActivityLifecycle	onPause org.cryptomator.presentation.ui.activity.WebDavAddOrChangeActivity@35e968f
D	20251103165403.805	PresenterLifecycle	pause org.cryptomator.presentation.presenter.WebDavAddOrChangePresenter@88b73c2
D	20251103165403.811	ActivityLifecycle	onCreate org.cryptomator.presentation.ui.activity.AuthenticateCloudActivity@ecbb2d3
D	20251103165403.814	ActivityLifecycle	onStart org.cryptomator.presentation.ui.activity.AuthenticateCloudActivity@ecbb2d3
I	20251103165403.815	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.AuthenticateCloudActivity@ecbb2d3
D	20251103165403.815	ActivityLifecycle	onResumeFragments org.cryptomator.presentation.ui.activity.AuthenticateCloudActivity@ecbb2d3
D	20251103165403.815	PresenterLifecycle	resume org.cryptomator.presentation.presenter.AuthenticateCloudPresenter@43e9a79
E	20251103165403.815	AuthicateCloudPrester	org.cryptomator.domain.exception.authentication.WrongCredentialsException: Authentication failed

Here https://dav.mailbox.org/servlet/webdav.infostore returns http status code 401 wich results in an "Authentication failed" message, are you sure the entered credentials are correct? Maybe you have enabled 2FA and entered the user password and not the app password?

SailReal avatar Nov 04 '25 11:11 SailReal

Here https://dav.mailbox.org/servlet/webdav.infostore returns http status code 401 wich results in an "Authentication failed" message, are you sure the entered credentials are correct? Maybe you have enabled 2FA and entered the user password and not the app password?

I am 100% positive it is correct after 100 tries. It is the same login I use when logging into mailbox via the browser and the same credentials I used with my email app and the same credentials I used with Davx5. So all these other methods work except Cryptomator.

Docga1835 avatar Nov 07 '25 02:11 Docga1835

I have now tried creating an app password... "WebDAV could not be authenticated". 2FA is not even activated I am ashamed to admit. Please fix. I am wasting time and money on an app that 8 years later still does not have Document Provider access.

Docga1835 avatar Nov 10 '25 03:11 Docga1835

@SailReal Wanted to add that Joplin syncs my notes just fine when going through the Document Provider from Davx5 to my mailbox webdav. Why can't Cryptomator do that too?

Docga1835 avatar Nov 13 '25 07:11 Docga1835