You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by ro...@apache.org on 2026/01/25 04:14:05 UTC
(axis-axis2-c-core) 03/05: Fix spurious AXIS2_FAILURE during module loading (AXIS2C-1408)
This is an automated email from the ASF dual-hosted git repository.
robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git
commit c3e9dbc066fc37339343eca4bf5af416463eb68d
Author: Robert Lazarski <ro...@gmail.com>
AuthorDate: Sat Jan 24 14:58:35 2026 -1000
Fix spurious AXIS2_FAILURE during module loading (AXIS2C-1408)
axis2_module_desc_is_param_locked() was setting the environment error
status to AXIS2_FAILURE when the module had no parent, even though this
is a normal state during module loading (parent is set later by
axis2_conf_add_module).
The function correctly returned AXIS2_FALSE (param not locked), but the
error status left the env in a failure state, causing callers to think
an error occurred.
Fix: Remove the AXIS2_ERROR_SET call when parent is NULL, since this is
expected behavior and the function returns a valid result.
Co-Authored-By: Claude Opus 4.5 <no...@anthropic.com>
---
src/core/description/module_desc.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/core/description/module_desc.c b/src/core/description/module_desc.c
index a5b27c7d9..78e021fd9 100644
--- a/src/core/description/module_desc.c
+++ b/src/core/description/module_desc.c
@@ -412,7 +412,11 @@ axis2_module_desc_is_param_locked(
/* checking the locked value of parent */
if(!module_desc->parent)
{
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_STATE_MODULE_DESC, AXIS2_FAILURE);
+ /* Parent not set yet (normal during module loading) - param cannot be
+ * locked at config level, so just return false without setting error.
+ * AXIS2C-1408: Previously this set AXIS2_ERROR_INVALID_STATE_MODULE_DESC
+ * which left the env in an error state even though operation succeeded.
+ */
return AXIS2_FALSE;
}
locked = axis2_conf_is_param_locked(module_desc->parent, env, param_name);