Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1341

adb generated code doesn't escape xml correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0, 1.4.1, 1.5.0, 1.6.0
    • None
    • code generation
    • None

    Description

      The foo_serialize() functions generated by the adb-codegen module do not correctly call axutil_xml_quote_string() in all necessary cases. This causes requests that contain characters such as '<', etc... to fail due to malformed xml.
      The attached patch corrects this for one particular case that was causing problems for me.

      I can't tell for sure, but it looks like there are almost certainly other cases that needs to be escaped as well. Either this issue should remain open until those are fixed, even after my patch is applied, or I can create a new issue.

      Attachments

        1. CADBBeanTemplateSource.xsl.diff
          2 kB
          Eric Haszlakiewicz

        Activity

          People

            Unassigned Unassigned
            erh Eric Haszlakiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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