metro
  1. metro
  2. METRO-21

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1-1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      JDK 1.6 update 32

      Description

      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.

        Activity

          People

          • Assignee:
            Martin Grebac
            Reporter:
            BasVandenBroek
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour
              1h
              Remaining:
              Remaining Estimate - 1 hour
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified