1. 25 Sep, 2024 5 commits
    • Arnaud Fontaine's avatar
      df675c34
    • Arnaud Fontaine's avatar
    • Arnaud Fontaine's avatar
      zope5: Since 5.8.1 missing Content-Type HTTP header is interpreted as... · fdd51228
      Arnaud Fontaine authored
      zope5: Since 5.8.1 missing Content-Type HTTP header is interpreted as application/x-www-form-urlencoded.
      
      Zope.git:
        commit 5b324f6c461f5ea1cc069739b6c32a1a5ff59df9
        Date:   Thu Jan 19 07:15:18 2023 +0100
          replace `cgi.FieldStorage` by `multipart` (#1094)
          * interpret a missing `CONTENT_TYPE` as `application/x-www-form-urlencoded`
      
      With cgi.FieldStorage, it was interpretated as text/plain so Content-Type has to
      be provided now (even for WebDAV despite RFC 4918 stating that it *SHOULD* be
      provided).
      
      Some Unit Tests did not provide such header at all but this was wrong (such as
      erp5_stripe:testStripe where the real request has application/json as
      Content-Type and not text/plain).
      fdd51228
    • Jérome Perrin's avatar
      IdTool: handle group_id on python3 · ff5ac5f6
      Jérome Perrin authored
      group_id is used as key of OOBtree and as documented, it's not
      possible to mix keys that can not be compared, so we can not have a mix
      of string and bytes, for consistency with other BTrees, such as the
      ones used for OFS.
      group_id is also used in a SQL column which is BINARY, this is
      problematic on py3 because the selected values will be returned as bytes,
      but we expect str here. Because we don't want to run a data migration,
      we adjust the select methods to convert to str while selecting.
      
      Since years there was a warning that id_group must be a string, now we
      make it a bit stricter, we also enforce that the id_group is valid UTF-8.
      
      A few more tests and assertions were also added.
      
      Reviewed-on: !1980
      ff5ac5f6
    • Nicolas Wavrant's avatar
      erp5_antivirus_clammit: fix field name in ClammitConnector_view · f02d7675
      Nicolas Wavrant authored
      The ssl/x509 were renamed after we decided to change the name of the
      holding property sheet during the code review. The code was updated,
      but not this form
      f02d7675
  2. 24 Sep, 2024 3 commits
  3. 23 Sep, 2024 12 commits
  4. 20 Sep, 2024 1 commit
  5. 19 Sep, 2024 4 commits
  6. 18 Sep, 2024 3 commits
  7. 17 Sep, 2024 11 commits
  8. 16 Sep, 2024 1 commit
    • Romain Courteaud's avatar
      erp5_hal_json_style/erp5_web: fix http cache condition · bcd82831
      Romain Courteaud authored
      The main query to the hateoas web section must be cache by the browser,
      to reduce the number of queries by 2.
      
      Caching policy manager conditions are checked before calculating the query result,
      and so, it is not possible anymore to wait for the script to explicitely
      ask for the result to be cached.
      bcd82831