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

        Hide
        BasVandenBroek added a comment - - 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>

        Show
        BasVandenBroek added a comment - - 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>
        Hide
        Martin Grebac added a comment -

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

        Show
        Martin Grebac added a comment - Hi, could you post the attachment some place else and just provide link?
        Hide
        BasVandenBroek added a comment -
        Show
        BasVandenBroek added a comment - Attachment uploaded to http://www.herosh.com/download/11087232/metrologgingbug.zip.html
        Hide
        BasVandenBroek added a comment -

        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.

        Show
        BasVandenBroek added a comment - 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.
        Hide
        BasVandenBroek added a comment -

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

        Show
        BasVandenBroek added a comment - Hello guys, can I get an update on the status of this bug?
        Hide
        BasVandenBroek added a comment -

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

        Show
        BasVandenBroek added a comment - Ok, I guess I can assume the Metro project to be dead?

          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