Open BennoHouse opened 6 days ago
Yes, same here.
@BennoHouse I've found a fix that seems to work. Just add an "?" in /var/www/html/custom_apps/passwords/lib/Services/EnvironmentService.php:433
protected function loadUserFromBearerAuth(?string $userId, string $value): bool {
That's great, thanks @0-wHiTeHand-0
I don't know enough about PHP to understand the consequences of that change. I only find something about ?
being used as a if-condition, so is it just a missed operator or is there more to it? The other functions seem to be written that way.
I might also have copied the wrong section of code in the excerpt.
Yes, I think it was just a missed operator. Now I have new errors ("InvalidTokenException Token does not exist: token does not exist"), but at least Collabora and Passwords are both working apparently well.
⚠️ This issue respects the following points: ⚠️
Server Information
Client Information
Browser and Version: Firefox 115.11.0esr (64-bit) Client OS and Version: Debian 12
Bug description
After upgrading our Nextcloud instance to major version 29 and switching from Onlyoffice to Nextcloud Office (Collabora) with the Built-in CODE server, repeated "Document cannot be saved, please check your permissions." errors are displayed when saving shared documents. The documents are actually saved, but the error messages prevent further user interaction and reappear after a few seconds when closed, requiring quitting and reopening of the document.
The error disappears when the Passwords app is disabled in the administrative app settings.
Every time the error message is shown to a user, the following log entry appears:
Apparently, the function in question is the following:
There appears to be some incompatibility between Passwords and the Nextcloud Office / Built-in Collabora CODE apps.
Steps to reproduce
Expected behavior
Documents should save without error
Nextcloud Logs
Browser Logs
No response