zuora_connect 2.0.57n → 2.0.57s
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5e48e465fd04b36fa1992f00cdb1670a44dde0bd7bd9b121446018ec5f1da9e
|
4
|
+
data.tar.gz: 0e44752cdb3d4ecb9647d7965986b4cd56590fe1fdb27c4415f1b8835630b726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cecd469b3bd8d3562201d12fdb1d6860e4a0b124b7268dadd371978cf134c05fe49ec9220898505b542d0a9399c494fb929a7f9dd35ab3660beef5883c578f38
|
7
|
+
data.tar.gz: 47c7f48e0fd5b26f9a169690c36f0fd142820b347c1fd51cb7795280e392ad937ba4396340e7196238eddacc523384c82d254dc7df8fd8b013511370fc6e0da5
|
@@ -15,8 +15,11 @@ if (isHallway()) {
|
|
15
15
|
}
|
16
16
|
|
17
17
|
function isHallway() {
|
18
|
-
var regex = new RegExp("
|
19
|
-
|
18
|
+
var regex = new RegExp("(?<=\\/)services\\/.*");
|
19
|
+
if (regex.test(window.location.pathname)) {
|
20
|
+
return window.location.pathname.match(regex)[0]
|
21
|
+
}
|
22
|
+
return null;
|
20
23
|
}
|
21
24
|
|
22
25
|
function deleteAllCookies() {
|
@@ -210,7 +210,7 @@ module ZuoraConnect
|
|
210
210
|
return self
|
211
211
|
rescue ZuoraConnect::Exceptions::HoldingPattern => ex
|
212
212
|
while self.marked_for_refresh?
|
213
|
-
ZuoraConnect.logger.info("Holding - Expires in #{self.reset_mark_expires_at}. '#{self.new_session_message}'")
|
213
|
+
ZuoraConnect.logger.info("Holding - Expires in #{self.reset_mark_expires_at}. '#{self.new_session_message}'", self.default_ougai_items)
|
214
214
|
sleep(HOLDING_PATTERN_SLEEP)
|
215
215
|
end
|
216
216
|
self.reload_attributes([:refresh_token, :oauth_expires_at, :access_token])
|
@@ -219,7 +219,7 @@ module ZuoraConnect
|
|
219
219
|
rescue ZuoraConnect::Exceptions::MissMatch => ex
|
220
220
|
self.delete_app_instance
|
221
221
|
session = {}
|
222
|
-
ZuoraConnect.logger.error(ex, app_instance_id_new: self.task_data['id'])
|
222
|
+
ZuoraConnect.logger.error(ex, self.default_ougai_items.merge({app_instance_id_new: self.task_data['id']}))
|
223
223
|
retry
|
224
224
|
rescue ZuoraConnect::Exceptions::InvalidCredentialSet => ex
|
225
225
|
raise
|
@@ -229,7 +229,7 @@ module ZuoraConnect
|
|
229
229
|
self.build_task(task_data: session["#{self.id}::task_data"], session: session)
|
230
230
|
return self
|
231
231
|
else
|
232
|
-
ZuoraConnect.logger.error("Failed new session", ex)
|
232
|
+
ZuoraConnect.logger.error("Failed new session", ex, self.default_ougai_items)
|
233
233
|
raise
|
234
234
|
end
|
235
235
|
ensure
|
@@ -48,7 +48,7 @@ module ZuoraConnect
|
|
48
48
|
render json: {"status": 401, "message": "Missing mapping or no deployment for '#{zuora_host}-#{zuora_entity_id}' ."}, status: :unauthorized
|
49
49
|
return
|
50
50
|
elsif appinstances.size > 1
|
51
|
-
render json: {"status": 401, "message": "More than one app instance binded to host and entity ids. Please indicate correct instance via 'zuora-instance-id' header", "instances": appinstances.map {|instance| instance.id } }, status: :unauthorized
|
51
|
+
render json: {"status": 401, "message": "More than one app instance binded to host and entity ids. Please indicate correct instance via 'zuora-instance-id' header", "instances": appinstances.map {|instance| instance.id }.sort }, status: :unauthorized
|
52
52
|
return
|
53
53
|
else
|
54
54
|
@appinstance = appinstances.first
|
@@ -316,18 +316,22 @@ module ZuoraConnect
|
|
316
316
|
}, :layout => false
|
317
317
|
return
|
318
318
|
end
|
319
|
-
ZuoraConnect::Exceptions::APIError.new(message: "#{app_env} navbar url was blank", response: response)
|
319
|
+
raise ZuoraConnect::Exceptions::APIError.new(message: "#{app_env} navbar url was blank", response: response)
|
320
320
|
else
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
321
|
+
query_params = CGI.parse(URI.parse(url).query)
|
322
|
+
app_instance_ids = query_params["app_instance_ids"][0]
|
323
|
+
if app_instance_ids.present?
|
324
|
+
begin
|
325
|
+
task_ids = JSON.parse(Base64.urlsafe_decode64(app_instance_ids))
|
326
|
+
|
327
|
+
appinstances = ZuoraConnect::AppInstance.where(:id => task_ids).pluck(:id, :name)
|
328
|
+
rescue => ex
|
329
|
+
raise ZuoraConnect::Exceptions::APIError.new(message: "Failure in parsing the navbar urls.", response: response)
|
330
|
+
end
|
325
331
|
end
|
326
332
|
end
|
327
|
-
appinstances = ZuoraConnect::AppInstance.where(:id => task_ids).pluck(:id, :name)
|
328
|
-
else
|
329
|
-
appinstances = ZuoraConnect::AppInstance.where("zuora_entity_ids ?& array[:entities] = true AND zuora_domain = :host", entities: [zuora_entity_id], host: zuora_client.rest_domain).pluck(:id, :name)
|
330
333
|
end
|
334
|
+
appinstances ||= ZuoraConnect::AppInstance.where("zuora_entity_ids ?& array[:entities] = true AND zuora_domain = :host", entities: [zuora_entity_id], host: zuora_client.rest_domain).pluck(:id, :name)
|
331
335
|
end
|
332
336
|
|
333
337
|
zuora_user_id = cookies['Zuora-User-Id'] || session["ZuoraCurrentIdentity"]['userId']
|
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.57s
|
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-06-
|
11
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|