Wrong error code from xbcrypt

Bug #1677530 reported by Shahriyar Rzayev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.3
Triaged
Medium
Unassigned
2.4
Triaged
Medium
Unassigned

Bug Description

Description:

$ touch test.xbcrypt
$ echo "Hello World" > test.xbcrypt

$ /home/shahriyar.rzaev/Percona_Xtrabackups/xb_2.4/usr/local/xtrabackup/bin/xtrabackup --decrypt=AES256 --encrypt-key='VVTBwgM4UhwkTTV98fhuj+D1zyWoA89K' --target-dir=.
/home/shahriyar.rzaev/Percona_Xtrabackups/xb_2.4/usr/local/xtrabackup/bin/xtrabackup version 2.4.5 based on MySQL server 5.7.13 Linux (x86_64) (revision id: 38af87d)
170330 09:20:40 [01] decrypting ./test.xbcrypt
xbcrypt:xb_crypt_read_chunk: unable to read chunk header data at offset 0x0.
170330 09:20:40 completed OK!

$ echo $?
0

Same thing for xbcrypt:

$ xbcrypt -d -k 'VVTBwgM4UhwkTTV98fhuj+D1zyWoA89K' -a AES256 -i test.xbcrypt
xbcrypt:xb_crypt_read_chunk: unable to read chunk header data at offset 0x0.

$ echo $?
0

Tags: qa
summary: - Wrong completed OK and return code from xtrabackup --decrypt
+ Wrong completed OK and return code from xtrabackup --decrypt and xbcrypt
summary: - Wrong completed OK and return code from xtrabackup --decrypt and xbcrypt
+ Wrong completed OK and return code from xbcrypt
summary: - Wrong completed OK and return code from xbcrypt
+ Wrong error code from xbcrypt from xbcrypt
summary: - Wrong error code from xbcrypt from xbcrypt
+ Wrong error code from xbcrypt
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-786

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.