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

open-with-web endpoint not working #9804

Closed
JuancaG05 opened this issue Oct 13, 2023 · 8 comments · Fixed by #9891
Closed

open-with-web endpoint not working #9804

JuancaG05 opened this issue Oct 13, 2023 · 8 comments · Fixed by #9891
Assignees
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug Something isn't working

Comments

@JuancaG05
Copy link

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

@JuancaG05 JuancaG05 added the Type:Bug Something isn't working label Oct 13, 2023
@JammingBen JammingBen transferred this issue from owncloud/ocis Oct 13, 2023
@JammingBen
Copy link
Contributor

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

@JammingBen JammingBen moved this to Bugs Prio 2 in Web Support Board Oct 13, 2023
@JammingBen JammingBen added the Priority:p2-high Escalation, on top of current planning, release blocker label Oct 13, 2023
@JuancaG05
Copy link
Author

Thanks @JammingBen! 🙏

@JammingBen JammingBen self-assigned this Oct 20, 2023
@JammingBen
Copy link
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.

@micbar
Copy link
Contributor

micbar commented Oct 20, 2023

Ok, we can remove that parameter.

@JammingBen JammingBen moved this from Bugs Prio 2 to In progress in Web Support Board Oct 20, 2023
@michaelstingl
Copy link
Contributor

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

@micbar
Copy link
Contributor

micbar commented Oct 25, 2023

Needs web bump in ocis.

@JammingBen
Copy link
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.

@micbar
Copy link
Contributor

micbar commented Oct 26, 2023

Stable 4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug Something isn't working
Projects
Archived in project
Status: In progress
Development

Successfully merging a pull request may close this issue.

4 participants