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

Ensure the UserId WOPI property is consistent #48

Merged
merged 2 commits into from
Oct 12, 2021
Merged

Conversation

glpatcern
Copy link
Member

According to the WOPI documentation, the userid property in CheckFileInfo must be consistent over time, therefore we cannot use the Reva token for it as that's a session-based "identifier".

This patch creates a userid that is unique and consistent. It's also reasonably short, therefore it should work with OnlyOffice as well. To be noted that the current CERNBox production, based on xrootd, does not suffer from this because we use uid:gid for that purpose.

src/core/cs3iface.py Outdated Show resolved Hide resolved
src/core/wopi.py Outdated Show resolved Hide resolved
src/core/wopi.py Outdated Show resolved Hide resolved
@glpatcern glpatcern merged commit 8e99a26 into master Oct 12, 2021
@glpatcern glpatcern deleted the consistent-userid branch October 12, 2021 14:54
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

Successfully merging this pull request may close these issues.

2 participants