nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.95k stars 878 forks source link

View E2E Encrypted File Uploaded From Desktop on iOS Client Resulted in seeing extra hash string appended to it #2405

Open shubymao opened 1 year ago

shubymao commented 1 year ago

Steps to reproduce

  1. Ensure E2E encryption is enabled on both iOS and desktop client.
  2. Create a new text file in e2e encrypted folder on desktop client.
  3. Edit the file and add some string to the text file (ex. hello world)
  4. View the file content in preview within the iOS client

    Expected behaviour

    • See exact same string as you enter in step 3. (i.e hello world)

Actual behaviour

Screenshots

What file looks like on desktop client.

image

What I see on iOS device.

2023-04-30 01-02-25-0

Logs

If applicable, you can post the iOS app or server logs (removing any sensitive information).

Reasoning or why should it be changed/implemented?

Data consistency is core to any storage service. If the app can't maintain good consistent on the e2ee file then this doesn't provide the user with confidence to use this feature.

Environment data

Nextcloud Desktop Version Nextcloud Window 3.8.1

Windows Version 10

iOS version: IPadOS 15.5.

Nextcloud iOS app version: see More > Settings NextCloud Liquid iOS 4.8.0.5

Server operating system: TrueNas (Debian, Linux)

Nextcloud version: 26.0.1

uselpa commented 2 months ago

Came here to confirm. I don't know if it's a hash or anything else, but there's some kind of "garbage" shown by the iOS client. First E2E activation, macOS desktop client 3.13.2, Nextcloud server 29.0.3 (docker), iOS client 5.4.1.0.

executed commented 1 month ago

looks like line ending character thing to me