You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Randolf Richardson <ra...@modperl.pl> on 2024/01/10 22:21:35 UTC

Apache2::Upload v2.17 clobbering remaining CGI parameters

	I just recently upgraded my systems to Debian 12, and along with it 
came modperl_2.17.  Overall, this release is working very well, 
except for one thing...

	Handling CGI parameters in HTML forms that support file attachments, 
which results all CGI parameters after the file (whether a user 
attaches a file or not makes no difference) are missing.

	For any HTML input fields that I move before the file attachment 
input element, then then their CGI parameters come through, while all 
CGI parameters after the first file input field remain missing.

	Any HTML forms that don't have any file input fiels are working 
correctly.

		<form method=post enctype=multipart/form-data>
			Text: <input name=one type=text>
		<p>
			File: <input name=file type=file>
		<p>
			More: <input name=more type=text>
		<p>
			<input type=submit value=Submit>
		</form>

	In my handling code, using $R->param('one') always functions as 
expected, but $R->param('more') returns undef.

	Has anyone else encountered this problem?  If so, did you find a 
solution?  (If so, what got it working for you?)

	Thanks in advance.

Randolf Richardson, CNA - randolf@inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
https://www.inter-corporate.com/



Re: Resolved: Apache2::Upload v2.17 clobbering remaining CGI parameters + installation notes

Posted by Randolf Richardson <ra...@modperl.pl>.
	The helpful people on Debian's IRC channel confirmed that v2.18 
isn't even in something called "sid" and suggested I file a bug 
report indicating that this update resolves a serious problem (rated 
as "important" because v2.17 fails).

	I filed a bug report, and I'll provide updates here ASAP.

> 	I think this should be updated in aptitude so that Linux users have 
> a properly-functioning APREQ2 library.  I wonder, how many other 
> applications and progrmaming languages are also negatively impacted 
> by this given the problems with v2.17 (that v2.18 resolves)?
> 
> 	I'll ask on the IRC channel for Debian, but I don't know if this 
> will improve reliability for other Linux distributions.
> 
> > Who do we need to beg or plead with to get a proper release of libapreq 2.18? This has been an issue for over a year!
> > 
> > 
> > On Jan 11, 2024, at 4:00 AM, Randolf Richardson <ra...@modperl.pl> wrote:
> > > 	Thank you, Joe.  Upgrading from libapreq-2.17 (via apt) to
> > > libapreq-2.18 (via svn) resolved my problem -- everything is
> > > functioning as expected now, including HTML POST form handling with
> > > file upload inputs.
> > > 
> > > 	I also attached my installation notes with the hopes that this may
> > > be helpful to anyone else installing this upgrade on Debian 12.4 (or
> > > another similar version of Linux).
> > > 
> > > 	Thanks again for your fast and helpful response. :)
> > > 
> > >> You need to build and install libapreq2.so from svn sources.
> > 
> 
> 
> Randolf Richardson, CNA - randolf@inter-corporate.com
> Inter-Corporate Computer & Network Services, Inc.
> Beautiful British Columbia, Canada
> https://www.inter-corporate.com/
> 
> 


Randolf Richardson, CNA - randolf@inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
https://www.inter-corporate.com/



Re: Resolved: Apache2::Upload v2.17 clobbering remaining CGI parameters + installation notes

Posted by Randolf Richardson <ra...@modperl.pl>.
	I think this should be updated in aptitude so that Linux users have 
a properly-functioning APREQ2 library.  I wonder, how many other 
applications and progrmaming languages are also negatively impacted 
by this given the problems with v2.17 (that v2.18 resolves)?

	I'll ask on the IRC channel for Debian, but I don't know if this 
will improve reliability for other Linux distributions.

> Who do we need to beg or plead with to get a proper release of libapreq 2.18? This has been an issue for over a year!
> 
> 
> On Jan 11, 2024, at 4:00 AM, Randolf Richardson <ra...@modperl.pl> wrote:
> > 	Thank you, Joe.  Upgrading from libapreq-2.17 (via apt) to
> > libapreq-2.18 (via svn) resolved my problem -- everything is
> > functioning as expected now, including HTML POST form handling with
> > file upload inputs.
> > 
> > 	I also attached my installation notes with the hopes that this may
> > be helpful to anyone else installing this upgrade on Debian 12.4 (or
> > another similar version of Linux).
> > 
> > 	Thanks again for your fast and helpful response. :)
> > 
> >> You need to build and install libapreq2.so from svn sources.
> 


Randolf Richardson, CNA - randolf@inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
https://www.inter-corporate.com/



Re: Resolved: Apache2::Upload v2.17 clobbering remaining CGI parameters + installation notes

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Nobody’s forcing you to use it.

Joe Schaefer, Ph.D
<jo...@sunstarsys.com>
+1 (954) 253-3732
SunStar Systems, Inc.
Orion - The Enterprise Jamstack Wiki

________________________________
From: Ed Sabol <ed...@gmail.com>
Sent: Thursday, January 11, 2024 3:56:47 PM
To: mod_perl list <mo...@perl.apache.org>
Cc: steve.m.hay@googlemail.com <st...@googlemail.com>
Subject: Re: Resolved: Apache2::Upload v2.17 clobbering remaining CGI parameters + installation notes

Who do we need to beg or plead with to get a proper release of libapreq 2.18? This has been an issue for over a year!


On Jan 11, 2024, at 4:00 AM, Randolf Richardson <ra...@modperl.pl> wrote:
>        Thank you, Joe.  Upgrading from libapreq-2.17 (via apt) to
> libapreq-2.18 (via svn) resolved my problem -- everything is
> functioning as expected now, including HTML POST form handling with
> file upload inputs.
>
>        I also attached my installation notes with the hopes that this may
> be helpful to anyone else installing this upgrade on Debian 12.4 (or
> another similar version of Linux).
>
>        Thanks again for your fast and helpful response. :)
>
>> You need to build and install libapreq2.so from svn sources.


Re: Resolved: Apache2::Upload v2.17 clobbering remaining CGI parameters + installation notes

Posted by Ed Sabol <ed...@gmail.com>.
Who do we need to beg or plead with to get a proper release of libapreq 2.18? This has been an issue for over a year!


On Jan 11, 2024, at 4:00 AM, Randolf Richardson <ra...@modperl.pl> wrote:
> 	Thank you, Joe.  Upgrading from libapreq-2.17 (via apt) to
> libapreq-2.18 (via svn) resolved my problem -- everything is
> functioning as expected now, including HTML POST form handling with
> file upload inputs.
> 
> 	I also attached my installation notes with the hopes that this may
> be helpful to anyone else installing this upgrade on Debian 12.4 (or
> another similar version of Linux).
> 
> 	Thanks again for your fast and helpful response. :)
> 
>> You need to build and install libapreq2.so from svn sources.


Resolved: Apache2::Upload v2.17 clobbering remaining CGI parameters + installation notes

Posted by Randolf Richardson <ra...@modperl.pl>.
	Thank you, Joe.  Upgrading from libapreq-2.17 (via apt) to 
libapreq-2.18 (via svn) resolved my problem -- everything is 
functioning as expected now, including HTML POST form handling with 
file upload inputs.

	I also attached my installation notes with the hopes that this may 
be helpful to anyone else installing this upgrade on Debian 12.4 (or 
another similar version of Linux).

	Thanks again for your fast and helpful response. :)

> You need to build and install libapreq2.so from svn sources.
> 
> Joe Schaefer, Ph.D.
> <https://sunstarsys.com/orion/features>
> Orion - The Enterprise Jamstack Wiki <https://sunstarsys.com/orion/features>
> <jo...@sunstarsys.com>
> 954.253.3732 <//954.253.3732>
> 
> 
> 
> 
> On Wed, Jan 10, 2024 at 5:21PM Randolf Richardson <ra...@modperl.pl>
> wrote:
> 
> >         I just recently upgraded my systems to Debian 12, and along with
> > it
> > came modperl_2.17.  Overall, this release is working very well,
> > except for one thing...
> >
> >         Handling CGI parameters in HTML forms that support file
> > attachments,
> > which results all CGI parameters after the file (whether a user
> > attaches a file or not makes no difference) are missing.
> >
> >         For any HTML input fields that I move before the file attachment
> > input element, then then their CGI parameters come through, while all
> > CGI parameters after the first file input field remain missing.
> >
> >         Any HTML forms that don't have any file input fiels are working
> > correctly.
> >
> >                 <form method=post enctype=multipart/form-data>
> >                         Text: <input name=one type=text>
> >                 <p>
> >                         File: <input name=file type=file>
> >                 <p>
> >                         More: <input name=more type=text>
> >                 <p>
> >                         <input type=submit value=Submit>
> >                 </form>
> >
> >         In my handling code, using $R->param('one') always functions as
> > expected, but $R->param('more') returns undef.
> >
> >         Has anyone else encountered this problem?  If so, did you find a
> > solution?  (If so, what got it working for you?)
> >
> >         Thanks in advance.
> >
> > Randolf Richardson, CNA - randolf@inter-corporate.com
> > Inter-Corporate Computer & Network Services, Inc.
> > Beautiful British Columbia, Canada
> > https://www.inter-corporate.com/
> >
> >
> >
> 


Randolf Richardson, CNA - randolf@inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
https://www.inter-corporate.com/



Re: Apache2::Upload v2.17 clobbering remaining CGI parameters

Posted by Joe Schaefer <jo...@sunstarsys.com>.
You need to build and install libapreq2.so from svn sources.

Joe Schaefer, Ph.D.
<https://sunstarsys.com/orion/features>
Orion - The Enterprise Jamstack Wiki <https://sunstarsys.com/orion/features>
<jo...@sunstarsys.com>
954.253.3732 <//954.253.3732>




On Wed, Jan 10, 2024 at 5:21 PM Randolf Richardson <ra...@modperl.pl>
wrote:

>         I just recently upgraded my systems to Debian 12, and along with
> it
> came modperl_2.17.  Overall, this release is working very well,
> except for one thing...
>
>         Handling CGI parameters in HTML forms that support file
> attachments,
> which results all CGI parameters after the file (whether a user
> attaches a file or not makes no difference) are missing.
>
>         For any HTML input fields that I move before the file attachment
> input element, then then their CGI parameters come through, while all
> CGI parameters after the first file input field remain missing.
>
>         Any HTML forms that don't have any file input fiels are working
> correctly.
>
>                 <form method=post enctype=multipart/form-data>
>                         Text: <input name=one type=text>
>                 <p>
>                         File: <input name=file type=file>
>                 <p>
>                         More: <input name=more type=text>
>                 <p>
>                         <input type=submit value=Submit>
>                 </form>
>
>         In my handling code, using $R->param('one') always functions as
> expected, but $R->param('more') returns undef.
>
>         Has anyone else encountered this problem?  If so, did you find a
> solution?  (If so, what got it working for you?)
>
>         Thanks in advance.
>
> Randolf Richardson, CNA - randolf@inter-corporate.com
> Inter-Corporate Computer & Network Services, Inc.
> Beautiful British Columbia, Canada
> https://www.inter-corporate.com/
>
>
>