1. 10 Sep, 2019 1 commit
    • Jérome Perrin's avatar
      hal_json_style: Tolerate documents with non-utf8 properties · 49908326
      Jérome Perrin authored
      HAL JSON uses JSON, which uses UTF-8, but properties of ERP5 documents
      does not enforce any specific encoding, so if we happen to have
      documents with string properties that are not UTF-8 compatible, they
      could not be queried with HAL JSON (json.dumps was raising UnicodeError)
      
      This pre-process field default properties and document title to make
      sure they can be serialized as json. This assumes that configuration
      (form definition, actions, ...) will be valid UTF-8, but just does extra
      effort to make sure "broken" data can be displayed without error.
      
      /reviewed-on !928
      49908326
  2. 09 Sep, 2019 17 commits
  3. 06 Sep, 2019 7 commits
  4. 05 Sep, 2019 5 commits
  5. 04 Sep, 2019 1 commit
  6. 03 Sep, 2019 2 commits
  7. 01 Sep, 2019 2 commits
  8. 30 Aug, 2019 3 commits
    • Vincent Pelletier's avatar
      ZMySQLDA.db: Close any replaced connection on reconnection. · 604e3ff3
      Vincent Pelletier authored
      MySQLdb relies on garbage collection to close the connection. Relying
      on such asynchronous event as the garbage collector is never a good idea,
      and this can cause issues when the transaction associated with the
      connection is started: because the connector is being replaced, it will
      never be properly aborted. So do not take chances and do not leak open
      connections: always close it.
      604e3ff3
    • Vincent Pelletier's avatar
      ZMySQLDA.db: Clarify that reconnection will only happen on actually closed connections. · 86849427
      Vincent Pelletier authored
      So that it's more apparent that we are not leaking a potentially active
      transaction on that connection.
      86849427
    • Vincent Pelletier's avatar
      ZMySQLDA.db: Drop special handling of syntax errors. · 29b30dc5
      Vincent Pelletier authored
      The same error code can be used for different causes. Specifically, it can
      be used for SQL-level syntax error (which this code intended to handle),
      or it can be used for fulltext syntax error (which makes this code raise).
      Also, drop forced-reconnection, because this means a still-established
      connection make be kept around and completely detected from current
      transaction, which may cause a database snapshot to be kept indefinitely
      (actually, until mariadb's timeout), in turn causing performance issue
      because of associated InnoDB snapshot.
      29b30dc5
  9. 29 Aug, 2019 2 commits