Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hub Vault: Not redirected to app after login while sharing a file #567

Open
2 tasks done
infeo opened this issue Jan 6, 2025 · 2 comments
Open
2 tasks done

Hub Vault: Not redirected to app after login while sharing a file #567

infeo opened this issue Jan 6, 2025 · 2 comments
Labels
misc:hub state:has-workaround There is a known workaround for the described problem type:bug Something isn't working

Comments

@infeo
Copy link
Member

infeo commented Jan 6, 2025

Please agree to the following

Summary

On unlocking a hub vault, the default browser opens to login to hub. After successful login, redirection back to the app fails. Teh default browser on the phone is Firefox Klar.

System Setup

- Android: 15 , Pixel 7, Build AP4A.241205.013
- Cryptomator: 1.10.4
- Firefox Klar: 133.0

Cloud Type

WebDAV

Steps to Reproduce

  1. Lock all Vaults and remove Cryptomator app from the "open app view"
  2. Open any application which can share files
  3. Share a file to the "closed" Cryptomator app
  4. Select the Hub vault
  5. Enter your credentials in the opened Browser view and tip "login"
  6. Firefox Klar asks, if you really wanna be redirected back to the app with a yes/no dialog
  7. Tip "yes"

Expected Behavior

Redirection back to app and can browse the vault

Actual Behavior

Redirection back to app. But instantly opens another browser window with a black screen. Closing the window, hub reports "auth failed".

Reproducibility

Always

Relevant Log Output

20250106104046.932	App	Cryptomator v1.10.4 (2971) "Google Play Edition" started on android 15 / API35 using a Pixel 7
I	20250106104046.957	Database	Configure v13
I	20250106104046.957	Database	Open v13
I	20250106104046.981	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.VaultListActivity@6da690f
I	20250106104047.022	App	Cryptors service connected
I	20250106104047.022	App	Cryptors service connected
I	20250106104047.023	App	Auto upload service connected
I	20250106104048.814	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.SettingsActivity@ef68ce8
I	20250106104059.788	Logging	Debug mode enabled
D	20250106104104.773	ActivityLifecycle	onPause org.cryptomator.presentation.ui.activity.SettingsActivity@ef68ce8
D	20250106104104.773	PresenterLifecycle	pause org.cryptomator.presentation.presenter.SettingsPresenter@f3d86bf
D	20250106104105.060	ActivityLifecycle	onStop org.cryptomator.presentation.ui.activity.SettingsActivity@ef68ce8
D	20250106104105.063	ActivityLifecycle	onSaveInstanceState org.cryptomator.presentation.ui.activity.SettingsActivity@ef68ce8
I	20250106104124.027	App	Cryptomator v1.10.4 (2971) "Google Play Edition" started on android 15 / API35 using a Pixel 7
D	20250106104124.027	App	appId org.cryptomator
D	20250106104124.047	ActivityLifecycle	onCreate org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
I	20250106104124.049	Database	Configure v13
I	20250106104124.049	Database	Open v13
D	20250106104124.057	Sharing	Received intent
D	20250106104124.058	Sharing	Received 1 ClipData.Items
I	20250106104124.058	SharedFile	Received 1 file
V	20250106104124.068	FragmentLifecycle	onCreate SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
V	20250106104124.068	FragmentLifecycle	onCreateView SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
V	20250106104124.070	FragmentLifecycle	onViewCreated SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
V	20250106104124.070	FragmentLifecycle	onActivityCreated SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
V	20250106104124.070	FragmentLifecycle	onStart SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
D	20250106104124.071	ActivityLifecycle	onStart org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104124.071	GetVaultListUseCase	started 3afd91d1
D	20250106104124.072	GetVaultListUseCase	finished 3afd91d1
I	20250106104124.079	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
V	20250106104124.080	FragmentLifecycle	onResume SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
D	20250106104124.080	ActivityLifecycle	onResumeFragments org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104124.080	GetVaultListUseCase	started 3afd91d2
D	20250106104124.080	PresenterLifecycle	resume org.cryptomator.presentation.presenter.SharedFilesPresenter@cf2433
D	20250106104124.080	GetVaultListUseCase	finished 3afd91d2
D	20250106104124.089	CryptorsService	created
D	20250106104124.093	AutoUploadService	created
I	20250106104124.146	App	Cryptors service connected
I	20250106104124.147	App	Cryptors service connected
I	20250106104124.148	App	Auto upload service connected
V	20250106104126.092	FragmentLifecycle	onPause SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
D	20250106104126.092	ActivityLifecycle	onPause org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104126.092	PresenterLifecycle	pause org.cryptomator.presentation.presenter.SharedFilesPresenter@cf2433
D	20250106104126.098	ActivityLifecycle	onCreate org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
V	20250106104126.099	FragmentLifecycle	onCreate UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
V	20250106104126.101	FragmentLifecycle	onCreateView UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
V	20250106104126.101	FragmentLifecycle	onViewCreated UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
V	20250106104126.101	FragmentLifecycle	onActivityCreated UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
V	20250106104126.101	FragmentLifecycle	onStart UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
D	20250106104126.101	ActivityLifecycle	onStart org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
D	20250106104126.101	GetUnverifiedVaultConfigUseCase	started 3afd99d2
I	20250106104126.103	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
V	20250106104126.103	FragmentLifecycle	onResume UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
D	20250106104126.103	ActivityLifecycle	onResumeFragments org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
D	20250106104126.103	PresenterLifecycle	resume org.cryptomator.presentation.presenter.UnlockVaultPresenter@7a8b67b
D	20250106104126.204	OkHttp	--> GET https://cloud.skymatic.de/remote.php/dav/files/armin.schrenk/Skymatic/Inbox/vault.cryptomator http/1.1 (unknown length)
D	20250106104126.205	OkHttp	--> END GET
D	20250106104127.119	OkHttp	<-- 200  https://cloud.skymatic.de/remote.php/dav/files/armin.schrenk/Skymatic/Inbox/vault.cryptomator (913ms)
D	20250106104127.121	OkHttp	content-disposition: attachment; filename*=UTF-8''vault.cryptomator; filename="vault.cryptomator"
D	20250106104127.121	OkHttp	last-modified: Tue, 16 Jan 2024 16:26:29 GMT
D	20250106104127.121	OkHttp	oc-etag: "b4107f725ab7f2ca6d48c0af32368fb6"
D	20250106104127.121	OkHttp	x-accel-buffering: no
D	20250106104127.121	OkHttp	x-debug-token: s6obOBwPUapY7nUcuJHU
D	20250106104127.121	OkHttp	x-request-id: s6obOBwPUapY7nUcuJHU
D	20250106104127.121	OkHttp	alt-svc: h3=":443"; ma=2592000
D	20250106104127.121	OkHttp	content-security-policy: default-src 'none';
D	20250106104127.121	OkHttp	date: Mon, 06 Jan 2025 09:41:26 GMT
D	20250106104127.121	OkHttp	etag: "b4107f725ab7f2ca6d48c0af32368fb6"
D	20250106104127.121	OkHttp	referrer-policy: no-referrer
D	20250106104127.121	OkHttp	server: Apache/2.4.62 (Debian)
D	20250106104127.121	OkHttp	strict-transport-security: max-age=63072000
D	20250106104127.121	OkHttp	vary: Accept-Encoding
D	20250106104127.121	OkHttp	x-content-type-options: nosniff
D	20250106104127.121	OkHttp	x-frame-options: SAMEORIGIN
D	20250106104127.121	OkHttp	x-permitted-cross-domain-policies: none
D	20250106104127.121	OkHttp	x-powered-by: PHP/8.2.27
D	20250106104127.121	OkHttp	x-robots-tag: noindex, nofollow
D	20250106104127.121	OkHttp	x-xss-protection: 1; mode=block
D	20250106104127.121	OkHttp	Cache-Control: max-age=0
D	20250106104127.121	OkHttp	<-- END HTTP
D	20250106104127.130	GetUnverifiedVaultConfigUseCase	finished 3afd99d2
V	20250106104127.177	Progress	UNKNOWN_MIMETYPE -1%
V	20250106104128.267	FragmentLifecycle	onPause UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
D	20250106104128.267	ActivityLifecycle	onPause org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
D	20250106104128.267	PresenterLifecycle	pause org.cryptomator.presentation.presenter.UnlockVaultPresenter@7a8b67b
V	20250106104128.416	FragmentLifecycle	onStop UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
D	20250106104128.416	ActivityLifecycle	onStop org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
D	20250106104128.417	ActivityLifecycle	onSaveInstanceState org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
V	20250106104128.418	FragmentLifecycle	onStop SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
D	20250106104128.418	ActivityLifecycle	onStop org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104128.419	ActivityLifecycle	onSaveInstanceState org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104147.153	ActivityLifecycle	onRestart org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
V	20250106104147.155	FragmentLifecycle	onStart UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
D	20250106104147.156	ActivityLifecycle	onStart org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
D	20250106104147.157	ActivityLifecycle	onRestart org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
V	20250106104147.158	FragmentLifecycle	onStart SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
D	20250106104147.159	ActivityLifecycle	onStart org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104147.226	ExceptionHandler	Unexpected error
org.cryptomator.domain.exception.hub.HubAuthenticationFailedException
	at org.cryptomator.presentation.presenter.UnlockVaultPresenter.hubAuthenticationUnlock(UnlockVaultPresenter.kt:209)
	at org.cryptomator.presentation.presenter.ActivityResultCallbacks$15.doCall(ActivityResultCallbacks.java:271)
	at org.cryptomator.presentation.presenter.ActivityResultCallbacks$15.doCall(ActivityResultCallbacks.java:266)
	at org.cryptomator.generator.BoundCallback.call(BoundCallback.java:33)
	at org.cryptomator.presentation.presenter.Presenter.dispatch(Presenter.kt:253)
	at org.cryptomator.presentation.presenter.Presenter.onActivityResult(Presenter.kt:287)
	at org.cryptomator.presentation.ui.activity.BaseActivity.onActivityResult(BaseActivity.kt:358)
	at android.app.Activity.onActivityResult(Activity.java:7511)
	at android.app.Activity.internalDispatchActivityResult(Activity.java:9396)
	at android.app.Activity.dispatchActivityResult(Activity.java:9373)
	at android.app.ActivityThread.deliverResults(ActivityThread.java:5948)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:5998)
	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:78)
	at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:63)
	at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
	at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2719)
	at android.os.Handler.dispatchMessage(Handler.java:109)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8787)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)

ErrorCode: SLGH:R0C1
D	20250106104147.227	ExceptionHandler	org.cryptomator.domain.exception.hub.HubAuthenticationFailedException
	at org.cryptomator.presentation.presenter.UnlockVaultPresenter.hubAuthenticationUnlock(UnlockVaultPresenter.kt:209)
	at org.cryptomator.presentation.presenter.ActivityResultCallbacks$15.doCall(ActivityResultCallbacks.java:271)
	at org.cryptomator.presentation.presenter.ActivityResultCallbacks$15.doCall(ActivityResultCallbacks.java:266)
	at org.cryptomator.generator.BoundCallback.call(BoundCallback.java:33)
	at org.cryptomator.presentation.presenter.Presenter.dispatch(Presenter.kt:253)
	at org.cryptomator.presentation.presenter.Presenter.onActivityResult(Presenter.kt:287)
	at org.cryptomator.presentation.ui.activity.BaseActivity.onActivityResult(BaseActivity.kt:358)
	at android.app.Activity.onActivityResult(Activity.java:7511)
	at android.app.Activity.internalDispatchActivityResult(Activity.java:9396)
	at android.app.Activity.dispatchActivityResult(Activity.java:9373)
	at android.app.ActivityThread.deliverResults(ActivityThread.java:5948)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:5998)
	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:78)
	at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:63)
	at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
	at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2719)
	at android.os.Handler.dispatchMessage(Handler.java:109)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8787)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)

ErrorCode: SLGH:R0C1
W	20250106104147.233	Message	Authentication against Hub failed
D	20250106104147.234	ActivityLifecycle	finish org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
I	20250106104147.269	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
V	20250106104147.269	FragmentLifecycle	onResume SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
D	20250106104147.270	ActivityLifecycle	onResumeFragments org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104147.270	GetVaultListUseCase	started 3afd91d3
D	20250106104147.270	PresenterLifecycle	resume org.cryptomator.presentation.presenter.SharedFilesPresenter@cf2433
D	20250106104147.270	GetVaultListUseCase	finished 3afd91d3
V	20250106104147.298	FragmentLifecycle	onStop UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
D	20250106104147.298	ActivityLifecycle	onStop org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
V	20250106104147.300	FragmentLifecycle	onDestroyView UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
V	20250106104147.300	FragmentLifecycle	onDestroy UnlockVaultFragment{d31be4d} (a5761b50-b88f-4684-ae1b-09600a34d995 id=0x7f0a0125 tag=UnlockVaultFragment)
D	20250106104147.301	ActivityLifecycle	onDestroy org.cryptomator.presentation.ui.activity.UnlockVaultActivity@1954a9e
D	20250106104147.301	PresenterLifecycle	destroy org.cryptomator.presentation.presenter.UnlockVaultPresenter@7a8b67b
V	20250106104152.485	FragmentLifecycle	onPause SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
D	20250106104152.486	ActivityLifecycle	onPause org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104152.486	PresenterLifecycle	pause org.cryptomator.presentation.presenter.SharedFilesPresenter@cf2433
V	20250106104152.490	FragmentLifecycle	onStop SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
D	20250106104152.490	ActivityLifecycle	onStop org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104152.491	ActivityLifecycle	onSaveInstanceState org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
V	20250106104152.497	FragmentLifecycle	onDestroyView SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
V	20250106104152.499	FragmentLifecycle	onDestroy SharedFilesFragment{d7fc732} (12838258-7a95-4347-b96a-68542ea25351 id=0x7f0a0125)
D	20250106104152.500	ActivityLifecycle	onDestroy org.cryptomator.presentation.ui.activity.SharedFilesActivity@21ce17
D	20250106104152.500	PresenterLifecycle	destroy org.cryptomator.presentation.presenter.SharedFilesPresenter@cf2433
I	20250106104212.335	App	Cryptomator v1.10.4 (2971) "Google Play Edition" started on android 15 / API35 using a Pixel 7
D	20250106104212.335	App	appId org.cryptomator
D	20250106104212.355	ActivityLifecycle	onCreate org.cryptomator.presentation.ui.activity.VaultListActivity@6da690f
I	20250106104212.357	Database	Configure v13
I	20250106104212.357	Database	Open v13
D	20250106104212.370	ListCBCEncryptedPasswordVaultsUseCase	started 3afe4e87
V	20250106104212.371	FragmentLifecycle	onCreate VaultListFragment{dee9d7} (f947230b-4ffa-41d0-9a29-34d3ff35fe42 id=0x7f0a0125)
V	20250106104212.371	FragmentLifecycle	onCreateView VaultListFragment{dee9d7} (f947230b-4ffa-41d0-9a29-34d3ff35fe42 id=0x7f0a0125)
D	20250106104212.371	ListCBCEncryptedPasswordVaultsUseCase	finished 3afe4e87
V	20250106104212.375	FragmentLifecycle	onViewCreated VaultListFragment{dee9d7} (f947230b-4ffa-41d0-9a29-34d3ff35fe42 id=0x7f0a0125)
V	20250106104212.375	FragmentLifecycle	onActivityCreated VaultListFragment{dee9d7} (f947230b-4ffa-41d0-9a29-34d3ff35fe42 id=0x7f0a0125)
V	20250106104212.375	FragmentLifecycle	onStart VaultListFragment{dee9d7} (f947230b-4ffa-41d0-9a29-34d3ff35fe42 id=0x7f0a0125)
D	20250106104212.376	ActivityLifecycle	onStart org.cryptomator.presentation.ui.activity.VaultListActivity@6da690f
I	20250106104212.381	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.VaultListActivity@6da690f
V	20250106104212.381	FragmentLifecycle	onResume VaultListFragment{dee9d7} (f947230b-4ffa-41d0-9a29-34d3ff35fe42 id=0x7f0a0125)
D	20250106104212.382	GetVaultListUseCase	started 3afe4e85
D	20250106104212.382	ActivityLifecycle	onResumeFragments org.cryptomator.presentation.ui.activity.VaultListActivity@6da690f
D	20250106104212.382	PresenterLifecycle	resume org.cryptomator.presentation.presenter.VaultListPresenter@2473caa
D	20250106104212.382	GetVaultListUseCase	finished 3afe4e85
D	20250106104212.389	CryptorsService	created
D	20250106104212.392	AutoUploadService	created
I	20250106104212.421	App	Cryptors service connected
I	20250106104212.422	App	Cryptors service connected
I	20250106104212.423	App	Auto upload service connected
D	20250106104212.441	GetVaultListUseCase	started 3afe4e86
D	20250106104212.442	GetVaultListUseCase	finished 3afe4e86
V	20250106104214.434	FragmentLifecycle	onPause VaultListFragment{dee9d7} (f947230b-4ffa-41d0-9a29-34d3ff35fe42 id=0x7f0a0125)
D	20250106104214.434	ActivityLifecycle	onPause org.cryptomator.presentation.ui.activity.VaultListActivity@6da690f
D	20250106104214.434	PresenterLifecycle	pause org.cryptomator.presentation.presenter.VaultListPresenter@2473caa
D	20250106104214.443	ActivityLifecycle	onCreate org.cryptomator.presentation.ui.activity.SettingsActivity@ef68ce8
D	20250106104214.454	ActivityLifecycle	onStart org.cryptomator.presentation.ui.activity.SettingsActivity@ef68ce8
I	20250106104214.456	ActivityLifecycle	onResume org.cryptomator.presentation.ui.activity.SettingsActivity@ef68ce8
D	20250106104214.456	ActivityLifecycle	onResumeFragments org.cryptomator.presentation.ui.activity.SettingsActivity@ef68ce8
D	20250106104214.456	PresenterLifecycle	resume org.cryptomator.presentation.presenter.SettingsPresenter@f3d86bf
V	20250106104214.924	FragmentLifecycle	onStop VaultListFragment{dee9d7} (f947230b-4ffa-41d0-9a29-34d3ff35fe42 id=0x7f0a0125)
D	20250106104214.924	ActivityLifecycle	onStop org.cryptomator.presentation.ui.activity.VaultListActivity@6da690f
D	20250106104214.926	ActivityLifecycle	onSaveInstanceState org.cryptomator.presentation.ui.activity.VaultListActivity@6da690f
V	20250106104217.896	Progress	UNKNOWN_MIMETYPE -1%

Anything else?

No response

@infeo infeo added the type:bug Something isn't working label Jan 6, 2025
@SailReal
Copy link
Member

SailReal commented Jan 6, 2025

Tried to reproduce this, I see this dialog but when I click Open, everything works using Firefox Klar on my device and emulator:
1. Do other apps redirect back, maybe this is disabled in your Firefox config (if possible)? You can test this using e.g. Nextcloud login.
2. If I use another browser, does it work?

@SailReal SailReal added state:awaiting-response We need further input from the issue author and removed state:awaiting-response We need further input from the issue author labels Jan 6, 2025
@SailReal SailReal changed the title Hub Vault: Not redirected to app after login Hub Vault: Not redirected to app after login while sharing a file Jan 6, 2025
@SailReal
Copy link
Member

It looks like this problem is related to openid/AppAuth-Android#977

Adding the workaround of openid/AppAuth-Android#977 (comment) together with this bug https://issuetracker.google.com/issues/288400064?pli=1 really makes things worse:

Screen_recording_20250114_160916.mp4

The only workaround for now is to unlock the vault before sharing files with a Cryptomator Hub vault. I'm not really sure how we really solve this issue but the mentioned workaround in AppAuth creates a nightmare for us.

Setting android:taskAffinity to the appropriate Activities does not change anything either.

@SailReal SailReal added the state:has-workaround There is a known workaround for the described problem label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
misc:hub state:has-workaround There is a known workaround for the described problem type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants