richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

can't save shared document if a second user has opened it too.

Open redglobuli opened this issue 2 years ago • 2 comments

Describe the bug I shared a document and if only me is opening it i can save it just fine. As soon i open with another user at the same time i get an error message like "document can't be saved. check your permissions."

To Reproduce Steps to reproduce the behavior:

  1. share a document
  2. open it with 2 different users
  3. edit something
  4. try to save

Expected behavior I expected to be able to save editing a document with multiple users

Screenshots

Client details:

  • OS: Archlinux
  • Browser: Chrome, Firefox
  • Version: 27.0.1
  • Device: Desktop

Server details

Operating system: Ubuntu 20.04.6 LTS

Web server: Apache

Database: MariaDB

PHP version: 8.1.21

Nextcloud version: 27.0.1

Version of the richdocuments app 8.1.0

Version of Collabora Online 23.05.2.2

Logs

Nextcloud log (data/nextcloud.log)

{"reqId":"JpkdiOnDVJRdwk7ReaYZ","level":3,"time":"2023-07-30T14:11:16+02:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Couldn't re-calculate unencrypted size for files_trashbin/versions/timeCheck629905.txt.v1689151798.d1689151867","userAgent":"--","version":"27.0.1.2","exception":{"Exception":"OC\\Encryption\\Exceptions\\DecryptionFailedException","Message":"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":596,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":517,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":196,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":220,"function":"modifyMetaData","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"function":"getDirectoryContent","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php","line":424,"function":"iterator_to_array"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php","line":397,"function":"handleChildren","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php","line":400,"function":"scanChildren","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php","line":400,"function":"scanChildren","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php","line":347,"function":"scanChildren","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Utils/Scanner.php","line":269,"function":"scan","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/apps/files/lib/Command/Scan.php","line":164,"function":"scan","class":"OC\\Files\\Utils\\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/apps/files/lib/Command/Scan.php","line":219,"function":"scanFiles","class":"OCA\\Files\\Command\\Scan","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":298,"function":"execute","class":"OCA\\Files\\Command\\Scan","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Base.php","line":177,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1040,"function":"run","class":"OC\\Core\\Command\\Base","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":301,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":171,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":11,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/encryption/lib/Crypto/Encryption.php","Line":398,"Hint":"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","message":"Couldn't re-calculate unencrypted size for files_trashbin/versions/timeCheck629905.txt.v1689151798.d1689151867","exception":{},"CustomMessage":"Couldn't re-calculate unencrypted size for files_trashbin/versions/timeCheck629905.txt.v1689151798.d1689151867"}}

Browser log

Insert your browser log here, this could for example include:

nothing changes in the console if i hit save

</details>

redglobuli avatar Jul 30 '23 12:07 redglobuli

seems to be connected to https://github.com/nextcloud/richdocuments/issues/2996

redglobuli avatar Jul 30 '23 12:07 redglobuli

Does this still occur for you with >27.0.1 Server?

Also, is the behavior different witjh newly created files versus existing ones?

joshtrichards avatar Nov 10 '23 18:11 joshtrichards

https://github.com/nextcloud/richdocuments/issues/2996#issuecomment-1702546036

Closing due to non-response.

joshtrichards avatar Mar 25 '24 16:03 joshtrichards