Skip to content

[BUG] Deep links over shared files (oCIS) #4250

Open

Description

@jesmrec

Comes from #4212 (comment)

Deep links over shared files are not implemented. It's causing a crash:

                                                                                                    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.owncloud.android/com.owncloud.android.ui.activity.FileDisplayActivity}: java.net.URISyntaxException: Illegal character in path at index 227: owncloud://ocis.ocis-wopi.latest.owncloud.works/f/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668%2142117dc5-c175-49a3-a683-4827bd3fe444:4374bf79-85db-4821-948e-4ca06a32726b:db2f83b4-0c8f-4c2e-8539-7b2
                                                                                                    11458f7d6
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
                                                                                                    	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
                                                                                                    	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loop(Looper.java:223)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:7656)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
                                                                                                    Caused by: java.net.URISyntaxException: Illegal character in path at index 227: owncloud://ocis.ocis-wopi.latest.owncloud.works/f/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668%2142117dc5-c175-49a3-a683-4827bd3fe444:4374bf79-85db-4821-948e-4ca06a32726b:db2f83b4-0c8f-4c2e-8539-7b2
                                                                                                    11458f7d6
                                                                                                    	at java.net.URI$Parser.fail(URI.java:2893)
                                                                                                    	at java.net.URI$Parser.checkChars(URI.java:3066)
                                                                                                    	at java.net.URI$Parser.parseHierarchical(URI.java:3150)
                                                                                                    	at java.net.URI$Parser.parse(URI.java:3098)
                                                                                                    	at java.net.URI.<init>(URI.java:584)
                                                                                                    	at com.owncloud.android.presentation.files.operations.FileOperationsViewModel.handleDeepLink(FileOperationsViewModel.kt:145)
                                                                                                    	at com.owncloud.android.ui.activity.FileDisplayActivity.handleDeepLink(FileDisplayActivity.kt:1777)
                                                                                                    	at com.owncloud.android.ui.activity.FileDisplayActivity.onCreate(FileDisplayActivity.kt:193)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8000)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:7984)
                                                                                                    	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)

apart of avoiding the crash, app should resolve the link using the meta endpoint (guessing that item is reachable) and show it as any other item in the Shares tab.

TASKS

  • Research (if needed)
  • Create branch fix/deep_links_for_shares
  • Development tasks
    • Discover root folder of the shares space in first account discovery
    • Check if deep link refers to a file in shares space
    • Move to "Shares" tab, navigate to the corresponding folder and open preview/details of the file
    • Add necessary tests
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch fix/deep_links_for_shares into master

Activity

  1. added
    p2-high
    on Dec 11, 2023
  2. added this to the 4.2 - Current milestone on Dec 11, 2023
  3. jesmrec commented on Dec 11, 2023

    @jesmrec
    MemberAuthor

    Crash in the top message happened because there was a blank in the link string. We could prevent this but it's not a problem in the links to shared items.

  4. self-assigned this
    on Dec 18, 2023
  5. changed the title [-]Deep links over shared files (oCIS)[/-] [+][BUG] Deep links over shared files (oCIS)[/+] on Dec 18, 2023
  6. JuancaG05 commented on Dec 20, 2023

    @JuancaG05
    Contributor
  7. JuancaG05 commented on Jan 19, 2024

    @JuancaG05
    Contributor
  8. linked a pull request that will close this issue[FIX] Deep links over shared files (oCIS) #4302on Jan 29, 2024
  9. jesmrec commented on Feb 16, 2024

    @jesmrec
    MemberAuthor
  10. jesmrec commented on Oct 2, 2024

    @jesmrec
    MemberAuthor

    owncloud/ocis#8455 is fixed in rolling versions. Now, the <oc:id> is consistent for folders and subfolders.

  11. removed
    p2-high
    on Oct 4, 2024
  12. modified the milestones: 4.4 - Current, Backlog on Oct 4, 2024
  13. removed this from the Backlog milestone on Feb 14, 2025
  14. added this to the Backlog milestone on May 19, 2026
  15. DeepDiver1975 commented on Jun 30, 2026

    @DeepDiver1975
    Contributor

    Status: still open, blocked server-side.

    • Root cause is oCIS#8455 (inconsistent <oc:id> for the same shared item across PROPFINDs — root-of-Shares vs. browsing into it). That issue is still OPEN; last maintainer note (rhafer) says nobody is actively working on it and the ids are "not the same yet". So the deep-link resolution for shared files can't be made reliable from the client until oCIS returns a stable id.
    • The android fix attempt [FIX] Deep links over shared files (oCIS) #4302 was closed unmerged (2026-05-19, "To implement correctly after Sharing NG"). No android-side fix has landed.
    • Earlier blockers oCIS#8033 and #8224 are closed; #8455 is the remaining one.

    No client-side action possible right now — this stays blocked on oCIS#8455 and the post-Sharing-NG rework. (Related: #4251, deeplinks without connection, also still open — separate issue.)

    🤖 Generated with Claude Code

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions