Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Avoids an exception when presenting soap:Fault responses with invalid encoded chars #923

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

lluis
Copy link
Contributor

@lluis lluis commented Apr 28, 2020

prevents "invalid byte sequence in UTF-8" exception when response has incorrectly encoded chars

@olleolleolle olleolleolle changed the title prevents exception when response has invalid encoded chars Fix: Avoids an exception when presenting soap:Fault responses with invalid encoded chars Jul 5, 2020
@@ -49,6 +49,11 @@
it "returns false unless the HTTP response contains a SOAP fault" do
expect(Savon::SOAPFault.present? new_response).to be_falsey
end

it "returns true if the HTTP response contains a SOAP fault with invalid ecoded char" do
Copy link
Contributor

@olleolleolle olleolleolle Jul 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it "returns true if the HTTP response contains a SOAP fault with invalid ecoded char" do
it "returns true even if the HTTP response contains a SOAP fault with invalid encoded characters" do

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added an even in order to underline that this is an additional condition that the code's able to handle.

@pcai
Copy link
Member

pcai commented Sep 23, 2022

Hi @lluis thank you for your contribution - do you mind rebasing/merging in master? Once the minor comments are addressed, I can merge and cut a release

@pcai
Copy link
Member

pcai commented Jul 15, 2024

This looks abandoned so I'll bring it in and apply the finishing tweaks myself, thanks!

@pcai pcai merged commit d31ed25 into savonrb:main Jul 15, 2024
pcai pushed a commit that referenced this pull request Jul 15, 2024
Co-authored-by: David Escala <descala@ingent.net>
pcai pushed a commit that referenced this pull request Jul 15, 2024
Co-authored-by: David Escala <descala@ingent.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants