zuora_connect 3.1.5.pre.a → 3.1.5.pre.d
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b6d724306897543a323fd69229a7f76cbc53ab37c6a7d4afc67fed8a32ff742
|
4
|
+
data.tar.gz: cdadbbfc0923a51176218dafb946b72e2e60e5575a495b0670565c48bdad1ede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35d5ff782e1043a831efdd21ff37f725d8056b65ad56f1203cb53a46adcdabb2fe6a31f002b2c6f41a179735b361e6217b193782f80f7d67e5071524d10f0712
|
7
|
+
data.tar.gz: 8af12b1602bb355c5585c87df11869072cff69137bbe3258f1d6318a0377e6341b4c205bde5492ee9a430c2b3295c6fdbe2977e4daf9cd01be38293053a4f7a3
|
@@ -52,7 +52,7 @@ module ZuoraConnect
|
|
52
52
|
|
53
53
|
def provision
|
54
54
|
if ZuoraConnect.configuration.disable_provisioning
|
55
|
-
render(json: { status: 403, message: 'Provisioning is suspended
|
55
|
+
render(json: { status: 403, message: 'Provisioning is suspended' }, status: 403) && return
|
56
56
|
end
|
57
57
|
|
58
58
|
create_new_instance
|
@@ -516,8 +516,11 @@ module ZuoraConnect
|
|
516
516
|
else
|
517
517
|
ZuoraConnect::Exceptions::Error.new("Invalid encryption method '#{encryption_type}'.")
|
518
518
|
end
|
519
|
-
rescue ArgumentError => ex
|
520
|
-
if
|
519
|
+
rescue ArgumentError, OpenSSL::Cipher::CipherError => ex
|
520
|
+
if (
|
521
|
+
ex.is_a?(ArgumentError) && ['invalid base64', 'data must not be empty'].include?(ex.message) ||
|
522
|
+
ex.is_a?(OpenSSL::Cipher::CipherError) && ['wrong final block length', 'bad decrypt'].include?(ex.message)
|
523
|
+
) && encryption_type == :envelope && (kms_tries += 1) < 3
|
521
524
|
ZuoraConnect.logger.warn("Fallback to encryption 'direct', from '#{encryption_type}'", ex, self.default_ougai_items)
|
522
525
|
encryption_type = :direct
|
523
526
|
retry
|
@@ -583,7 +583,15 @@ module ZuoraConnect
|
|
583
583
|
zuora_details.merge!({:error => ex.response.body})
|
584
584
|
end
|
585
585
|
ZuoraConnect.logger.error("UI Authorization Error", ex, zuora: zuora_details)
|
586
|
-
|
586
|
+
|
587
|
+
respond_to do |format|
|
588
|
+
format.html {
|
589
|
+
render "zuora_connect/static/error_unhandled", locals: {exception: ex, skip_exception: true}, layout: false, status: 500
|
590
|
+
}
|
591
|
+
format.js {
|
592
|
+
render "zuora_connect/static/error_unhandled", locals: {exception: ex, skip_exception: true}, layout: false, status: 500
|
593
|
+
}
|
594
|
+
end
|
587
595
|
end
|
588
596
|
return
|
589
597
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.5.pre.
|
4
|
+
version: 3.1.5.pre.d
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|