Skip to content

refactor(intent): simplify deep link and file intent handling - #17888

Open
alperozturk96 wants to merge 3 commits into
masterfrom
refactor/deep-link-file-intent-handling
Open

alperozturk96 wants to merge 3 commits into
masterfrom
refactor/deep-link-file-intent-handling

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Issue

  • Opening a file link from Talk (…/f/) showed "Associated account not found".
  • The link's server was compared with each account's saved server URL as an exact string, so letter case, a trailing /, /index.php, default ports or http vs https made it fail.

Android Common PR: nextcloud/android-common#1093

Android Talk PR: nextcloud/talk-android#6956

How to test?

  • Open account from Talk
  • Open same account in Files
  • Tap file link from Talk
  • It should open file in Files

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

@alperozturk96 alperozturk96 changed the title Refactor/deep link file intent handling refactor(intent): simplify deep link and file intent handling Oct 27, 2026
@alperozturk96 alperozturk96 linked an issue Oct 27, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

return true;
}

String userId = accountManager.getUserData(account, AccountUtils.Constants.KEY_USER_ID);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the key_user_id always the same like account.name?
I think this can be different.
Account can be tobias@mail.com@server.com
-> name tobias@mail.com
-> userId (internal userid from server) might then be tobias or ldap id.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KEY_USER_ID is not same like account.name always and this is right comparison. Otherwise it will fail like old code.

see, this only set via authenticator code:

Image

Old code should fail via LDAP for example. We are checking here file belongs this account or not that's all.

Comment thread gradle/libs.versions.toml

[versions]
androidCommonLibraryVersion = "0.34.0"
androidCommonLibraryVersion = "f6515c1c36"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: change after merging upstream?

@alperozturk96
alperozturk96 force-pushed the refactor/deep-link-file-intent-handling branch from 0b48676 to 873ad22 Compare October 28, 2026 08:11
@alperozturk96
alperozturk96 force-pushed the refactor/deep-link-file-intent-handling branch from 873ad22 to fe7f345 Compare October 28, 2026 12:14

@daniele-verducci daniele-verducci left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested like we did in call and it works. User id comparison make sense to me (based on what we have seen in the debugger)

@alperozturk96

Copy link
Copy Markdown
Collaborator Author

Tested like we did in call and it works. User id comparison make sense to me (based on what we have seen in the debugger)

nextcloud/android-common#1093

can i get review for common also :)

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
…t thus use is shared with me

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96
alperozturk96 force-pushed the refactor/deep-link-file-intent-handling branch from fe7f345 to 57a4594 Compare October 30, 2026 12:25
@github-actions

Copy link
Copy Markdown

test-Unit test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opening file links from talk -> error

3 participants