From 5925264a867bbf8b759b4eaf7bea3859f7ef5d24 Mon Sep 17 00:00:00 2001 From: Cecilia Liu Date: Mon, 12 Aug 2024 06:23:23 -0500 Subject: [PATCH 1/3] MAT-7584 fix qrda export issue --- service/web_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/web_controller.rb b/service/web_controller.rb index b705b47..9cc6f58 100644 --- a/service/web_controller.rb +++ b/service/web_controller.rb @@ -71,7 +71,7 @@ def as_json(*args) measure_dto = request.params # Uses the Rack::JSONBodyParser middleware # Prepare CQM Measure - madie_measure = JSON.parse(measure_dto["measure"]) + madie_measure = JSON.parse(measure_dto["measure"],max_nesting: 150) measure = CQM::Measure.new(madie_measure) unless measure_dto["measure"].nil? if measure.nil? return [400, "Measure is empty."] From f9936411e6b2783efc2631158ce6245283ef7f0a Mon Sep 17 00:00:00 2001 From: Cecilia Liu Date: Mon, 12 Aug 2024 06:38:58 -0500 Subject: [PATCH 2/3] MAT-7584 disable max_nesting --- service/web_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/web_controller.rb b/service/web_controller.rb index 9cc6f58..c6740c3 100644 --- a/service/web_controller.rb +++ b/service/web_controller.rb @@ -71,7 +71,7 @@ def as_json(*args) measure_dto = request.params # Uses the Rack::JSONBodyParser middleware # Prepare CQM Measure - madie_measure = JSON.parse(measure_dto["measure"],max_nesting: 150) + madie_measure = JSON.parse(measure_dto["measure"],:max_nesting => false) measure = CQM::Measure.new(madie_measure) unless measure_dto["measure"].nil? if measure.nil? return [400, "Measure is empty."] From 922eefbd13ca83f4d07cc3077797216b2b0e4356 Mon Sep 17 00:00:00 2001 From: Cecilia Liu Date: Mon, 12 Aug 2024 09:31:46 -0500 Subject: [PATCH 3/3] MAT-7584 set max_nesting to 512 --- service/web_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/web_controller.rb b/service/web_controller.rb index c6740c3..6758717 100644 --- a/service/web_controller.rb +++ b/service/web_controller.rb @@ -71,7 +71,7 @@ def as_json(*args) measure_dto = request.params # Uses the Rack::JSONBodyParser middleware # Prepare CQM Measure - madie_measure = JSON.parse(measure_dto["measure"],:max_nesting => false) + madie_measure = JSON.parse(measure_dto["measure"],max_nesting: 512) measure = CQM::Measure.new(madie_measure) unless measure_dto["measure"].nil? if measure.nil? return [400, "Measure is empty."]