Malformed XML shown as valid and well formed in Yaak UI

When Yaak receives a malformed XML response from the server it is shown as well formed in the YaakUI. This results in the tester seeing a response that never actually happened.

e.g.

Server sends (note the missing </root>):

<?xml version="1.0" encoding="UTF-8" ?>
 <root>
     <0>
         <id>57ab8bfa-dcad-4649-9442-3b13010e852d</id>
         <username>Damaris76</username>
     </0>

Yaak UI shows (note the addition of </root>):

<?xml version="1.0" encoding="UTF-8"?>
<root>
    <0>
        <id>57ab8bfa-dcad-4649-9442-3b13010e852d</id>
        <username>Damaris76</username>
    </0>
</root>

I have a Mockoon mock API here https://github.com/eviltester/thingifier/tree/master/docs/mockapis/mockoon/fromhell

Which can be used to replicate the issue using GET /malformed/xml

Please authenticate to join the conversation.

Upvoters
Status

Needs Triage

Board

Feedback

Tags

Bug

Date

About 1 year ago

Author

Alan Richardson

Subscribe to post

Get notified by email when there are changes.