nextcloud / nextcloud/android

All files uploaded via Auto Upload are modifyed - SHA256 is different from the original

Open
#12,991 13 comments 2 reactions 0 assignees View on GitHub
0. Needs triage bug feature: auto upload hotspot: device storage
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [X] This is a **bug**, not a question or an enhancement.
- [X] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

1. Setup auto upload, **ensure full access**
![Screenshot_20240508_070139_Permission controller](https://github.com/nextcloud/android/assets/6813635/bce88695-bef2-446e-a117-1a660240f4b8)
3. Upload photos, Videos
4. Go to the Original Files folder and execute `find -type f -exec sha256sum '{}' \; > ~/2024.hash.phone` to calculate original hash sums.
5. Upload this file to the Server
6. Go to the server folder with uploaded files via `ssh` and run `sha256sum -c 2023.hash.phone` to check SHA 256 sums. Add `| grep OK | wc -l` to the command to see amount of OK files.
7. Be shocked.
```
sha256sum: WARNING: 303 computed checksums did NOT match
10 # This is amount of files that checksums are matched
```
11. Upload file via WebUI and see that SHA256 is different from what was uploaded via Android App, but **it is matching original file SHA256**. On the Left File from Cloud, on the Right fresh uploaded via WebUI: ![Снимок экрана от 2024-05-07 18-55-27](https://github.com/nextcloud/android/assets/6813635/361bed71-bfbb-443e-ae87-d4a8715ff93d)
12. Goto [Memories](https://github.com/pulsejet/memories/) and check EXIF. In original File I have a Location saved, in uploaded via UI it was erased. On the Right File from Cloud, on the Left fresh uploaded via WebUI: ![Снимок экрана от 2024-05-07 18-59-56](https://github.com/nextcloud/android/assets/6813635/cd086486-4a4a-4ea0-89a0-6b6114de80ff)

:cry: I lost tons of GPS locations in Photos that I do not have in Original files anymore.

### Expected behaviour

Files are **never modified** as it was before December 2023. I do check Maps app and have no locations saved since December!
I have auto update on in google Play, so seems around [3.27.0](https://github.com/nextcloud/android/releases/tag/stable-3.27.0) version was broken.

### Actual behaviour

Never expected that file will be modified in any matter, but seems related to #8622 and #8646, especially #12973

### Android version

14

### Device brand and model

Samsung Galaxy S21 FE

### Stock or custom OS?

Stock

### Nextcloud android app version

3.29.0

### Nextcloud server version

27.1.9

### Using a reverse proxy?

No

### Android logs

_No response_

### Server error logs

```bash
No related error
```

### Additional information

JPEG and MP4 files are affected

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.