javaee / metro

Metro has been contributed to Eclipse Foundation. Please use the link below to find the latest project
https://github.com/eclipse-ee4j/metro-jax-ws
Other
10 stars 1 forks source link

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

Open glassfishrobot opened 11 years ago

glassfishrobot commented 11 years ago

If a webservice returns this value:

The MessageDumpingFeature will actually log it as this:

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.

Environment

JDK 1.6 update 32

Affected Versions

[2.2.1-1]

glassfishrobot commented 11 years ago

Reported by basvandenbroek

glassfishrobot commented 11 years ago

basvandenbroek said: 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:

<somefaketag>

The MessageDumpingFeature will actually log it as this:

<somefaketag>
glassfishrobot commented 11 years ago

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

glassfishrobot commented 11 years ago

basvandenbroek said: Attachment uploaded to http://www.herosh.com/download/11087232/metrologgingbug.zip.html

glassfishrobot commented 11 years ago

basvandenbroek said: 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.

glassfishrobot commented 10 years ago

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

glassfishrobot commented 9 years ago

basvandenbroek said: Ok, I guess I can assume the Metro project to be dead?

glassfishrobot commented 11 years ago

Was assigned to snajper

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA METRO-21