Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 46253
Status: rejected
Priority: 0/
Queue: CGI

People
Owner: MARKSTOS [...] cpan.org
Requestors: josemariafg [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: XForms mode in CGI.pm should consider deprecated text/xml Content Type
Date: Wed, 20 May 2009 20:18:52 +0200
To: bug-CGI.pm [...] rt.cpan.org
From: José Marí­a Fernández González <josemariafg [...] gmail.com>
As far as I have seen in various CGI versions (including the latest one), CGI enters in XForms mode when Content Type for the incoming request is either application/xml or multipart/related with XML-like content. My suggestion is that CGI.pm should also consider entering XForms mode when Content Type is text/xml, which is still very used by developers albeit it is deprecated. Best Regards, José María Fernández -- "La violencia es el último recurso del incompetente" - Salvor Hardin en "La Fundación" de Isaac Asimov "Premature optimization is the root of all evil." - Donald Knuth José María Fernández González e-mail: josemariafg@gmail.com
On Wed May 20 14:19:29 2009, josemariafg@gmail.com wrote: Show quoted text
> As far as I have seen in various CGI versions (including the latest > one), CGI enters in XForms mode when Content Type for the incoming > request is either application/xml or multipart/related with XML- > like content. My suggestion is that CGI.pm should also consider > entering XForms mode when Content Type is text/xml, which is still > very used by developers albeit it is deprecated.
José María, Thanks for the report. Could you provide a link to a further reference that recommends accepting "text/xml" in such a situation? An RFC or a reference to another project or langauge implementation would be ideal. Thanks! Mark
http://www.w3.org/TR/xforms/#submit-options shows that XForms isn't supposed to use the text/xml content type. For that reason alone, I wouldn't recommend changing the current behavior. You can handle most xml-like content types with e.g.: my $xml = $cgi->param('XForms:Model') || $cgi->param('POSTDATA');
On Mon Aug 17 06:14:40 2009, RHESA wrote: Show quoted text
> http://www.w3.org/TR/xforms/#submit-options shows that XForms isn't > supposed to use the text/xml content type. For that reason alone, I > wouldn't recommend changing the current behavior. You can handle most > xml-like content types with e.g.: > > my $xml = $cgi->param('XForms:Model') || $cgi->param('POSTDATA');
Thanks for the research and clarification, Rhesa. Based on your response, I'm marking this change request as "rejected", although others are welcome to reply to re-open the topic. Mark