-
Notifications
You must be signed in to change notification settings - Fork 187
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
Public link. authorized user cannot open file in Onlyoffice #6887
Comments
I checked if Web is doing something fishy here, but it looks like a server issue to me. The failing request is a It succeeds in an unauthenticated context when the only token being sent is the Succeeds:
Fails (only the bearer token has been appended at the end):
|
Mmh. I made different observations in my tests. Though issue could still be on server side From what I observed it is not necessary to open the file in a private browser tab. When opening the link with einstein it will always fail. The reason is that the server thinks einstein is making this call and since he has no access to this file this results in a Comparing the API calls that web makes there is difference: "public" sends a request like
Note the "einstein" sends request like
Note there is no link token in the request, instead it sends a bearer token in the header. @JammingBen do you know why web is sending different requests in authenticated and unauthenticated context? Shouldn't public link requests be the same in both cases? |
@kobergj Hmm but you're comparing 2 totally different requests, no? One is
Web sends an additional bearer token in an authenticated context, but the |
Thanks for the help @JammingBen I found the issue and have a potential fix 🤞 |
use https://ocis.ocis-wopi.released.owncloud.works/
Version-3.1.0-beta.1
web 7.1.0-rc.1
Steps:
.docx
and create public linkActual:
message: "file does not exist"
Screen.Recording.2023-07-25.at.16.57.11.mov
Expected: file is opened
The text was updated successfully, but these errors were encountered: