Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: "MojoX::Session" suddenly quit working?!

by snoopy (Deacon)
on Apr 03, 2009 at 03:04 UTC ( #755170=note: print w/replies, xml ) Need Help??

in reply to "MojoX::Session" suddenly quit working?!

The test routines know that we have to set a phony IP-address, as Apache would do, which they do like this: $ENV{'REMOTE_ADDR'} = ''; (Remember, this code worked.)

Note the last change log entry for MojoX::Session:

0.08 2009-01-25 00:00:00 - tx is passed to session now - correct ip_match behavior

This is either suspicious or just a coincidence.

You might want to check that you haven't just upgraded to 0.08 and got a "working" ip_match, which has started turfing your dummy test IP addresses.

Replies are listed 'Best First'.
Re^2: "MojoX::Session" suddenly quit working?!
by sundialsvc4 (Abbot) on Apr 03, 2009 at 03:26 UTC

    Ahhh... hmmmmm.... “By Jove, I think you‘ve got it ... ” Certainly the best-guess as to a culprit.

    What puzzles me is... I just refreshed everything, and it still fails both in test and in Apache. Which, as far as I know, it did not do before. (As in, earlier this week.)

      Maybe look for any calls of the form: MojoX::Session->new(..., ip_match => 1);.

      MojoX::Session may have suddenly started honoring the cross check on these dummy IP's (and failing) where it wasn't before.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://755170]
[LanX]: before digging into deep debugging ... I have a strange UTF8 problem, probably it rings a bell:
[LanX]: two utf8 strings from different sources are base64 encoded, but after joining both the umlauts in teh second get deleted
[Corion]: LanX: You can't just join two base64 strings together
[LanX]: (not a high priority bug because I can use some HTML entities in the second string)
[Corion]: base64 is padded to a multiple of 4 chars (or something)
[LanX]: misunderstanding, I joined them before converting to base64
[Corion]: Also, I would be wary of encodings and try to make really sure that both input strings are UTF-8. Maybe join the input strings from one source together to see whether they decode as bad or not
[Corion]: LanX: Then the problem should persist without encoding to base64 too ;)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2017-01-16 13:53 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (150 votes). Check out past polls.