Subject: | SOAPAction, URI fragments are optional |
Date: | Mon, 21 Mar 2011 16:35:26 +0000 |
To: | bug-POE-Component-Server-SOAP [...] rt.cpan.org |
From: | Alexander Clouter <alex [...] digriz.org.uk> |
Hi,
I have the following exciting URI being passed in my HTTP headers:
----
SOAPAction: "urn:schemas-sc-jp:mfp:osa-1-1/Hello"
----
As it stands, you have a regex in place that demands fragments are
present, the following patch makes them optional.
Cheers
--
Alexander Clouter
.sigmonster says: Nice guys get sick.
--- /usr/share/perl5/POE/Component/Server/SOAP.pm.orig 2009-02-02 02:45:08.000000000 +0000
+++ /usr/share/perl5/POE/Component/Server/SOAP.pm 2011-03-21 16:24:19.000000000 +0000
@@ -504,7 +504,7 @@
}
# Get the method name
- if ( $soap_method_name !~ /^([\"\']?)(\S+)\#(\S+)\1$/ ) {
+ if ( $soap_method_name !~ /^([\"\']?)(\S+)(\#(\S+))?\1$/ ) {
# Create a new error and send it off!
$_[KERNEL]->yield( 'FAULT',
$response,