Invalid XML Exception

Paul Hethmon paul.hethmon at clareitysecurity.com
Mon Apr 11 12:46:03 EDT 2016


It’s a problem with the Base64 decoding. Using Apache Commons I get valid XML, using XMLTooling, I lose the final closing greater than symbol.

Here’s a Base64 string that has that behavior:

PHNhbWxwOkF1dGhuUmVxdWVzdCBJRD0iX0JEMjEwQzU1LTZCQTYtNEFBMC1CQTIzLTNEMDU5RTE2MTQ0NSIgVmVyc2lvbj0iMi4wIiBJc3N1ZUluc3RhbnQ9IjIwMTYtMDQtMTFUMTY6MzM6MDhaIiBEZXN0aW5hdGlvbj0iaHR0cHM6Ly9pZHAubm5ybWxzLnNhZmVtbHMubmV0L2lkcC9wcm9maWxlL1NBTUwyL1BPU1QvU1NPIiBGb3JjZUF1dGhuPSJmYWxzZSIgSXNQYXNzaXZlPSJmYWxzZSIgeG1sbnM6c2FtbHA9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpwcm90b2NvbCI+PHNhbWw6SXNzdWVyIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iPmh0dHA6Ly93d3cubWxzRU5zaWdodC5jb20vZ2VvamV0Ni88L3NhbWw6SXNzdWVyPjwvc2FtbHA6QXV0aG5SZXF1ZXN0Pg

Now to figure out which side the bug is on.

Paul

-----
Paul Hethmon
Chief Software Architect
paul.hethmon at clareitysecurity.com




More information about the users mailing list