oveits / ProvisioningEngine

Ruby on Rails based ProvisioningEngine Frontend for provisioning of legacy systems via Apache Camel Backend (SOAP/XML+SPML+File import)
3 stars 6 forks source link

User Provisioning shows success, even if UC Provisioning fails #5

Open oveits opened 8 years ago

oveits commented 8 years ago

User Provisioning is shown as successful: image

But the logs show that SPML has failed:

provisioningenginecamel@provisioningenginecamel:~/ProvisioningEngineCamel_v0.5.23_preproduction/src/data$ less wireTap_81645172_UC_V8.txt
--
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:addResponse customError="FAILURE" error="urn:oasis:names:tc:SPML:1:0#customError" requestID="request_2" result="urn:oasis:names:tc:SPML:1:0#failure" xmlns="urn:oasis:names:tc:SPML:1:0" xmlns:ns1="urn:oasis:names:tc:SPML:1:0">
<ns1:errorMessage>
SpmlException: AddRequest for 4954389220804@2 failed: Error provisioning Phone 4954389220804@2: Error in create!
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0</ns1:errorMessage>
<ns1:identifier type="urn:oasis:names:tc:SPML:1:0#DN">
<ns1:id>
4954389220804@2</ns1:id>
<ns1:identifierAttributes>
<ns1:attr name="objectclass">
<ns46:value type="string" xmlns:ns46="urn:oasis:names:tc:DSML:2:0:core">
Phone</ns46:value>
</ns1:attr>
<ns1:attr name="domain">
<ns47:value type="string" xmlns:ns47="urn:oasis:names:tc:DSML:2:0:core">
system</ns47:value>
</ns1:attr>
</ns1:identifierAttributes>
</ns1:identifier>
</ns1:addResponse>
<ns2:addResponse customError="FAILURE" error="urn:oasis:names:tc:SPML:1:0#customError" result="urn:oasis:names:tc:SPML:1:0#failure" xmlns="urn:oasis:names:tc:SPML:1:0" xmlns:ns2="urn:oasis:names:tc:SPML:1:0">
<ns2:errorMessage>
SpmlException: AddRequest for 4954389220804 failed: Phone '+4954389220804' not found.</ns2:errorMessage>
<ns2:identifier type="urn:oasis:names:tc:SPML:1:0#DN">
<ns2:id>
4954389220804</ns2:id>
<ns2:identifierAttributes>
<ns2:attr name="objectclass">
<ns48:value type="string" xmlns:ns48="urn:oasis:names:tc:DSML:2:0:core">
User</ns48:value>
</ns2:attr>
<ns2:attr name="domain">
<ns49:value type="string" xmlns:ns49="urn:oasis:names:tc:DSML:2:0:core">
system</ns49:value>
</ns2:attr>
</ns2:identifierAttributes>
</ns2:identifier>
</ns2:addResponse>
<ns3:addResponse customError="FAILURE" error="urn:oasis:names:tc:SPML:1:0#customError" result="urn:oasis:names:tc:SPML:1:0#failure" xmlns="urn:oasis:names:tc:SPML:1:0" xmlns:ns3="urn:oasis:names:tc:SPML:1:0">
<ns3:errorMessage>
SpmlException: AddRequest for 4954389220804@system failed: User does not exist</ns3:errorMessage>
<ns3:identifier type="urn:oasis:names:tc:SPML:1:0#DN">
<ns3:id>
4954389220804@system</ns3:id>
<ns3:identifierAttributes>
<ns3:attr name="objectclass">
<ns50:value type="string" xmlns:ns50="urn:oasis:names:tc:DSML:2:0:core">
Contact</ns50:value>
</ns3:attr>
</ns3:identifierAttributes>
</ns3:identifier>
</ns3:addResponse>
</soapenv:Body>
</soapenv:Envelope>

Note: the request has looked like follows:

<?xml version="1.0" encoding="UTF-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>

      <!-- Add a subscriber (phone) -->
      <spml:addRequest execution="urn:oasis:names:tc:SPML:1:0#synchronous" requestID="request_2" xmlns:dsml="urn:oasis:names:t
c:DSML:2:0:core" xmlns:spml="urn:oasis:names:tc:SPML:1:0">
       <spml:operationalAttributes/>
       <spml:identifier type="urn:oasis:names:tc:SPML:1:0#DN">
        <spml:id>4954389220804@2</spml:id>
        <spml:identifierAttributes>
         <spml:attr name="objectclass">
          <dsml:value type="string">Phone</dsml:value>
         </spml:attr>
         <spml:attr name="domain">
          <dsml:value type="string">system</dsml:value>
         </spml:attr>
        </spml:identifierAttributes>
       </spml:identifier>
       <spml:attributes>
        <spml:attr name="attributes">
         <dsml:value type="string">externalCallerID=4954389220804,rateAreaID=RA_00020,branchOfficeID=BO_site1,normalizedNumber
=+4954389220804,featureProfileID=Olli6englishUS#FP_UC_Int,numberingPlan=NP_site1_00020,externalUnicodeName=Oliver Testuser4,in
ternalUnicodeName=Oliver Testuser4,language=German</dsml:value>
        </spml:attr>
        <spml:attr name="is8KProvisioning">
         <dsml:value type="string">TRUE</dsml:value>
        </spml:attr>
        <spml:attr name="isONS">
         <dsml:value type="string">TRUE</dsml:value>
        </spml:attr>
        <!--
        <spml:attr name="number">
         <dsml:value type="string">+4954389220804</dsml:value>
        </spml:attr>
        -->
        <spml:attr name="domain">
                        <dsml:value type="string">system</dsml:value>
                </spml:attr>
        <spml:attr name="switchId">
         <dsml:value type="string">2</dsml:value>
        </spml:attr>
        <spml:attr name="officeCode">
         <dsml:value type="string">49543892</dsml:value>
        </spml:attr>
        <!--
        <spml:attr name="assignedBCFederation">
         <dsml:value type="string">2@offboard</dsml:value>
        </spml:attr>
        -->
        <spml:attr name="assignedBusinessGroup">
         <dsml:value type="string">Olli6englishUS</dsml:value>
        </spml:attr>
        <!--
        <spml:attr name="extension">
         <dsml:value type="string">20804</dsml:value>
        </spml:attr>
        -->
        <spml:attr name="publicExtension">
         <dsml:value type="string">20804</dsml:value>
        </spml:attr>
       </spml:attributes>
      </spml:addRequest>

                        <!-- Add a user -->
<!-- omitting the other 2 commands I send along with the add phone command -->
                        </soapenv:Body>
                </soapenv:Envelope>