[freeside-commits] branch FREESIDE_4_BRANCH updated. 73e26fc882f8e57401e6375ba24e51d32c23463a
Ivan Kohler
ivan at freeside.biz
Wed Jan 24 16:22:23 PST 2018
The branch, FREESIDE_4_BRANCH has been updated
via 73e26fc882f8e57401e6375ba24e51d32c23463a (commit)
from 3dd3c5bb7cb8343733164dd706b333ae3f67a55a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 73e26fc882f8e57401e6375ba24e51d32c23463a
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Jan 24 16:22:22 2018 -0800
no need for errors decrypting inadvertantly encrypted payinfo to be fatal, RT#76385
diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm
index 123811037..751e1da3c 100644
--- a/FS/FS/Upgrade.pm
+++ b/FS/FS/Upgrade.pm
@@ -338,7 +338,10 @@ sub upgrade {
});
foreach my $object ( @objects ) {
my $payinfo = $object->decrypt($object->payinfo);
- die "error decrypting payinfo" if $payinfo eq $object->payinfo;
+ if ( $payinfo eq $object->payinfo ) {
+ warn "error decrypting payinfo for $table: $payinfo\n";
+ next;
+ }
$object->payinfo($payinfo);
my $error = $object->replace;
die $error if $error;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Upgrade.pm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list