Skip to content

Can not edit text files #1340

@djermann

Description

@djermann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions