Skip to content
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

Can not edit text files #1340

Closed
djermann opened this issue Jul 8, 2020 · 13 comments · Fixed by nextcloud/server#22423
Closed

Can not edit text files #1340

djermann opened this issue Jul 8, 2020 · 13 comments · Fixed by nextcloud/server#22423

Comments

@djermann
Copy link

djermann commented Jul 8, 2020

Expected behaviour

Being able to edit .txt and .md files on the iOS App.

Actual behaviour

Clicking on a .md or .txt file gives a "File not found" error in the frontend and the following error in the back-end:

PHP message: [owncloud][files][3] {"Exception":"OC\\Encryption\\Exceptions\\DecryptionFailedException","Message":"Can not 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/nextcloud/lib/private/Files/Stream/Encryption.php","line":507,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":302,"function":"readCache","class":"OC\\Files\\Stream\\Encryption","type":"->","args":[]},{"function":"stream_read","class":"OC\\Files\\Stream\\Encryption","type":"->","args":[43]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":217,"function":"stream_get_contents","args":[null]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":245,"function":"file_get_contents","class":"OC\\Files\\Storage\\Wrapper\\Encryption","t" while reading response header from upstream, client: ***removed***, server: ***removed***, request: "GET /apps/files/directEditing/pPSYtD6C5Wc5sWjrzaWQFEMjJwPZeYKroSEELGkRKPSBffGYWWWWH3TRKrSFKgdQ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "***removed***"

Steps to reproduce

  1. Click on a .md or .txt file in the iOS app.

Reasoning or why should it be changed/implemented?

iOS version

13.5.1

App version

3.0.0

Server configuration

Operating system:
Debian 10
Web server:
Nginx
Database:
MariaDB
PHP version:
7.3
Nextcloud version: (see Nextcloud admin page)
18.0.6
Additional Information
We have server side encryption enabled and the server has been updated since version 9. This does not happen on a freshly installed server.

@jasondaigo
Copy link

Still Not fixed after ios app and Server update

@brunoschroeder
Copy link

This is very critical for me. All my notes are txt files stored in nextcloud (much better for privacy than icloud notes, but it must work!).
It would be great to have a way to sync notes with one of the next cloud directories, or have an nextcloud app just for txt editing. Specially for vim/terminal users.

@marinofaggiana
Copy link
Member

marinofaggiana commented Jul 21, 2020

Do you have install on server Nextcloud Text ?

@jasondaigo
Copy link

Do you have install on server Nextcloud Text ?

i sure do. works in browser.but not in iphone app.

@CamZie
Copy link

CamZie commented Aug 20, 2020

@marinofaggiana I am answering on behalf of djermann and yes, we have the Nextcloud Text app installed on the server
- text: 2.0.0

@brunoschroeder
Copy link

Please, Next Cloud Team.

Do you advise the downgrade of text plugin to make it work whilst you bugfix ?

Alternatively, could you release 2.0.1 rolling back some bogus code so that the main functionality in NextCloud works, please ?

This bug has also been reported now on text plugin:
nextcloud/text#978

@juliushaertl
Copy link
Member

PHP message: [owncloud][files][3] {"Exception":"OC\Encryption\Exceptions\DecryptionFailedException","Message":"Can not 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/nextcloud/lib/private/Files/Stream/Encryption.php","line":507,"function":"decrypt","class":"OCA\Encryption\Crypto\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/Encryption.php","line":302,"function":"readCache","class":"OC\Files\Stream\Encryption","type":"->","args":[]},{"function":"stream_read","class":"OC\Files\Stream\Encryption","type":"->","args":[43]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":217,"function":"stream_get_contents","args":[null]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":245,"function":"file_get_contents","class":"OC\Files\Storage\Wrapper\Encryption","t" while reading response header from upstream, client: removed, server: removed, request: "GET /apps/files/directEditing/pPSYtD6C5Wc5sWjrzaWQFEMjJwPZeYKroSEELGkRKPSBffGYWWWWH3TRKrSFKgdQ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "removed"

Are you using server side encryption with user keys?

@CamZie
Copy link

CamZie commented Aug 20, 2020

@juliushaertl that is correct, we are using server side encryption with user keys.

@jasondaigo
Copy link

i had text version 1.1.1 (running nc17) installed, even though this version does not seem to exist for download on github (talking about https://github.com/nextcloud/text). i then downgraded to version 1.0.1, and the issue remains. then updated to the offered 1.0.2 text version. Issue still present. tested with appstore and testflight version today. no difference. im clueless now. i hate myself for touching the update button (once again).

@juliushaertl
Copy link
Member

So with user keys there is no way we can edit this as of the way direct editing currently works in an anonymous session (similar to collabora or onlyoffice), so there is not much we can do here. However the clients should of course not offer editing then. For that see nextcloud/server#22423

@jasondaigo
Copy link

I do not use server side encryption with user keys by the way

@juliushaertl
Copy link
Member

Then please open a separate issue as all error messages and log entries provided here are referring to encryption.

@juliushaertl

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants