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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lluis
Copy link

@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

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

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.

None yet

4 participants