zuora_connect 2.0.57b → 2.0.57c
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zuora_connect/controllers/helpers.rb +12 -6
- data/lib/zuora_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50b67a20d872cea7f5fdb06fbf74a8a5da78d81d754db2e910a097975ce8690f
|
4
|
+
data.tar.gz: 8c8de8f03df3794ce84750ae77d88a3c50d8f5344da539d54b72fe2e35ace705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a12ac805026be398eb37af9c808c49adb459b1f0bf6a28dc27396ad446bb257b4d6ed89a31c0728b95e3e53e41990baf7cd6da3d5b3b713bc80c113d1eec391
|
7
|
+
data.tar.gz: 0e0f54ba8e4e6e1fdfec0444d0d86a41949455f1512725c50107e4ebc4778b707e173d7be65547fab40a37bb6db93e3c17120119e34821b58ee66c50626e87ee
|
@@ -475,13 +475,19 @@ module ZuoraConnect
|
|
475
475
|
end
|
476
476
|
redirect_to "https://#{zuora_host}/apps/newlogin.do?retURL=#{request.fullpath}"
|
477
477
|
return
|
478
|
-
|
479
|
-
|
480
|
-
if
|
481
|
-
|
478
|
+
|
479
|
+
rescue ZuoraAPI::Exceptions::ZuoraAPIError, Exception => ex
|
480
|
+
if ex.message.include?("Referenced User resource(s) not found") && ex.class == ZuoraAPI::Exceptions::ZuoraAPIError
|
481
|
+
locals = {title: "Provisioning Error", message: "New tenats need to be provisioned by API Gateway('#{ex.message}'). Please contact support."}
|
482
|
+
render "zuora_connect/static/error_handled", locals: locals, status: 400, layout: false}
|
483
|
+
else
|
484
|
+
session.clear
|
485
|
+
if defined?(ex.response) && ex.response.present? && defined?(ex.response.body)
|
486
|
+
zuora_details.merge!({:error => ex.response.body})
|
487
|
+
end
|
488
|
+
ZuoraConnect.logger.error("UI Authorization Error", ex, zuora: zuora_details)
|
489
|
+
render "zuora_connect/static/error_unhandled", locals: {exception: ex, skip_exception: true}, layout: false, status: 500
|
482
490
|
end
|
483
|
-
ZuoraConnect.logger.error("UI Authorization Error", ex, zuora: zuora_details)
|
484
|
-
render "zuora_connect/static/error_unhandled", locals: {exception: ex, skip_exception: true}, layout: false, status: 500
|
485
491
|
return
|
486
492
|
end
|
487
493
|
elsif request["data"] && /^([A-Za-z0-9+\/\-\_]{4})*([A-Za-z0-9+\/]{4}|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{2}==)$/.match(request["data"].to_s)
|
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: 2.0.
|
4
|
+
version: 2.0.57c
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|