Issue Details (XML | Word | Printable)

Key: METRO-21
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Martin Grebac
Reporter: BasVandenBroek
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
metro

MessageDumpingFeature is showing 'greater than' signs that are character entities in the response as the actual signs,

Created: 22/Feb/13 08:29 AM   Updated: 20/Dec/13 09:01 AM
Component/s: None
Affects Version/s: 2.2.1-1
Fix Version/s: None

Time Tracking:
Original Estimate: 1 hour
Original Estimate - 1 hour
Remaining Estimate: 1 hour
Remaining Estimate - 1 hour
Time Spent: Not Specified
Time Spent - Not Specified

Environment:

JDK 1.6 update 32


Tags:
Participants: BasVandenBroek and Martin Grebac


 Description  « Hide

If a webservice returns this value:

<SomeResult><somefaketag></SomeResult>

The MessageDumpingFeature will actually log it as this:

<SomeResult><somefaketag></SomeResult>

As you can see the smaller than sign (<) is fine but it somehow shows the 'greater than' character entity as the actual sign.

I will add a testproject. I did not include webservices-rt.jar itself due to the size. If you run this project you can include this yourself in the lib folder and fix the .classpath. I used Metro 2.2.1-1.
The project starts a Jetty server which serves as a webservice, it just returns a hardcoded string. This webservice is called and the response is logged.

Instructions:
Run the main method in Test.java and check the logging.



BasVandenBroek added a comment - 22/Feb/13 08:35 AM - edited

I seem to be unable to attach my testproject to this ticket..
Also the ticket text is now showing the full greater than and smaller than signs. I will try to use the ampersand symbol as well so you can see the symbol variants.

If a webservice returns this value:

<SomeResult>&lt;somefaketag&gt;</SomeResult>

The MessageDumpingFeature will actually log it as this:

<SomeResult>&lt;somefaketag></SomeResult>


Martin Grebac added a comment - 22/Feb/13 08:39 AM

Hi, could you post the attachment some place else and just provide link?


BasVandenBroek added a comment - 22/Feb/13 08:46 AM

BasVandenBroek added a comment - 24/Feb/13 04:43 PM

Just wondering what happened to the option to add a testproject? I was able to do so for a previous ticket. Anyway I hope you are able to download the testproject from herosh.


BasVandenBroek added a comment - 20/Dec/13 09:01 AM

Hello guys, can I get an update on the status of this bug?