Uploaded image for project: 'XML-RPC'
  1. XML-RPC
  2. XMLRPC-138

Error in xml write

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: Source
    • Labels:
      None
    • Environment:
      Java

      Description

      There is a issue in StringSerializer.java.
      The problem is when a parameter is an array of objects.
      When a object of this array is a String, the xmlrpc does not insert the <string></string> tag.
      The xmp-rpc specification says that the tag must be inserted !
      I found the method where is the problem.

      public void write(ContentHandler pHandler, Object pObject) throws SAXException

      { write(pHandler, null, pObject.toString()); }

      I changed the null parameter to constant STRING_TAG and then the tag was inserted well.
      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mmelgaco Marcelo Grassi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: