MinXie1209 commented on issue #4241:
URL: https://github.com/apache/rocketmq/issues/4241#issuecomment-1118497167

   example:
   
    @Test
       public void testDecode() {
           Map<String, String> properties = new HashMap<>();
           String containsSep = MessageDecoder.NAME_VALUE_SEPARATOR + "K1";
           properties.put(containsSep, "V1");
           String res = MessageDecoder.messageProperties2String(properties);
           Map<String, String> decodeProperties = 
MessageDecoder.string2messageProperties(res);
           assertThat(properties.size()).isEqualTo(decodeProperties.size());
       }
   
   when properties has MessageDecoder.NAME_VALUE_SEPARATOR or 
PROPERTY_SEPARATOR ,it cannot restore data


-- 
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]

Reply via email to