Concurrent editing is broken
When trying to concurrently edit a file, the indicator for multiple users (on the top right of the editior) is missing and changes won't get synced between users.
This results in in not being able to see changes other users are making and overwriting everything what collaborators made, when you save the document.
- Nextcloud v23.0.3
- Whiteboard v0.0.3
- PHP 8.0
JavaScript errors like these occur:
xhr.js:178
POST /apps/whiteboard/collaboration/adduser 500
createError.js:16 Uncaught (in promise) Error: Request failed with status code 500
at t.exports (createError.js:16:15)
at t.exports (settle.js:17:12)
at XMLHttpRequest.p.onreadystatechange (xhr.js:61:7)
xhr.js:178
GET /apps/whiteboard/collaboration/getallsteps?id=31488 500
xhr.js:178
GET /apps/whiteboard/collaboration/getnewsteps?id=31488 500
collaboration.js:179 Network or server error, waiting 5 sec before retry -> Request failed with status code 500
xhr.js:178
GET /apps/whiteboard/collaboration/getnewsteps?id=31488 500
Nextcloud errors:
Exception: Call to a member function setLastSeen() on null in file '/apps/whiteboard/lib/Service/CollaborationEngine.php' line 175
Exception: Call to a member function setLastSeen() on null in file '/apps/whiteboard/lib/Service/CollaborationEngine.php' line 175
Exception: Undefined constant "OCA\whiteboard\Controller\message" in file '/apps/whiteboard/lib/Controller/CollaborationController.php' line 118
Undefined constant "OCA\whiteboard\Db\integer" in file '/apps/whiteboard/lib/Db/User.php' line 35