1. 05 Mar, 2021 1 commit
  2. 02 Mar, 2021 1 commit
  3. 08 Feb, 2021 1 commit
  4. 28 Jan, 2021 1 commit
  5. 19 Jan, 2021 1 commit
  6. 26 Jan, 2021 1 commit
  7. 14 Dec, 2020 2 commits
  8. 11 Dec, 2020 1 commit
  9. 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
  10. 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
  11. 22 Sep, 2020 1 commit
  12. 25 Sep, 2020 2 commits
  13. 18 Sep, 2020 1 commit
  14. 05 Mar, 2020 5 commits
  15. 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
  16. 13 Feb, 2020 2 commits
  17. 12 Feb, 2020 1 commit
  18. 10 Feb, 2020 1 commit
  19. 27 Aug, 2019 1 commit
  20. 26 Jun, 2019 1 commit
  21. 20 Jun, 2019 1 commit
  22. 11 Sep, 2019 3 commits
    • Laurent Peuch's avatar
      [fix] reference to underclared and unused variable kwargs · 1853c5e13154
      Laurent Peuch authored
      --HG--
      branch : 3.26
      1853c5e13154
    • Philippe Pepiot's avatar
      Avoid to update inlined relation column to NULL when deleting entities · 1a2c7d6397ec
      Philippe Pepiot authored
      When deleting entities, cubicweb run a rql DELETE on all relations to trigger hooks.
      For an inlined relation this also mean set the column to NULL. This operation
      may fail if there's additional constraints on the column.
      
      Also this is a weird and useless behavior since deleting the entity row will by
      definition delete the relation.
      
      We still doesn't handle the case where both subject and object are going to be
      deleted because rows need to be deleted in a particular order that cubicweb
      doesn't handle.
      
      Add a test checking UPDATE does not occur but hooks are correctly called.
      
      Closes #17236690
      
      --HG--
      branch : 3.26
      1a2c7d6397ec
    • Philippe Pepiot's avatar
      Drop useless ConstraintInsertionTC · 0481ece35cb2
      Philippe Pepiot authored
      This test does nothing and is here from the begining of repo history.
      
      Now it raise an error "TypeError: Skipped expected string as 'msg' parameter, got 'SkipTest' instead. Perhaps you meant to use a mark?"
      
      Just drop it.
      
      --HG--
      branch : 3.26
      0481ece35cb2
  23. 06 Aug, 2019 3 commits
    • Denis Laxalde's avatar
      Added tag debian/3.26.14-1, 3.26.14 for changeset 172f683a84f6 · 1b4e32301f14
      Denis Laxalde authored
      --HG--
      branch : 3.26
      1b4e32301f14
    • Denis Laxalde's avatar
      [pkg] version 3.26.14 · 172f683a84f6
      Denis Laxalde authored
      --HG--
      branch : 3.26
      172f683a84f6
    • Denis Laxalde's avatar
      [py3] Pass bytes as "msg" to smtplib.SMTP.sendmail() · 9fb4a71f119d
      Denis Laxalde authored
      When passing a unicode string to smtplib.SMTP.sendmail() as "msg"
      argument, there is an implicit bytes encoding using "ascii" encoding in
      python3. Of course this does not work if the string contains non-ASCII
      characters. In fact, config's sendmails method intent to pass bytes to
      smtplib.SMTP.sendmail() as it uses msg.as_string() method.
      Unfortunately, in python3, this method returns a unicode string whereas
      it returns a bytes string in python2; we thus fix this by calling
      as_bytes() method on python3.
      
      As there is no "as_bytes" method in python2, we need to handle python2
      compatibility by hand and either call as_string() or as_bytes().
      
      In testlib, where we mock smtplib.SMTP, we need to keep the "msg"
      argument of Email class (defined in testlib as well) a unicode string.
      Otherwise, it fails to be parsed by email.message_from_string() (from
      stdlib) if it is bytes on python3.
      
      --HG--
      branch : 3.26
      9fb4a71f119d
  24. 24 Jul, 2019 3 commits