From 547ca7f6fcda4c8f619361f5529658befe0e3733 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Wed, 10 Jan 2024 08:50:30 -0500 Subject: [PATCH] [?] Log message for invalid characters. --- server/core/src/rodsAgent.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/core/src/rodsAgent.cpp b/server/core/src/rodsAgent.cpp index 34837161ac..892824f6aa 100644 --- a/server/core/src/rodsAgent.cpp +++ b/server/core/src/rodsAgent.cpp @@ -29,6 +29,7 @@ #include "irods/reconstants.hpp" #include "irods/replica_access_table.hpp" #include "irods/replica_state_table.hpp" +#include "irods/rodsErrorTable.h" #include "irods/rsApiHandler.hpp" #include "irods/server_utilities.hpp" #include "irods/sockCommNetworkInterface.hpp" @@ -141,8 +142,9 @@ int receiveDataFromServer(int conn_tmp_socket) const auto pos = tmpStr.find('='); if (pos == std::string_view::npos) { - // No equal sign was found. - continue; + log_agent_factory::error( + "{}: Malformed payload: please check the client's settings for invalid characters.", __func__); + return SYS_AGENT_INIT_ERR; } const auto lhs = tmpStr.substr(0, pos);