Skip to content

Renaming: if filename too long, file gets irrecoverably deleted without warning #129

@GfEW

Description

@GfEW

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.1.1

Affected Android/Custom ROM version

Android 9 to 11

Affected device model

diverse

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

I'm experiencing a severe, reproducible bug in Fossify Gallery 1.1.1 that unexpectedly deletes media files without warning.

I can be reproduced as follows:

  1. open Fossify Gallery
  2. navigate to any media file and tap to display it
  3. in the three-dots menu, tap "Rename"
  4. in the dialog field that opens, enter a new, very long filename.

Expected behavior

Fossify Gallery should either rename the file or, if the new name is too long, reject the invalid renaming operation, issue a brief explanation and leave the file intact.

Actual behavior

If the new filename happens to be too long (even if by just one character - there is no indication!), tapping "OK" will immediately DELETE the file, then merely informing you that "An unknown error occurred".

Screenshots/Screen recordings

No response

Additional information

Please note that the concerned file is not moved to Fossify Gallery's "Recycle Bin" nor to "Recovered", but fully removed from the file system.

Also note that this bug appears to be specific to Fossify Gallery (aside from Simple Gallery Pro): None of the three other gallery app or file managers I've tested on the same devices display this dangerous behaviour.

Metadata

Metadata

Assignees

Labels

acceptedFeature or bug accepted. PR is welcome.bugSomething is not working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions