Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #10023 unquoted type parameter text/xml when using HTTP transport and mime attachments
Submitted: 2007-02-04 18:21 UTC
From: damjan dot glad at zejn dot si Assigned: yunosh
Status: Closed Package: SOAP (version 0.10.1)
PHP Version: 5.1.4 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 + 37 = ?

 
 [2007-02-04 18:21 UTC] damjan dot glad at zejn dot si (Damjan Glad)
Description: ------------ When using mime attachments and HTTP transport the resulting HTTP request is invalid. Problem is that "type" parameter in Content-Type header is not quoted. This is not HTTP compliant, e.g. Axis will reject such requests. This is how the HTTP header type parameter is currently generated: Content-Type: multipart/related; type=text/xml; This is the correct HTTP header type parameter (it is quoted): Content-Type: multipart/related; type="text/xml"; Test script: --------------- function SOAP_Base::_makeMimeMessage defines the content type in the following line: $params = array('content_type' => 'multipart/related; type=text/xml'); Changing this line to: $params = array('content_type' => 'multipart/related; type="text/xml"'); solves the bug. But the same function is also reused in other contexts: - SOAP_Server_Email::service - SOAP_Server_Email_Gateway::service - SOAP_Server::service I did not check if the above mentioned "fix" is the right thing to do when called from other three locations. This should be verified and corrected if needed.

Comments

 [2007-02-05 09:16 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-06-29 14:59 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!