check if the file specified in --encrypt-key-file is text or binary and trim CRLF if needed,

Bug #1160780 reported by Hrvoje Matijakovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Triaged
Wishlist
Unassigned
2.1
Triaged
Wishlist
Unassigned
2.2
Triaged
Wishlist
Unassigned
2.3
Triaged
Wishlist
Unassigned

Bug Description

It would be more user friendly if XB or innobackupex would check if the if the file specified in --encrypt-key-file is text or binary and trim CRLF if needed, instead of user checking it with the HEX editor.

summary: - check if the file specifed in --encrypt-key-file is text or binary and
+ check if the file specified in --encrypt-key-file is text or binary and
trim CRLF if needed,
description: updated
Revision history for this message
George Ormond Lorch III (gl-az) wrote :

Yeah, this was also discussed a bit during development/testing.

The way the test cases create a file is pretty simple: echo -n "Percona_xtrabackup_is_Awesome!!!" > keyfile

It would also be possible to 'normalize' any content by looking for trailing cr-lf and trimming.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-112

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.