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.
According to the WOPI documentation, the
userid
property inCheckFileInfo
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 useuid:gid
for that purpose.