Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

open-with-web endpoint not working #9804

Closed

Description

@JuancaG05

Describe the bug

For oCIS servers, the open-with-web endpoint is not working properly. I want to open a file in web, so I make the request to the server and when I receive the URL, the web is not able to open it (different errors in different servers).

Steps to reproduce

Steps to reproduce the behavior:

  1. Make the POST request to open-with-web, sending the app name and the file ID as parameter
  2. Receive the response and open the URL in the response
  3. See the error in the web

Details:

REQUEST:
POST URL: https://ocis.ocis-wopi.latest.owncloud.works/app/open-with-web
file_id=fb004e32-d789-4a05-8215-d62f3f104b78%24016795a5-d04d-44a0-8f54-c7b07047717e%21a195f339-269e-406f-8fb0-587c2988fd6b&app_name=Collabora
RESPONSE
{"uri":"https://ocis.ocis-wopi.latest.owncloud.works/external?app=Collabora&contextRouteName=files-spaces-personal&fileId=fb004e32-d789-4a05-8215-d62f3f104b78%24016795a5-d04d-44a0-8f54-c7b07047717e%21a195f339-269e-406f-8fb0-587c2988fd6b"}

Expected behavior

The response returns a URL which opens the file in web correctly.

Actual behavior

The response returns a URL which doesn't open the file in web correctly, an error message appears saying Cannot read properties of null (reading ‘webDavPath’).

Setup

The server used is https://ocis.ocis-wopi.latest.owncloud.works

Additional context

This was tested from the Android app.
The same endpoint is working properly in oC10.
Also tested with https://ocis.ocis-web.latest.owncloud.works, and here the error is different (it cannot even open the web, it results in a 404 in the web).

CC @michaelstingl

Activity

  1. added
    Type:Bug
    on Oct 13, 2023
  2. transferred this issue fromowncloud/ocison Oct 13, 2023
  3. JammingBen commented on Oct 13, 2023

    @JammingBen
    Contributor

    I moved the issue to the Web repo because Web should be responsible for resolving the path correctly.

  4. moved this to Bugs Prio 2 in Web Support Boardon Oct 13, 2023
  5. added
    Priority:p2-high
    on Oct 13, 2023
  6. JuancaG05 commented on Oct 13, 2023

    @JuancaG05
    Author

    Thanks @JammingBen! 🙏

  7. self-assigned this
    on Oct 20, 2023
  8. JammingBen commented on Oct 20, 2023

    @JammingBen
    Contributor

    @micbar I noticed that the URL coming from the server contains the param contextRouteName, however, the values are not correct anymore. Since Web will take care of correctly resolving the URL on its own, I suggest to completely remove that param.

    Oh and since this is regarded as a critical bug, we will have a new Web version 7.1.1 soon, meaning we also need a new ocis release.

  9. micbar commented on Oct 20, 2023

    @micbar
    Contributor

    Ok, we can remove that parameter.

  10. moved this from Bugs Prio 2 to In progress in Web Support Boardon Oct 20, 2023
  11. michaelstingl commented on Oct 25, 2023

    @michaelstingl
    Contributor

    Where's this deployed? It doesn't work for me on ocis.ocis-wopi.latest.owncloud.works yet. 🤔

  12. micbar commented on Oct 25, 2023

    @micbar
    Contributor

    Needs web bump in ocis.

  13. JammingBen commented on Oct 26, 2023

    @JammingBen
    Contributor

    Web v7.1.1 is available now. @micbar what would be the correct target branch in ocis for the Web bump? I assume master is already ahead and should not get this Web version.

  14. micbar commented on Oct 26, 2023

    @micbar
    Contributor

    Stable 4.0

  15. moved this from Qualification to In progress in Infinite Scale Team Boardon Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority:p2-highType:Bug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions