FS#5137 - Silent failure to load radio preset files with long names

Attached to Project: Rockbox
Opened by Karl-Johan Karlsson (Creideiki) - Saturday, 15 April 2006, 23:56 GMT
Task Type Bugs
Category User Interface
Status Closed
Assigned To No-one
Operating System Iriver H100 series
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


I'm running the nightly build from 2006-04-15 on an iHP-120. When trying to load radio presets, if I select a file that has a name that is too long Rockbox spins up the hard disk and says "Loading..." for a while, but doesn't actually load any new presets. As for how long too long is, "Östergötland-Kisa.fmr" works but "Östergötland-Motala.fmr" doesn't (when they have the same contents).

Steps to reproduce:
1. Create two radio preset files - "Östergötland-Kisa.fmr" and "Östergötland-Motala.fmr" - with the same contents.
2. Clear the presets list.
3. Load "Östergötland-Kisa.fmr".
--- This works, only the Östergötland-Kisa presets are loaded.
4. Clear the presets list.
5. Load "Östergötland-Motala.fmr".
--- This doesn't work, no presets are loaded.
This task depends upon

Closed by  Peter D'Hoye (petur)
Tuesday, 25 April 2006, 00:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  File length is now limited to 20 characters (excluding the extension)
Comment by Peter D'Hoye (petur) - Saturday, 22 April 2006, 13:42 GMT
the limit on filenames that are stored in the config of your player is 21 characters
I will make it refuse longer names.