1. 05 Jan, 2021 1 commit
  2. 02 Feb, 2021 1 commit
  3. 14 Dec, 2020 1 commit
  4. 11 Dec, 2020 1 commit
  5. 31 Mar, 2020 1 commit
    • Philippe Pepiot's avatar
      [server] prevent returning closed cursor to the database pool · 1d2c1404a96a
      Philippe Pepiot authored
      In since c8c6ad8adbdb init_repository use repo.internal_cnx() instead of
      repo.system_source.get_connection() so it use the pool and we should not close
      cursors from the pool before returning it back. Otherwise we may have
      "connection already closed" error.
      
      This bug only trigger when connection-pool-size = 1. Since we are moving to use
      a dynamic pooler we need to get this fixed.
      This does not occur with sqlite since the connection wrapper instantiate new
      cursor everytime, but this occur with other databases.
      
      --HG--
      branch : 3.26
      1d2c1404a96a
  6. 10 Dec, 2020 1 commit
    • Nicola Spanti's avatar
      [server] Set language of connection in all cases · 2f450a68ad7f
      Nicola Spanti authored
      If `self.lang` was already defined (aka not `None`), the language
      was not set. In consequence, when a pview was called, the language
      was always considered to be english, this piece of information is
      used by gettext, so it resulted in translation always done in
      english language instead of using user preference as excepted.
      
      closes #87
      
      --HG--
      branch : 3.26
      2f450a68ad7f
  7. 22 Sep, 2020 1 commit
  8. 25 Sep, 2020 1 commit
  9. 18 Sep, 2020 1 commit
  10. 05 Mar, 2020 3 commits
  11. 25 Feb, 2020 4 commits
    • Julien Tayon's avatar
      [ldapfeed] add option to enable starttls on ldap servers · 2ad148f22c2f
      Julien Tayon authored
      Modern ldap servers connection often use, or even require starttls.
      
      --HG--
      branch : 3.26
      2ad148f22c2f
    • Philippe Pepiot's avatar
      [ldapfeed] re-enable ldap tests for python 3.7 · 4ebfdf607b49
      Philippe Pepiot authored
      This was disabled because ldap3<2 wasn't compatible with python 3.7
      While I'm here, drop unseless newline.
      
      --HG--
      branch : 3.26
      4ebfdf607b49
    • Julien Tayon's avatar
      [ldapfeed] make code compatible with ldap3>=2 · 5c35b94debfc
      Julien Tayon authored
      
      
      * Some constants have been renamed.
      * Directly bind when data-cnx-dn/data-cnx-password are provided, some servers,
        including ours require this.
      * Use raise_exceptions=True to avoid ignored ldap errors
      * raise in case of failed anonymous bind
      * do not search for "dn" attribute because this raise an "invalid attribute"
        with new ldap3 versions
      * Password is now returned as bytes, so no longer need to encode them before crypt.
      * modification_date is now returned as a datetime object
      Co-Authored-By: Philippe Pepiot's avatarPhilippe Pepiot <philippe.pepiot@logilab.fr>
      
      Closes #16073071
      
      --HG--
      branch : 3.26
      5c35b94debfc
    • Philippe Pepiot's avatar
      [ldapfeed] use LDAP_SCOPES to find user-scope · 1206b6fa1173
      Philippe Pepiot authored
      We already have LDAP_SCOPES dict defining possible scopes, this avoid possible code injection from config...
      Thus we can drop global variables already defined in LDAP_SCOPES since they are not used directly anymore.
      
      --HG--
      branch : 3.26
      1206b6fa1173
  12. 13 Feb, 2020 1 commit
  13. 12 Feb, 2020 1 commit
  14. 10 Feb, 2020 1 commit
  15. 11 Dec, 2020 1 commit
  16. 31 Mar, 2020 1 commit
    • Philippe Pepiot's avatar
      [server] prevent returning closed cursor to the database pool · 11ecdf5aca80
      Philippe Pepiot authored
      In since c8c6ad8adbdb init_repository use repo.internal_cnx() instead of
      repo.system_source.get_connection() so it use the pool and we should not close
      cursors from the pool before returning it back. Otherwise we may have
      "connection already closed" error.
      
      This bug only trigger when connection-pool-size = 1. Since we are moving to use
      a dynamic pooler we need to get this fixed.
      This does not occur with sqlite since the connection wrapper instantiate new
      cursor everytime, but this occur with other databases.
      
      --HG--
      branch : 3.27
      11ecdf5aca80
  17. 10 Dec, 2020 1 commit
    • Nicola Spanti's avatar
      [server] Set language of connection in all cases · f32b158d8fed
      Nicola Spanti authored
      If `self.lang` was already defined (aka not `None`), the language
      was not set. In consequence, when a pview was called, the language
      was always considered to be english, this piece of information is
      used by gettext, so it resulted in translation always done in
      english language instead of using user preference as excepted.
      
      closes #87
      
      --HG--
      branch : 3.27
      f32b158d8fed
  18. 18 Mar, 2020 1 commit
  19. 17 Mar, 2020 1 commit
    • Philippe Pepiot's avatar
      [pkg] add python3 only pypi specifiers · 7d67f69ebe88
      Philippe Pepiot authored
      This is only for pypi statistics purposes.
      Also add 'Programming Language :: Python', looks obvious but seems to be sane to have this as well.
      
      --HG--
      branch : 3.27
      7d67f69ebe88
  20. 05 Mar, 2020 1 commit
  21. 25 Feb, 2020 5 commits
  22. 10 Feb, 2020 1 commit
  23. 11 Feb, 2020 3 commits
  24. 01 Feb, 2020 2 commits
  25. 31 Jan, 2020 2 commits
  26. 14 Jan, 2020 2 commits