Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-1950

"Edit Service Parameters" broken for operation parameters

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.1
    • 1.3
    • admin console
    • None
    • Axis2 1.1

    Description

      I specified the following parameter in service.xml:

      <operation name="CheckAvailability" mep="http://www.w3.org/2004/08/wsdl/in-out">
      <actionMapping>http://example.com/booking/service/CheckAvailability</actionMapping>

      <parameter name="InflowSecurity">
      <action>
      <items>Timestamp</items>
      <timestampStrict>true</timestampStrict>
      </action>
      </parameter>
      </operation>

      If I try to edit this parameter using the "Edit Service Parameters" page of the admin console, the HTML is broken. This is the HTML code that is generated for the input field:

      <tr>
      <td>InflowSecurity</td>
      <td><input type="text" value="<parameter name="InflowSecurity">
      <action>
      <items>Timestamp</items>

      <timestampStrict>true</timestampStrict>
      </action>
      </parameter>"
      name="CheckAvailability_InflowSecurity" size="50">
      </td>
      </tr>

      Obviously the opening and closing tags of the element <parameter> should be removed. All that belongs into the value attribute is <action>....</action>.
      Also, quotation marks must be escaped if the Rampart configuration contains any XML attributes.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            deepal Deepal Jayasinghe
            thilo.frotscher@web.de Thilo Frotscher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment