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: 19aedfac159e02a6098ddd1d40b8c05c76ed0198a31fefb059fc1efee21f9680
4
- data.tar.gz: 1e404cfa4449dca2f20380fb25252178739a694115b7335909dd20f500a4cf72
3
+ metadata.gz: 8b6d724306897543a323fd69229a7f76cbc53ab37c6a7d4afc67fed8a32ff742
4
+ data.tar.gz: cdadbbfc0923a51176218dafb946b72e2e60e5575a495b0670565c48bdad1ede
5
5
  SHA512:
6
- metadata.gz: e0b52c5b8639d0ead9c33ea46951eb71f6f543bb01e911ef140fa3c55bab38d3c7cbc3445f38ec5064d91093fc1d39427cc0f7be52e4d27652d82a436a708e04
7
- data.tar.gz: 0a73154220907b992dcf750a036e654c64989f16e45ecb3d24bb89f894da008516efd0ab7853190852dd2ea22ec3edd2490184194d38d877aad29150a40aa377
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 until 2022-08-17' }, status: 403) && return
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 ex.message == 'invalid base64' && encryption_type == :envelope && (kms_tries += 1) < 3
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
- render "zuora_connect/static/error_unhandled", locals: {exception: ex, skip_exception: true}, layout: false, status: 500
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraConnect
4
- VERSION = "3.1.5-a"
4
+ VERSION = "3.1.5-d"
5
5
  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.a
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-08-10 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment