/ Zope / Apsis / Pound Mailing List / Archive / 2004 / 2004-01 / Typofix and feature add request

[ << ] [ >> ]

[ I'm curious / "Joel Johnston" ... ] [ Open files, load / "Bo Diechmann" ... ]

Typofix and feature add request
Alexander Lazic <al-pound(at)none.at>
2004-01-22 22:07:13 [ FULL ]
Hi,

i have added a Patch which fix 2 Typos and add the following
Session-Handling and a Testprog to test the wished Configline and Value
regex.

SubCookie

We need to Handle a Session not only on a cookie no we need it on an
Subpattern of a Cookie. Not it's not a joke :-/

JSESSIONID="AOUtEnoYgtu1mst25HwgJ6XNX6vzIYyuV2aG8RaJ78VMNis9E2tB!-1662139015!appcashp2v1.server.lan.at!6504!7002"'

And we only can use '-1662139015' :-/

How does you think about these Feature?
Does you want to add it into the Stable tree?

I have only the chance in the next 2 weeks to test it in my setup and
therefore i'am not shure how fast or bugfree it is, but i have copy some
parts of your code ;-)

Here a sample test_regex call:
---
./test_regex \
'^[ \t]*Session[ \t]+SubCookie[ \t]+([^ \t]+)[ \t]+([0-9-][0-9]*)[ \t]*$' \
'Session SubCookie JSESSIONID="[0-9a-zA-Z]*!([^!]*)!.*" 1234' \
'Cookie:
JSESSIONID="AOUtEnoYgtu1mst25HwgJ6XNX6vzIYyuV2aG8RaJ78VMNis9E2tB!-1662139015!appcashp2v1.server.lan.at!6504!7002"'

ConfLine      :Session SubCookie JSESSIONID="[0-9a-zA-Z]*!([^!]*)!.*" 1234:
CookiePattern :JSESSIONID="[0-9a-zA-Z]*!([^!]*)!.*":
PatternString :Cookie:.*[ \t]JSESSIONID="[0-9a-zA-Z]*!([^!]*)!.*":
GivenVal      :Cookie:
JSESSIONID="AOUtEnoYgtu1mst25HwgJ6XNX6vzIYyuV2aG8RaJ78VMNis9E2tB!-1662139015!appcashp2v1.server.lan.at!6504!7002":
Matched Value :-1662139015:
---

al ;-)

Re: Typofix and feature add request
Robert Segall <roseg(at)apsis.ch>
2004-01-23 10:04:17 [ FULL ]
On Thu, 2004-01-22 at 22:07, Alexander Lazic wrote:[...]

Thanks for the typo fix.
[...]

I either don't understand, or have trouble believing it: do you mean to
say that everything else in the Cookie changes PER REQUEST?

If not, then you don't need to match only on part of the cookie - match
on the whole content, even if a lot of it is not important. You session
will work fine.

If yes - you're not serious are you?
[...]

If it is what I think it is then we'll give it some thought towards
version 2 (which should include much improved configuration options).
You wouldn't consider fixing the application design, would you?[...]

Re: Typofix and feature add request
Alexander Lazic <al-pound(at)none.at>
2004-01-23 11:13:08 [ FULL ]
Hi,

On Fre 23.01.2004 10:04, Robert Segall wrote:[...]

Thats opensource ;-))
[...]

Not everything, not every request, but the first part (MD5) does change
now and then (like every 5 requests) which makes it a different cookie
all together within the same application session, though.
[...]

But thats the problem only _one_ part is important and that's the part
that does not change.
[...]

I'm sorry but it's true, only the '!' embedded Value is constant in the
application session :-((
[...]

Thanks for considering adding the feature.
[...]

I'm sorry no, we wanted our customer to change the application, but they
won't :-/

al ;-)

MailBoxer