Closed luispcosta closed 7 months ago
this might be fixed with the recent release of nori 2.7, can you confirm? specifically, I think 
is treated as an invalid character which would previously throw. https://github.com/savonrb/nori/pull/72 changes the default behavior to scrub it instead.
please reopen and provide additional detail if this still reproduces when using savon with nori 2.7
Bug report
Current behavior:
If some WSDL endpoints returns XML with the following character inside, savon breaks with the following error:
Steps to reproduce current behavior:
Since this was only happening when calling specific endpoints, I can't really write down replication steps. What I did was I changed the source code of the method
call_with_logging
insidesavon/operation.rb
to:And then I called our code that calls
Savon.client(options).call(:endpoint, ...)
.Is this enough to reproduce the behavior? Let me know if I should give more repro info.
Expected behavior:
I think, if possible, we should be able to tell savon to ignore specific characters from the XML document.
System information:
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [arm64-darwin21]
2.12.1
Additional Info:
I took a bit of a dive through the code and it seems that when the code reaches this step:
The variable
@hash
simply contains:Using the XML example above, but it should have the whole XML document