[ckan-changes] [ckan/ckan] 3c411f: datastore: Prevent unicode/ascii conversion errors

GitHub noreply at github.com
Fri Mar 11 16:50:21 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 3c411f3fde7701841151a2eb369e226b696f6de8
      https://github.com/ckan/ckan/commit/3c411f3fde7701841151a2eb369e226b696f6de8
  Author: Jan Dvořák <mordae at anilinux.org>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M ckanext/datastore/db.py

  Log Message:
  -----------
  datastore: Prevent unicode/ascii conversion errors

Some error messages were causing the errors due to format conversion
of unicode fields into str templates.

Signed-off-by: Jan Dvořák <mordae at anilinux.org>


  Commit: a65a0355f62548bfae3d2232c6a9e56a64eee85a
      https://github.com/ckan/ckan/commit/a65a0355f62548bfae3d2232c6a9e56a64eee85a
  Author: Jan Dvořák <mordae at anilinux.org>
  Date:   2016-03-10 (Thu, 10 Mar 2016)

  Changed paths:
    M ckanext/datastore/db.py

  Log Message:
  -----------
  datastore: use repr() for log message ascii-safety

Logging statements had a potential to crash on unicode inputs.
Make sure they are always escaped.

Signed-off-by: Jan Dvořák <mordae at anilinux.org>


  Commit: 288b26e533b5d0378b2f01b8b216db34879deaa6
      https://github.com/ckan/ckan/commit/288b26e533b5d0378b2f01b8b216db34879deaa6
  Author: Ian Ward <ian at excess.org>
  Date:   2016-03-11 (Fri, 11 Mar 2016)

  Changed paths:
    M ckanext/datastore/db.py

  Log Message:
  -----------
  Merge pull request #2904 from singularita-corp/master

datastore: Prevent unicode/ascii conversion errors


Compare: https://github.com/ckan/ckan/compare/4b18505f2275...288b26e533b5


More information about the ckan-changes mailing list