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

File type with permission anyone with the link can view, comment and edit are not working. #2

Open
AayushChaudhary0001 opened this issue Jul 10, 2024 · 5 comments
Assignees

Comments

@AayushChaudhary0001
Copy link

If a user creates a file with a permission type of anyone with the link can view/comment/edit the file and shares it in the channel, not every user is able to access the file with the link. It actually requires the access from the file owner to open that file. This issue is common for all permissions namely view, comment and edit with anyone with the link

@darkLord19
Copy link
Contributor

I have done the fresh setup of plugin and when I create file with anyone can view,edit or comment permissions i am getting correct permissions on the file. Can you share steps, screenshots or video recordings of issue you have mentioned @AayushChaudhary0001

@wiggin77
Copy link
Collaborator

@AayushChaudhary0001 can you provide more information here.

@AayushChaudhary0001
Copy link
Author

@darkLord19 I have tested this again and this issue is reproducible on my side. I also though that it might be an issue of same organization, but the issue persists in sharing the file with the same organization members.

Steps to reproduce:-

  • Create a doc/slide/sheet through the slash command
  • Share the same file created in the channel/by default it will be shared through the functionality in the modal.
  • Try to open the file through any other user's account.

The user would need a file access from the file owner.

image

@darkLord19
Copy link
Contributor

@AayushChaudhary0001 can you share server logs of file creation?

@AayushChaudhary0001
Copy link
Author

Here they are:-

error app/plugin_api.go:976 timestamp=2024-09-18 11:09:47.203 Z plugin_id=com.mattermost-community.plugin-google-drive pageToken=109294 Owner of the file performed this action
error app/plugin_api.go:976 timestamp=2024-09-18 11:09:48.037 Z plugin_id=com.mattermost-community.plugin-google-drive pageToken=109294 Owner of the file performed this action
error app/plugin_api.go:976 timestamp=2024-09-18 11:11:42.267 Z plugin_id=com.mattermost-community.plugin-google-drive err=googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions fileID=1YLlGueI0MZ4MBEORIzgNHSWtdfMA2cuJ5c2nhSgV1bc something went wrong while updating permissions for file

Please let me know if I can provide any additional information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants