-
Notifications
You must be signed in to change notification settings - Fork 20
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
ToS on direct editing #771
Comments
similar to #765 I guess? Is an IP list known for OnlyOffice in a similar way? |
No Needs a fix to work with direct editing |
@nickvergessen What is the general approach of ToS in regards to clients? Maybe we can assume that the ToS are already signed during the account setup for the desktop and mobile clients and could just allow direct editing with the specific app token? |
I got that, but basically we need to whitelist the direct editing endpoint like we did the WOPI, but ONLY for requests from the OnlyOffice connection, in case that does not come with user information.
It does not care about the way of interaction. It adds a storage/cache wrapper that removes read, create, update and delete permissions.
We exclude skeleton setup, login, login flow and registration: terms_of_service/lib/Filesystem/Helper.php Lines 62 to 83 in b1f6a4b
|
I haven't dived into debugging this but looking at the original issue it seems that on the direct editing page the request that javascript performs to the config endpoint fails. This could be explained as the user is not logged in, so when the file is accessed terms_of_services does not see the already signed terms. One idea for a fix (but untested) would be to set the current user session to the user id from the direct editing token in You could try doing that through https://github.com/nextcloud/server/blob/215aef3cbdc1963be1bb6bca5218ee0a4b7f1665/lib/public/IUserSession.php#LL64 |
Depending on the issue: ONLYOFFICE/onlyoffice-nextcloud#735
May need to allow
/directEditing/open
requestHi @juliushaertl . Can you confirm the problem with direct editing?
The text was updated successfully, but these errors were encountered: