ferrirW commented on code in PR #6746:
URL: https://github.com/apache/rocketmq/pull/6746#discussion_r1193408769
##########
client/src/main/java/org/apache/rocketmq/client/Validators.java:
##########
@@ -77,6 +80,12 @@ public static void checkMessage(Message msg,
DefaultMQProducer defaultMQProducer
throw new MQClientException(ResponseCode.MESSAGE_ILLEGAL,
"the message body size over max value, MAX: " +
defaultMQProducer.getMaxMessageSize());
}
+
+ String lmqPath =
msg.getUserProperty(MessageConst.PROPERTY_INNER_MULTI_DISPATCH);
+ if (StringUtils.contains(lmqPath, MixAll.PATH_SEPARATOR)) {
+ throw new MQClientException(ResponseCode.MESSAGE_ILLEGAL,
+ "INNER_MULTI_DISPATCH " + lmqPath + " can not contains '/'
character");
Review Comment:
log should update with specfic file separator
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]