|
But there are two problems with this.
1) It doesn't explain why a URL pattern that has worked for several years
suddenly stopped
2)How does it help that it is in $3? What can I do with it? Currently the
program reads in the rest of the via getEnv('PATH_INFO': qusec ); and then
proceeds based on the information contained.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
On May 15, 2017, at 1:50 PM, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:in
A wild guess - try this regedit
^\/cgi\/(.*?)(\/|\n)(.*)
you may have to leave the \ out
If it work you should have the program name in $1 and the remaining path
$3 without thethat
starting /
Match 1
Full match 0-59
`/cgi/restsrv2.pgm/quantityquery/?partnum=0000011&quantity=5`
Group 1. 5-17 `restsrv2.pgm`
Group 2. 17-18 `/`
Group 3. 18-59 `quantityquery/?partnum=0000011&quantity=5`
On Mon, May 15, 2017 at 4:03 PM, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:
Maybe it is this ???
This URL http://partner400.com/cgi/prodrpt2oa calls program
prodrpt2oa.pgm in PARTNER400.LIB
This one http://partner400.com/cgi/restsrv1/part1 calls program
restsrv1/part1 <http://partner400.com/cgi/restsrv1/part1>.pgm in
PARTNER400.LIB
On Mon, May 15, 2017 at 3:11 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx>
wrote:
Much easier said than done Tim - but I will try if nobody points out
anyit is my error or that there is a patch.
I have customers on V7R3 using this kind of URL but haven't heard of
or aproblems from them which I why I figured I must have a flaw in my code
mailingbad/missing PTF.
There is no way I'm the first to encounter this surely? It is such an
obvious problem.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
On May 15, 2017, at 4:23 AM, Tim Rowe <timmr@xxxxxxxxxx> wrote:team.
Jon, Open a PMR for this. Makes it much easier for the development
If its a bug we can fix, if its a change in Apache behavior, we canalso
let you know.IBM i
Tim
Tim Rowe, timmr@xxxxxxxxxx
Business Architect Application Development & Systems Management for
IBM i Development Lab, Rochester, MNbut
(507) 253-6191 (Tie) 553-6191
http://www-03.ibm.com/systems/power/software/i/are/index.html
----- Original message -----
From: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>
To: "Web400@Midrange. Com" <web400@xxxxxxxxxxxx>
Cc:
Subject: [WEB400] Changes/Bugs in Apache?
Date: Sat, May 13, 2017 6:30 PM
I have this directive in my Apache config (actually in the vhosts
...)working
ScriptAliasMatch ^/CGI/(.*) /QSYS.LIB/PARTNER400.LIB/$1.PGM
I have not changed it (honestly) and I am sure that it has been
for years. This might be the first time I have used it since movingto
V7R3.in
When I try to use it with a REST web service (i.e. additional data
the URL) I am getting very strange results.http://partner400.com/cgi/prodrpt2oa>
This URL
[1]http://partner400.com/cgi/prodrpt2oa <[2]
works just fine and runs the script correctly.http://partner400.com/cgi/restsrv1/part1>
This one
[3]http://partner400.com/cgi/restsrv1/part1 <[4]
giveshttp://partner400.com/cgi/restsrv1.pgm/part1>
Not Found
The script request is not valid. The script is not executable.
The log indicates that no PGM object was identified. So just for
chuckles I added .pgm to the base URL i.e:
[5]http://partner400.com/cgi/restsrv1.pgm/part1 <[6]
script
That works - kind of ... the correct routing takes place and the
is called BUT the ".pgm" text then gets _added_ to the end of theURL.
i.e. "part1" is actually passed to the script as "part1.pgm". If Iadd a
/ following "part1" then ".pgm" is seen as the next element in thepath.
and
I've searched for PTFs on the topic but am seeing nothing.
Anyone got any ideas? This is an Apache feature that we use a lot
the .pgm workaround will not work for some scripts. For examplethis URL
[7]http://partner400.com/cgi/restsrv2.pgm/quantityquery/?partnum=0000011&quantity=5 <[8]http://partner400.com/cgi/
restsrv2.pgm/quantityquery/?partnum=0000011&quantity=5>
tags the ".pgm" onto the end of quantityquery0000011&quantity=5>
<[9]http://partner400.com/cgi/restsrv2.pgm/quantityquery/?partnum=
even when the trailing / is present as shown.mailing
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
listm=0000011&quantity=5
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: [10]http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at [11]http://archive.midrange.com/web400.
References
Visible links
1. http://partner400.com/cgi/prodrpt2oa
2. http://partner400.com/cgi/prodrpt2oa
3. http://partner400.com/cgi/restsrv1/part1
4. http://partner400.com/cgi/restsrv1/part1
5. http://partner400.com/cgi/restsrv1.pgm/part1
6. http://partner400.com/cgi/restsrv1.pgm/part1
7. http://partner400.com/cgi/restsrv2.pgm/quantityquery/?partnu
8. http://partner400.com/cgi/restsrv2.pgm/quantityquery/?partnum=0000011&quantity=5
9. http://partner400.com/cgi/restsrv2.pgm/quantityquery/?partnum=0000011&quantity=5
10. http://lists.midrange.com/mailman/listinfo/web400mailing list
11. http://archive.midrange.com/web400
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
listlist
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
Regards,
Henrik Rützou
http://powerEXT.com <http://powerext.com/>
--
Regards,
Henrik Rützou
http://powerEXT.com <http://powerext.com/>
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.