Skip to content

Commit

Permalink
Introduce strict service path validation
Browse files Browse the repository at this point in the history
Strictly check the service URL to starts with service path.
parameterize the enable/disable property
Fixes /issues/2935
  • Loading branch information
GDLMadushanka committed Aug 23, 2023
1 parent e1cb99f commit 2bdf518
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions distribution/src/resources/config-tool/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
<!-- settings of your servlet container to map this context path to proper Axis2 servlets -->
<parameter name="servicePath" locked="false">{{server.service_path}}</parameter>

<!-- This property will enable strict service URL validation -->
<parameter name="strictServicePathValidation" locked="false">{{server.strict_service_path_validation}}</parameter>

<!--the directory in which .aar services are deployed inside axis2 repository-->
<parameter name="ServicesDirectory">{{server.services_directory}}</parameter>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@
<org.objenesis.version>2.1</org.objenesis.version>

<!-- Apache Axis2 -->
<axis2.wso2.version>1.6.1-wso2v91</axis2.wso2.version>
<axis2.wso2.version>1.6.1-wso2v94</axis2.wso2.version>
<!-- Please unify axis2 versions in future -->
<axis2.wso2.integration.test.version>1.6.1-wso2v64</axis2.wso2.integration.test.version>
<imp.pkg.version.axis2>[1.6.1, 1.7.0)</imp.pkg.version.axis2>
Expand Down

0 comments on commit 2bdf518

Please sign in to comment.