From 2bdf5184b67b1369650ea9932c419ed7d36dc4ae Mon Sep 17 00:00:00 2001 From: GDLMadushanka Date: Wed, 16 Aug 2023 19:12:02 +0530 Subject: [PATCH] Introduce strict service path validation Strictly check the service URL to starts with service path. parameterize the enable/disable property Fixes wso2/micro-integrator/issues/2935 --- distribution/src/resources/config-tool/default.json | 1 + .../resources/config-tool/templates/conf/axis2/axis2.xml.j2 | 3 +++ pom.xml | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/distribution/src/resources/config-tool/default.json b/distribution/src/resources/config-tool/default.json index 44b4780af6..19c11ee385 100644 --- a/distribution/src/resources/config-tool/default.json +++ b/distribution/src/resources/config-tool/default.json @@ -14,6 +14,7 @@ "server.disable_rest": false, "server.sandesha2_storage_manager": "inmemory", "server.service_path": "services", + "server.strict_service_path_validation": false, "server.services_directory": "axis2services", "server.modules_directory": "axis2modules", "server.send_stacktrace_details_with_faults": false, diff --git a/distribution/src/resources/config-tool/templates/conf/axis2/axis2.xml.j2 b/distribution/src/resources/config-tool/templates/conf/axis2/axis2.xml.j2 index b25accba9a..d065054851 100644 --- a/distribution/src/resources/config-tool/templates/conf/axis2/axis2.xml.j2 +++ b/distribution/src/resources/config-tool/templates/conf/axis2/axis2.xml.j2 @@ -50,6 +50,9 @@ {{server.service_path}} + + {{server.strict_service_path_validation}} + {{server.services_directory}} diff --git a/pom.xml b/pom.xml index 4632ad9953..8205d4ae72 100644 --- a/pom.xml +++ b/pom.xml @@ -1568,7 +1568,7 @@ 2.1 - 1.6.1-wso2v91 + 1.6.1-wso2v94 1.6.1-wso2v64 [1.6.1, 1.7.0)