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/11 09:00:26 UTC

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

	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: Resolved: Apache2::Upload v2.17 clobbering remaining CGI parameters + installation notes

Posted by Randolf Richardson <ra...@modperl.pl>.
	This is fantastic news!

	You're welcome, and I'm delighted that this helped to get things 
working.  (I also appreciate you taking the time to write back.)

	The community here was instrumental in helping me get my problem 
resolved, which resulted in me writing these steps, so knowing that 
there's a snowball effect so-to-speak occurring here with people 
helping each other is, to me, an indication that this community is 
continuing on the right track.

> Date sent:      	Wed, 27 Nov 2024 16:59:44 +0100
> From:           	Vincent Veyron <vv...@wanadoo.fr>
> To:             	randolf@modperl.pl
> Subject:        	Re: Resolved: Apache2::Upload v2.17
>                clobbering remaining CGI
> 	parameters + installation notes
> 
> On Thu, 11 Jan 2024 01:00:26 -0800
> "Randolf Richardson" <ra...@modperl.pl> wrote:
> 
> > 	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).
> 
> Hi,
> 
> I'm reviving this thread to send Randolf a big THANK YOU for this, it enabled me to install libapreq-2.18 on a fresh Debian install (stable).
> 
> All I had to do to complete the installation was to add libapache2-mod-perl2-dev to the initial 'apt install' instruction, as you can see below.
> 
> # These instructions were written on Debian (Linux) to upgrade
> # libapreq-2.17 to libapreq-2.18 on 2024-Jan-11.
> #
> # Operating System:  Debian 12.4
> # Notes written by:  Randolf Richardson
> # Author's eMail:    <ra...@inter-corporate.com>
> # Web site address:  https://www.inter-corporate.com/
> # Web site address:  https://www.randolf.ca/
> #
> apt install subversion libextutils-xsbuilder-perl libtool-bin apache2-dev libapache2-mod-perl2-dev
> svn checkout http://svn.apache.org/repos/asf/httpd/apreq/trunk/ httpd-apreq-2
> cd httpd-apreq-2
> ./buildconf
> autoconf
> 
> # Note:  Use "whereis apxs" to confirm path of apxs then update
> #        the --with-apache2-apxs option accordingly:
> #
> perl Makefile.PL --with-apache2-apxs=/usr/bin/apxs
> make
> make test
> 
> # Note:  Backup the following directories prior to installing:
> #        /usr/include/apache2/
> #        /usr/include/apr-1.0/
> #        /usr/include/apreq2/
> #        /usr/lib/apache2/modules/
> #
> # Also:  If we don't remove the libapreq2-3 package, then the
> #        Apache 2 httpd daemon will use the older version.  (Do
> #        not use "apt purge" to remove this module.)
> #
> systemctl stop apache2
> apt remove libapreq2-3
> make install
> a2enmod apreq2
> systemctl start apache2
> 
> 
> -- 
> 					Bien à vous, Vincent Veyron 
> 
> https://compta.libremen.com
> Logiciel libre de comptabilité générale en partie double


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 Vincent Veyron <vv...@wanadoo.fr>.
On Thu, 11 Jan 2024 01:00:26 -0800
"Randolf Richardson" <ra...@modperl.pl> wrote:

> 	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).

Hi,

I'm reviving this thread to send Randolf a big THANK YOU for this, it enabled me to install libapreq-2.18 on a fresh Debian install (12.8, Stable).

All I had to do to complete the installation was to add libapache2-mod-perl2-dev to the initial 'apt install' instruction, as you can see below.

# These instructions were written on Debian (Linux) to upgrade
# libapreq-2.17 to libapreq-2.18 on 2024-Jan-11.
#
# Operating System:  Debian 12.4
# Notes written by:  Randolf Richardson
# Author's eMail:    <ra...@inter-corporate.com>
# Web site address:  https://www.inter-corporate.com/
# Web site address:  https://www.randolf.ca/
#
apt install subversion libextutils-xsbuilder-perl libtool-bin apache2-dev libapache2-mod-perl2-dev
svn checkout http://svn.apache.org/repos/asf/httpd/apreq/trunk/ httpd-apreq-2
cd httpd-apreq-2
./buildconf
autoconf

# Note:  Use "whereis apxs" to confirm path of apxs then update
#        the --with-apache2-apxs option accordingly:
#
perl Makefile.PL --with-apache2-apxs=/usr/bin/apxs
make
make test

# Note:  Backup the following directories prior to installing:
#        /usr/include/apache2/
#        /usr/include/apr-1.0/
#        /usr/include/apreq2/
#        /usr/lib/apache2/modules/
#
# Also:  If we don't remove the libapreq2-3 package, then the
#        Apache 2 httpd daemon will use the older version.  (Do
#        not use "apt purge" to remove this module.)
#
systemctl stop apache2
apt remove libapreq2-3
make install
a2enmod apreq2
systemctl start apache2


-- 
					Bien à vous, Vincent Veyron 

https://compta.libremen.com
Logiciel libre de comptabilité générale en partie double

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.