Incorrect string replacement order in Camel SNMP?

2015-10-02 Thread Dmitry Zolotukhin
Hi, In Camel SNMP, the org.apache.camel.component.snmp.SnmpConverters class has a static “getXmlSafeString” method which escapes unsafe characters by replacing them. However, the order of applying replacements is not correct:     private static String getXmlSafeString(String string) {     r

Incorrect string replacement order in Camel SNMP?

2015-10-02 Thread Dmitry Zolotukhin
Hi, In Camel SNMP, the org.apache.camel.component.snmp.SnmpConverters class has a static “getXmlSafeString” method which escapes unsafe characters by replacing them. However, the order of applying replacements is not correct: private static String getXmlSafeString(String string) { re