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

Issue with empty enum tags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.2
    • None
    • wsdl
    • None
    • Axis2 1.8.2
      Java 17.0.5+8-LTS

    Description

      Hi there,

      I just did and upgrade from Axis2 1.6.2 to Axis2 1.8.2.

      And unfortunately it looks like there's a new bug with the empty tags for enums and axis returns the following error:

      processAxisFault() found a null HTTP status from the MessageContext instance, setting HttpServletResponse status to: axis2.http.response.state

      from this method: https://github.com/apache/axis-axis2-java-core/blob/a8fd43c2aa8a03739cced810842af12ff3ad293d/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java#L409

      wsdl definition:

      <wsdl:message name="getUserEventRequest">
          <wsdl:part name="userEventQuery" type="types:SomeEventFilter"></wsdl:part>
        </wsdl:message>

      This is an example of the xsd:

      <xs:complexType name="SomeEventFilter">
          <xs:sequence>
            <xs:element minOccurs="0" maxOccurs="1" name="userName" type="xs:string"/>
            <xs:element minOccurs="0" maxOccurs="1" name="eventType" type="SomeEvent"/>
          </xs:sequence>
        </xs:complexType>
      
        <xs:simpleType name="SomeEvent">
          <xs:restriction base="xs:string">
            <xs:enumeration value="ACTION1"/>
            <xs:enumeration value="ACTION2"/>
            <xs:enumeration value="ACTION3"/>
          </xs:restriction>
        </xs:simpleType>

      And this is the response:

      <soapenv:Fault> 
       <faultcode>soapenv:Server</faultcode> 
       <faultstring>unknown</faultstring> 
       <detail/> 
      </soapenv:Fault>

      I know for sure that the same wsdl works on Axis2 1.6.2 because I already tested the same request and works fine.

      If you have any insights on this issue, I'll appreciate!
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            cbaron Carlos Baron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: