With Synchronet 3.19b, it seems the JavaScript function bbs.view_file() has trouble with long filenames. The file lister I'm working on calls bbs.view_file() to view a file, and I've tried viewing a zip file with a long filename, Synchronet says "Error: The filename has no extension" and then says there was an error executing my file viewer. If I view a file with a short name (I'm guessing within the 8.3 filename limits), it works as expected.
--- SBBSecho 3.14-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Monday, February 07, 2022 11:22:46
First, the "Error: The filename has no extension" is not a string in Synchronet (or the text.dat) that I've been able to find. Are you sure this string isn't coming from your file viewer or file lister?Second, the bbs.view_file() function appears to work fine for me, with long filenames:```â– Main â– 0:46:06 [4] fsxNet [2] FSX GEN: ;evalParameter(s): bbs.view_file("s:/xfer/sbbs/sbbs_dev.msvc2013.zip")Archive: s:/xfer/sbbs/sbbs_dev.msvc2013.zip Length Method Size Cmpr Date Time CRC-32 Name-------- ------ ------- ---- ---------- ----- -------- ---- 458 Defl:N 303 34% 07/17/2019 05:05 e5e05325 README.TXT 140 Defl:N 133 5% 07/17/2019 05:05 fa823cf5 FILE_ID.DIZ ```
--- SBBSecho 3.14-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
From Eric Oulashin@1:103/705 to GitLab note in main/sbbs on Monday, February 07, 2022 11:52:06
It looks like the error is coming from my vile viewer rather than Synchronet. Closing this issue.
--- SBBSecho 3.14-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
From Eric Oulashin@1:103/705 to GitLab issue in main/sbbs on Monday, February 07, 2022 11:52:09