• evnt TICKIT Unable to identify packer for AmyList.l50

    From Fernando Toledo@VERT to GitLab issue in main/sbbs on Sat Feb 25 09:24:22 2023
    open https://gitlab.synchro.net/main/sbbs/-/issues/524

    I try to setup a nodelist handler for amiganet, these come in lha format
    I have added the archiver and it works ok with the files from the library

    ![imagen](https://gitlab.synchro.net/main/sbbs/uploads/8f6f2659b773ef2ee4f413936f1a02c1/imagen.png)

    I test on tickit.cfg with both nodelist_handler and file_handler with same results:

    ```
    [AMYLIST]
    Dir=amn_amylist
    SourceAddress=39:943/1@amiganet
    ForceReplace=true
    Handler=tickit/nodelist_handler.js
    HandlerArg={"domain":"amiganet", "match":"AmyList.l*", "nlmatch":"AmyList.*"} ;Handler = tickit/file_handler.js
    ;HandlerArg = { "match": "AmyList.l*", "files": [{ "source": "Amylist.*", "destination": "/sbbs/fido/NODELIST.AMIGANET" }]}

    ```
    it seems that the part of code that tries to detect the archiver is not working for this case

    ```
    Object.keys(ctx.sbbsecho.packer).forEach(function(key) {
    var i;
    var sig = '';

    f.position = ctx.sbbsecho.packer[key].offset;
    for (i=0; i<ctx.sbbsecho.packer[key].sig.length; i+=2) {
    sig += format("%02X", f.readBin(1));
    if (f.eof)
    break;
    }
    if (sig === ctx.sbbsecho.packer[key].sig)
    unpack = ctx.sbbsecho.packer[key].unpack;
    });
    f.close();

    if (unpack == undefined) {
    log(LOG_DEBUG, "Unable to identify packer for '"+tic.file+"'");
    return false;
    }

    ```
    I attach a AmyList.l48 nodelist example that came from my boss.


    [AmyList.l48](/uploads/4f200dfa9dbe27939d5e68a697ba0a74/AmyList.l48)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Feb 25 12:26:28 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/524#note_3279

    TickIT uses the echocfg->Archive Types configuration for extracting files (not SCFG->File Options->Extractable File Types and not the JS Archive object). So for this file type to be supported, you'd need to have echocfg->Archive Types->LZH set like so (or similar):
    ```
    É[þ][?]ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
    º Archive Type - LZH º ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
    º ³Archive Type LZH º
    º ³Signature 2D6C68 º
    º ³Signature Offset 2 º
    º ³Pack Command Line lha a %f %s º
    º ³Unpack Command Line lha e %f %s º ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
    ```

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Feb 25 12:27:16 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/524#note_3280

    I think the best fix here would be to have tickit use the JS Archive class for extracting files.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Fernando Toledo@VERT to GitLab note in main/sbbs on Sun Feb 26 11:24:20 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/524#note_3285

    Excelent!!! I didn't remember that sbbsecho had its own archiver config. I add the lha config, I will wait to next nodelist arrive for verify !
    thanks!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Fernando Toledo@VERT to GitLab issue in main/sbbs on Sun Feb 26 11:24:21 2023
    close https://gitlab.synchro.net/main/sbbs/-/issues/524

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net