1. 06 Apr, 2022 3 commits
    • Arnaud Fontaine's avatar
      RFC: mysql: With universal_newlines, python3 subprocess assumes that... · 303e1e70
      Arnaud Fontaine authored
      RFC: mysql: With universal_newlines, python3 subprocess assumes that communicate() parameter is str() (not bytes()).
      
      But mysql_script_file was opened as a binary files and thus a bytes() was returned:
          File "etc/run/mariadb_update", line 51, in <module>
            sys.exit(slapos.recipe.generic_mysql.mysql.updateMysql(mysql_upgrade_binary='/srv/slapgrid/slappart3/bin/mysql_upgrade', mysql_binary='/srv/slapgrid/slappart3/bin/mysql', mysql_script_file='/srv/slapgrid/slappart3/etc/mariadb_initial_setup.sql'))
          File "parts/slapos.cookbook-repository/slapos/recipe/generic_mysql/mysql.py", line 31, in updateMysql
            result = mysql.communicate(mysql_script)[0]
          File "parts/python3/lib/python3.7/subprocess.py", line 964, in communicate
            stdout, stderr = self._communicate(input, endtime, timeout)
          File "parts/python3/lib/python3.7/subprocess.py", line 1692, in _communicate
            self._save_input(input)
          File "parts/python3/lib/python3.7/subprocess.py", line 1774, in _save_input
            self._input = self._input.encode(self.stdin.encoding,
        AttributeError: 'bytes' object has no attribute 'encode'
      303e1e70
    • Arnaud Fontaine's avatar
    • Arnaud Fontaine's avatar
      707bb390
  2. 14 Mar, 2022 2 commits
  3. 12 Mar, 2022 3 commits
  4. 10 Mar, 2022 1 commit
  5. 09 Mar, 2022 1 commit
  6. 08 Mar, 2022 1 commit
  7. 03 Mar, 2022 1 commit
  8. 25 Feb, 2022 1 commit
    • Arnaud Fontaine's avatar
      Zope 4.x: Fix OFS.Image PUT() for Python 2 (#1015). · 8cd7a917
      Arnaud Fontaine authored
      This fixes failures in erp5_dms:testWebDavSupport.
      
        Traceback (innermost last):
          [...]
          Module Products.ERP5Type.patches.OFSImage, line 94, in PUT
            return PUT_orig(self, REQUEST, RESPONSE)
          Module OFS.Image, line 665, in PUT
            data = data.encode('UTF-8')
        UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 10: ordinal not in range(128)
      8cd7a917
  9. 14 Feb, 2022 1 commit
  10. 11 Feb, 2022 3 commits
  11. 09 Feb, 2022 5 commits
  12. 08 Feb, 2022 1 commit
    • Łukasz Nowak's avatar
      caddy-frontend: Keep Server header intact · 3d6af70d
      Łukasz Nowak authored
      Server header might be changed by client facing caddy, for which caddy code
      has been fixed to not transmit the Server header at all by default.
      In ATS Server header has been disabled by configuration.
      haproxy does not add Server header at all.
      Thanks to improvement in the test backend, it's asserted that Server header
      send by the backend is left intact.
      3d6af70d
  13. 07 Feb, 2022 11 commits
  14. 03 Feb, 2022 6 commits