Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-4184

WaitingForApprovalException declares property as public

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.2.8
    • Fix Version/s: EJBCA 6.2.9
    • Component/s: Protocols
    • Labels:
      None
    • Issue discovered during:
      Customer

      Description

      Axis currently has a problem with the EJBCA WSDL.

      src/java/org.ejbca.core.model.approval.WaitingForApprovalException.java currently has
      public int approvalId = 0;
      and also a public getter and setter in the WaitingForApprovalException class.

      This generates:
      <xs:element name="WaitingForApprovalException" type="tns:WaitingForApprovalException"/>
      <xs:complexType name="WaitingForApprovalException">
      <xs:sequence>
      <xs:element name="approvalId" nillable="true" type="xs:int"/>
      <xs:element name="approvalId" nillable="true" type="xs:int"/>
      <xs:element minOccurs="0" name="message" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>

      Changing this to
      private int approvalId = 0;
      will generate a WSDL with:

      <xs:element name="WaitingForApprovalException" type="tns:WaitingForApprovalException"/>
      <xs:complexType name="WaitingForApprovalException">
      <xs:sequence>
      <xs:element name="approvalId" nillable="true" type="xs:int"/>
      <xs:element minOccurs="0" name="message" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>

        Attachments

          Activity

            People

            Assignee:
            johan Johan Eklund
            Reporter:
            johan Johan Eklund
            Verified by:
            Mike Agrenius Kushner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: