Open Bug 1948488 Opened 9 months ago Updated 5 months ago

Files that ends with % gets their dot before suffix mangled (test%.txt -> test?_txt)

Categories

(Firefox for Android :: Downloads, defect)

Firefox 135
All
Android
defect

Tracking

()

UNCONFIRMED

People

(Reporter: kajatoth, Unassigned)

References

Details

(Whiteboard: [fxdroid][group4])

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0

Steps to reproduce:

Download any file that ends with %

Actual results:

The dot between filename and suffix gets deleted resulting in broken filename with no suffix (possibly Percent-encoding problem?)

Nightly is even worse, it crashes instantly

Expected results:

file shoud contain the dot (on PC it works by replacing the % with _)

Attached file nightly crash log

The severity field is not set for this bug.
:007, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(nbond)
Severity: -- → S3
Flags: needinfo?(nbond)
Whiteboard: [fxdroid][group4]

I think this might get fixed over in the patch addressing Bug 1945705. We can verify this after that lands

Attached file test%.txt

I tested on Fenix 141 and the extension is kept, although the original name is not fully respected.

Steps to reproduce

  • Open this bug on Fenix
  • long click on the following link: test%.txt, and press "Download link"

Expected behavior

The file is downloaded and named test_.txt, as Firefox Desktop does.

Actual behavior

The file is downloaded and named test_txt(2).txt

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: