Skip to content

Android client fails to download files with ">" in the name #14772

Open
@rsevat

Description

@rsevat

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

Android version 3.31.0
Nextcloud version: 31.0.2

I was trying to download a file in my nextcloud instance and I could not figure out why it was failing to download it. It turns out to be caused by a ">" in the filename.

After I renamed the file to not include the ">" I could download it without any problem.
Note that the > in the file name is no problem for the nextcloud webinterface, only for the android app.

{
"app": "admin_audit",
"method": "GET",
"url": "/nextcloud/remote.php/dav/files/robert/Documents/Holidays/London%202025/6%20april%20-%20London%20-%3E%20Brussel.pdf",
"message": "File with id "773973" accessed: "/robert/files/Documents/Holidays/London 2025/6 april - London -> Brussel.pdf"",
"userAgent": "Mozilla/5.0 (Android) Nextcloud-android/3.31.0",
"version": "31.0.2.1",
}

I renamed the file from "6 april - London -> Brussel.pdf" to "6 april - London to Brussel.pdf" and could suddenly download the file without any problem.

Expected behaviour

That I can download files with > in the name or that the android client would tell me files with a > in the name are not supported

Actual behaviour

The app fails with a "failed to download file" message which isn't helpful at all.

Android version

14

Device brand and model

Samsung Galaxy S22

Stock or custom OS?

Stock

Nextcloud android app version

3.31.0

Nextcloud server version

31.0.2

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions