← Back to team overview

holland-coredev team mailing list archive

[Bug 1925270] [NEW] Errors when passwords contain unicode

 

Public bug reported:

Conditions:

- Holland 1.1.22
- Password containing "£" as 15th character
- Password in ~/.my.cnf, not in Holland config files
- mysqldump  Ver 8.0.24 for Linux on x86_64 (MySQL Community Server - GPL)


Behavior observed:


# holland bk --dry-run
Holland 1.1.22 started with pid 8717
--- Starting dry run ---
Creating backup path /var/spool/holland/default/20210420_194301
Estimating size of mysqldump backup
Failed to connect to database
MySQL Error 'ascii' codec can't encode character u'\xa3' in position 15: ordinal not in range(128)
Backup failed after 0.01 seconds
Backup failed: Failed backup: default
--- Ending dry run ---


mysqldmup alone works fine.

Google says this particular error possibly has to do with Python's str()
doing an implicit encode, and perhaps explicit encode/decodes are
better.

** Affects: holland-backup
     Importance: Undecided
         Status: New


** Tags: python unicode

-- 
You received this bug notification because you are a member of Holland
Build, which is subscribed to holland-backup.
https://bugs.launchpad.net/bugs/1925270

Title:
  Errors when passwords contain unicode

Status in holland-backup:
  New

Bug description:
  Conditions:

  - Holland 1.1.22
  - Password containing "£" as 15th character
  - Password in ~/.my.cnf, not in Holland config files
  - mysqldump  Ver 8.0.24 for Linux on x86_64 (MySQL Community Server - GPL)


  
  Behavior observed:

  
  # holland bk --dry-run
  Holland 1.1.22 started with pid 8717
  --- Starting dry run ---
  Creating backup path /var/spool/holland/default/20210420_194301
  Estimating size of mysqldump backup
  Failed to connect to database
  MySQL Error 'ascii' codec can't encode character u'\xa3' in position 15: ordinal not in range(128)
  Backup failed after 0.01 seconds
  Backup failed: Failed backup: default
  --- Ending dry run ---


  mysqldmup alone works fine.

  Google says this particular error possibly has to do with Python's
  str() doing an implicit encode, and perhaps explicit encode/decodes
  are better.

To manage notifications about this bug go to:
https://bugs.launchpad.net/holland-backup/+bug/1925270/+subscriptions


Follow ups