View previous topic :: View next topic |
Author |
Message |
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Tue Sep 01, 2015 9:03 pm Post subject: UPnP Certification Test Updates |
|
|
The current UPnP standard now only supports IGDv2, v1 has been deprecated.
As a part of this there is 1 main issue that I am seeing. MiniUPnPd needs to respond back to action response with the correct namespace which it was invoked with. Currently it just uses a hardcoded value.
According to the specification:
<actionNameResponse>
REQUIRED. Name of element is action name prepended to Response. xmlns namespace attribute MUST be service type enclosed in double quotes. Devices that support the same action in multiple namespaces MUST use the same namespace in the response as was used in the action invocation. For example, if an action was invoked using namespace:
urn:schemas-upnp-org:service:ContentDirectory:2
The response MUST also use namespace:
urn:schemas-upnp-org:service:ContentDirectory:2 |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
Posted: Wed Sep 02, 2015 10:37 am Post subject: |
|
|
the service type is used as namespace.
only in the case of several service supporting the same action it is important to answer with the same namespace as used in invocation.
Is there a precise example of an action responding with a wrong namespace ?
The UPnP Certification test tool is supposed to detect such issues _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Mon Sep 14, 2015 8:58 pm Post subject: |
|
|
This is the error from CTT:
Missing <GetConnectionTypeInfoResponse> element or invalid namespace in response for the action request: "urn:schemas-upnp-org:service:WANIPConnection:1#GetConnectionTypeInfo"
If IGDv2 is enabled, WANIPC_VERS should be 2. But if an older client sends a request it has no notion of version 2, so it sends the request as above and expects a response with the same version. It looks like all these values are hardcoded in the struct in minissdp though.
Also I had to update the version numbers for WANConnectionDevci and WANDevice. As well as the entry for WANIPv6FirewallControll uses url at the beginning instead of urn... |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
|
Back to top |
|
 |
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Tue Sep 15, 2015 12:56 am Post subject: |
|
|
Patch doesn't apply cleanly to my build right now, I'll update you tomorrow. |
|
Back to top |
|
 |
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Wed Sep 16, 2015 4:24 pm Post subject: |
|
|
I am still seeing the same error, I'm trying to look into why. |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
Posted: Fri Sep 18, 2015 12:25 pm Post subject: |
|
|
twear wrote: | I am still seeing the same error, I'm trying to look into why. |
you mean it is still resonding with urn:schemas-upnp-org:service:WANIPConnection:1 Namespace even if the request was using version 2 ?
Please note that the namespace is copied from the Action: HTTP header, not from the XML payload.
What is your SOAP request, exactly ? (including the HTTP headers) _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Wed Oct 07, 2015 9:27 pm Post subject: |
|
|
yeah, and I haven't had time to look into why. I'll update as soon as I can. |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
|
Back to top |
|
 |
usaxena
Joined: 23 Dec 2015 Posts: 2 Location: Hyderabad, India
|
Posted: Wed Dec 23, 2015 11:25 am Post subject: |
|
|
Hi,
For the patch provided we had few soap actions missing which had the correct namespace.
Adding them the test case is now passing. |
|
Back to top |
|
 |
usaxena
Joined: 23 Dec 2015 Posts: 2 Location: Hyderabad, India
|
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
|
Back to top |
|
 |
|