[ic] Intermittent CGI mapping error

Kevin Walsh interchange-users@icdevgroup.org
Thu Oct 17 17:09:00 2002


Andrew McBeath [andrew@zeald.com] wrote:
> 
> For some reason one of our servers (4.8.3) started throwing regular 
> Internal Server Errors under Opera this morning:
> 
> 210.54.178.22 - - [17/October/2002:15:56:40 +1300] - /siemens_med/ui CGI 
> mapping error: multipart/form-data sent incorrectly:
>  > ------------U5XuD6RMB0I+IbtO/a+iw8
>  > Content-Disposition: form-data; name="mv_session_id"
> 
> I see Kevin supplied a patch for this - Revision 2.6.2.53 to WHATSNEW,
> 
> What files & versions was this patch to?  (My CVS skills aren't 
> expansive enough to figure out a good way to find this out...)
> 
This is quite an old patch (May 2002):

http://www.icdevgroup.org/cgi-bin/cvsweb/interchange/lib/Vend/Server.pm.diff?r1=2.3&r2=2.5&f=c

The above covers revisions 2.4 and 2.5 of lib/Vend/Server.pm but would
be trivial to apply to any Interchange version:

Some of the CVS commit text:

	* This patch clears the following intermittent error:

		CGI mapping error: multipart/form-data sent incorrectly

	  Some browsers, like Opera, use non-word characters like '+' in
	  form-data MIME boundaries, which cause the regexes to fail.

The latest stable release includes this patch as standard, so upgrading
from 4.8.3 to 4.8.6 will fix this for you, without the need to manually
apply the above patch.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/