• bbs.view_file() fails with long filenames

    From Eric Oulashin@1:103/705 to GitLab issue in main/sbbs on Mon Feb 7 10:53:42 2022
    open https://gitlab.synchro.net/main/sbbs/-/issues/335

    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 Mon Feb 7 11:22:46 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/335#note_2262

    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 Mon Feb 7 11:52:06 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/335#note_2263

    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 Mon Feb 7 11:52:09 2022
    close https://gitlab.synchro.net/main/sbbs/-/issues/335
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Eric Oulashin on Mon Feb 7 20:37:13 2022
    Re: bbs.view_file() fails with long filenames
    By: Eric Oulashin to GitLab note in main/sbbs on Mon Feb 07 2022 11:52:06

    my vile viewer

    Now, now, don't be so hard on yourself. I'm sure the viewer's not *that* bad. ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)