1. 01 Apr, 2022 3 commits
    • Xavier Thompson's avatar
      slapgrid: Fix promise logging with instance python · 7959b9a5
      Xavier Thompson authored
      The promise runner launched in a subprocess with the instance's python
      redirects stderr to stdout in order to reserve stderr for propagating
      error messages.
      
      However `preexec_fn` is used to run `dropPrivileges` inside the child
      process, so when `dropPrivileges` calls `logger.debug`, the logger
      writes to stderr before the redirection is set up.
      
      To fix this, the `preexec_fn` function is modified to apply the same
      redirection first and revert it at the end. Reverting it avoids the
      need to communicate the new file descriptor for the original stderr
      stream to runpromise.py.
      7959b9a5
    • Jérome Perrin's avatar
      test_check_software: update test to follow vulnerability database update · dc8272b5
      Jérome Perrin authored
      The vulnerability that this test was checking was removed from the
      database, let's use another one that looks more likely to be removed.
      dc8272b5
    • Rafael Monnerat's avatar
      Slaptool Major clean up · 88bdb2d7
      Rafael Monnerat authored
      See merge request !368
      88bdb2d7
  2. 30 Mar, 2022 23 commits
  3. 23 Mar, 2022 1 commit
    • Jérome Perrin's avatar
      standalone: strip ansi codes in logs · 3a62e218
      Jérome Perrin authored
      This fixes a bug when the program output contain some ansi code, like
      the \e[0;31m ansi code to display text in color on the terminal. These
      characters are not allowed in XML so if they end up in the XML-RPC
      messages this cause the underlying expat library to complain that the
      stream is not well-formed (invalid token).
      
      Fortunately, supervisor supports this and has a `strip_ansi` option that
      we can set in the config to prevent these problems.
      3a62e218
  4. 22 Mar, 2022 6 commits
  5. 21 Mar, 2022 2 commits
  6. 18 Mar, 2022 1 commit
  7. 16 Mar, 2022 3 commits
  8. 15 Mar, 2022 1 commit