Mod_perl vs cgi in mason

I’ve seen similar posts from people who couldn’t login or create a ticket,
but I’ve never seen a solution posted.
As best I can tell, POST arguments are not being parsed either at all or
correctly, so variables in <%args> blocks are being set to their defaults.
I’m not sure which module is handling that part. I thought it was
HTML::Mason, but I’ve downgraded that to version 1.15.
Does anyone have any advice?
I was going to attach the output from CPAN’s autobundle, but I’ve put it
on a webpage instead:
http://www.midnightlinux.com/~jo2y/Snapshot_2003_01_30_00.pm

This is a RH8.0 system with a recompiled apache 1.3.27 and rt version
2.0.15.

thanks
-james

As best I can tell, POST arguments are not being parsed either at all
or correctly, so variables in <%args> blocks are being set to their
defaults. I’m not sure which module is handling that part. I thought
it was HTML::Mason, but I’ve downgraded that to version 1.15. Does
anyone have any advice?

You need to modify CGI.pm; search for “Some people want to have their
cake and eat it too!” in perldoc -m CGI

I’ve seen similar posts from people who couldn’t login or create a
ticket, but I’ve never seen a solution posted.

There have been replies to a few of them with exactly the above advice,
though they’re not as common as the questions.

(darren)

The kind of thinking we do sets the stage for the action we are likely
to take. Because of this, a man who refuses to develop his thinking is
likely to act on the impressions made upon him by others.
– Dr. Claude R. Baker

You need to modify CGI.pm; search for “Some people want to have their
cake and eat it too!” in perldoc -m CGI

I tried your suggestion with no luck. That seems to append the GET options
to the POST variables? GET works, it is POST that does not. I stopped
apache and started it again. There isn’t anything else that caches modules
is there?

Some more details:
When I try to create a ticket via the web, I get this error:
No ticket specified
in the browser and this in the logs:
[Thu Jan 30 20:40:24 2003] [error]: WebRT: No ticket specified ()

I was having another possibly unrelated problem with crypt(). The value
stored in the database was S5N7mmk81byZs for example. When
User::IsPassword was called, my password, which I know was correct, would
not be crypted into the same value. I did add Logger->debug line and the
password I entered is the one that is getting to that section of code.
That I couldn’t figure out, I gave up because we’ll be using mod_auth_pam
instead to authenticate. I thought maybe that was relevent.

There have been replies to a few of them with exactly the above advice,
though they’re not as common as the questions.

I searched via google for most of yesterday and the day before. Honest! :slight_smile:

-james