AC should support custom probes

Idea created by poulhs on Oct 4, 2016
    New
    Score6
    • Garin
    • bf-henning
    • yasal01
    • chrlu01
    • poulhs
    • spatwin

    I created a ticket (00504790: AC corrupts custom probes), but CA doesn't seem to fix bugs without ideas, hence this idea to fix a bug (and also a warning about AC corrupting files).

     

    This is valid for package files of any of the  types "ascii", "config" and "script".
    The type "binary" does not change the line-endings (as expected).
    The type "registry" has not been tested.

     

    1. If you create a package and upload a file with LF endings,
      distributing it with IM will change LF to CR-LF on Windows and preserve the LF on Unix
    2. If you create a package and upload a file with CR-LF endings, 
      distributing it with IM will preserve the CR-LF on  Windows and change CR-LF to LF on Unix

      1+2) If you distribute a package with IM, the line-endings will be changed to confirm to the destination OS

    3. If you create a package and upload a file with LF endings,
      distributing it with AC will change LF to CR-LF on Windows and preserve the LF on Unix
    4. If you create a package and upload a file with CR-LF endings,
      distributing it with AC will ADD AN EXTRA CR on Windows and NOT change CR-LF on Unix
    5. If you edit an existing package file in IM and distribute it with AC, the file will have TWO CR on Windows and CR-LF on Unix

     i.e. the only case where AC can be used for distributing custom packages, is when the files have LF endings and are not edited in IM.

     

    If the file is has CR-LF endings or if it edited in IM, and is distributed with AC, it WILL end up with CR-CR-LF on Windows and CR-LF on Unix

     

    I have found no supported way to upload custom probes in AC, so I assume I have to use IM.

     

    file \ console+destinationIM to WinIM to RHELAC to WinAC to RHEL
    ascii-lf.txt
    ASCII text with LF line endings
    CR-LFLFCR-LFLF
    ascii-crlf.txt
    ASCII text with CR-LF line ending
    CR-LFLFCR-CR-LFCR-LF
    ascii-lf-edit.txt
    ASCII text with LF line ending
    edited in package manager in IM
    CR-LFLFCR-CR-LFCR-LF
    ascii-crlf-edit.txt
    ASCII text with CR-LF line ending
    edited in package manager in IM
    CR-LFLFCR-CR-LFCR-LF

    This has been detected in 8.31 and tested and verified in 8.4.

    Attachments