EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000277easycwmp[All Projects] Helppublic2017-08-08 12:282017-08-09 11:41
Reporterandy_yang 
Assigned Tomohamed.kallel 
PriorityimmediateSeverityblockReproducibilityalways
StatusresolvedResolutionno change required 
PlatformopenwrtOSopenwrtOS Versionlinux.2.6
Summary0000277: AddObject method return 9005: 'Invalid parameter name' when Add a WANConnectionDevice object.
DescriptionI don't know how to AddObject method, I try write a function "wan_device_add_instances_wancxdev" in the common_execute_method_obj "$DMROOT.WANDevice.1.WANConnectionDevice." to Add a WANConnectionDevice object.

But, the result is the easycwmp return 9005: 'Invalid parameter name'.

please refere to my script file "wan_device" in the attachment!

Thanks!
Steps To Reproduce1.ACS send AddObject method
2.check
Additional Information< HTTP/1.1 200 OK
< Content-Type: text/xml; charset="utf-8"
< Content-Length: 387
<
+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" [^] xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" [^] xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">2</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:InformResponse><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

--- RECEIVED HTTP RESPONSE ---
2017-08-08 18:30:20 [easycwmp] NOTICE - receive InformResponse from the ACS
2017-08-08 18:30:20 [easycwmp] NOTICE - send empty message to the ACS
+++ SEND EMPTY HTTP REQUEST +++
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

< HTTP/1.1 200 OK
< Content-Type: text/xml; charset="utf-8"
< Content-Length: 690
<
+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" [^] xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" [^] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^] xmlns:xsd="http://www.w3.org/2001/XMLSchema" [^] xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">-15950</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><cwmp:AddObject><ObjectName [^] xsi:type="cwmp:ObjectNameType">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.</ObjectName><ParameterKey xsi:type="cwmp:ParameterKeyType"></ParameterKey></cwmp:AddObject></SOAP-ENV:Body></SOAP-ENV:Envelope>
--- RECEIVED HTTP RESPONSE ---
2017-08-08 18:30:21 [easycwmp] NOTICE - received AddObject method from the ACS
2017-08-08 18:30:21 [easycwmp] NOTICE - external: execute add object InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.
2017-08-08 18:30:21 [easycwmp] NOTICE - Fault in the param: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1., Fault code: 9005
2017-08-08 18:30:21 [easycwmp] NOTICE - send Fault: 9005: 'Invalid parameter name'
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/" [^]
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/" [^]
xmlns:xsd="http://www.w3.org/2001/XMLSchema" [^]
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^]
xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">-15950</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <soap_env:Fault>
    <faultcode>Client</faultcode>
    <faultstring>CWMP fault</faultstring>
    <detail>
     <cwmp:Fault>
      <FaultCode>9005</FaultCode>
      <FaultString>Invalid parameter name</FaultString>
     </cwmp:Fault>
    </detail>
   </soap_env:Fault>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 760

< HTTP/1.1 200 OK
< Content-Type: text/xml; charset="utf-8"
< Content-Length: 0
<
+++ RECEIVED EMPTY HTTP RESPONSE +++
TagsNo tags attached.
Attached Files? file icon wan_device [^] (4,502 bytes) 2017-08-08 12:28 [Show Content]

- Relationships

-  Notes
(0000754)
andy_yang (reporter)
2017-08-08 12:37

when ACS send AddObject method again! I found that the easycwmp return 9002: 'Internal error'. It's so strange!!!

+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" [^] xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" [^] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^] xmlns:xsd="http://www.w3.org/2001/XMLSchema" [^] xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">-15970</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><cwmp:AddObject><ObjectName [^] xsi:type="cwmp:ObjectNameType">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.</ObjectName><ParameterKey xsi:type="cwmp:ParameterKeyType"></ParameterKey></cwmp:AddObject></SOAP-ENV:Body></SOAP-ENV:Envelope>
--- RECEIVED HTTP RESPONSE ---
2017-08-08 18:42:54 [easycwmp] NOTICE - received AddObject method from the ACS
2017-08-08 18:42:54 [easycwmp] NOTICE - external: execute add object InternetGatewayDevice.WANDevice.1.WANConnectionDevice.
2017-08-08 18:42:54 [easycwmp] NOTICE - Fault in the param: InternetGatewayDevice.WANDevice.1.WANConnectionDevice., Fault code: 9002
2017-08-08 18:42:54 [easycwmp] NOTICE - send Fault: 9002: 'Internal error'
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/" [^]
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/" [^]
xmlns:xsd="http://www.w3.org/2001/XMLSchema" [^]
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^]
xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">-15970</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <soap_env:Fault>
    <faultcode>Server</faultcode>
    <faultstring>CWMP fault</faultstring>
    <detail>
     <cwmp:Fault>
      <FaultCode>9002</FaultCode>
      <FaultString>Internal error</FaultString>
     </cwmp:Fault>
    </detail>
   </soap_env:Fault>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 752
(0000755)
mohamed.kallel (manager)
2017-08-09 11:15

Your add obj function: wan_device_add_instances_wancxdev() should echo at the end the instance number of the new added object.

Please follow the example of add_wifi_iface() in the TR181 WiFi param: https://github.com/pivasoftware/easycwmp/blob/master/ext/openwrt/scripts/functions/tr181/wifi [^]
(0000756)
andy_yang (reporter)
2017-08-09 11:26

OK! thanks, I have solved my problem.

- Issue History
Date Modified Username Field Change
2017-08-08 12:28 andy_yang New Issue
2017-08-08 12:28 andy_yang File Added: wan_device
2017-08-08 12:37 andy_yang Note Added: 0000754
2017-08-09 11:15 mohamed.kallel Note Added: 0000755
2017-08-09 11:26 andy_yang Note Added: 0000756
2017-08-09 11:41 mohamed.kallel Status new => resolved
2017-08-09 11:41 mohamed.kallel Resolution open => no change required
2017-08-09 11:41 mohamed.kallel Assigned To => mohamed.kallel


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker