Ticket #513 (WorksForMe)Thu May 20 18:59:09 UTC 2021
Saving long filename crashes filer
Reported by: | Ewen Pring (3163) | Severity: | Major |
Part: | RISC OS: General | Release: | |
Milestone: | Status | WorksForMe |
Details by Ewen Pring (3163):
Try to save a file (eg JPEG) with 128+ characters from NetSurf to the filer (ADFS) and filer crashes requiring system reboot. Surely the filer should reject the save to prevent a terminal crash.
Note: Interestingly it is possible to use the filer to rename an existing file to have over 128 characters, seemingly without crashes or visible errors, but if you do, you can’t do much (anything?) with it- it won’t load in the apps I’ve tried; nothing happens, presumably there is a silent error.
Repeating:
Visit this URL in Netsurf
https://c8.alamy.com/comp/2F9TW4Y/london-uk-18-…
try to save the image to filer, filer will crash. It doesn’t matter if the save is initiated by ctrl-dragging from the image, or from the object > object > save menu.
But if the filename is a few characters shorter, it works, such as:
https://c8.alamy.com/comp/2F9TW3E/london-uk-18-…
RISC OS 5.28 (2020-10-19) on Titanium, filer v2.48 (2020-05-27), NetSurf 3.10 (2020-05-24)
Changelog:
Modified by Sprow (202) Sat, May 22 2021 - 20:20:56 GMT
- Part changed from Unspecified to RISC OS: General
Both JPEGs save fine here from NetSurf 3.10 on RISC OS 5.28.
Do you have some kind of 3rd party extension loaded that might be interfering?
There is a limit of 212 characters for a file dragged to the Filer due to it needing to fit inside a Wimp message block of 256 at offset 44, but nothing magic about 127 or 128.
Modified by Stuart Swales (8827) Wed, June 16 2021 - 10:43:25 GMT
Also, that JPEG might appear not to work in various applications as it has an insanely large DPI (57600) so is sub-pixel sized when dropped into Draw or Fireworkz (both of which cope with its long name).
Modified by Sprow (202) Sun, December 05 2021 - 08:47:10 GMT
- Status changed from Open to WorksForMe