Details
Description
When a NETCONF XML message is corrupted, SAXParseException is raised while parsing the XML message. In some cases, e.g. when there is an invalid character, the exception is raised before all the data in the buffer is read. And in this case the next decoding is started from the point where the parsing was aborted and this in turn will cause another parsing failure. This repeatedly happens until all the remaining data in the buffer is exhausted. If the corrupted XML message is large, then this may put significant load on the controller and generate a lot of log messages.
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 108818,2 | Update buffer readerIndex after XML parsing error | master | netconf | Status: MERGED | -1 | +1 |
| 108836,1 | Update buffer readerIndex after XML parsing error | 6.0.x | netconf | Status: MERGED | -1 | +1 |
| 108837,1 | Update buffer readerIndex after XML parsing error | 5.0.x | netconf | Status: MERGED | -1 | +1 |
| 108839,1 | Update buffer readerIndex after XML parsing error | 4.0.x | netconf | Status: MERGED | -1 | +1 |
| 108862,1 | Fix buffer readerIndex test after XML parse error | 5.0.x | netconf | Status: MERGED | +2 | +1 |
| 108863,1 | Fix buffer readerIndex test after XML parse error | 4.0.x | netconf | Status: MERGED | +2 | +1 |