I kicked myself today and finally tried to upgrade one of my ancient
Webware installations to 1.0.1.

Unfortunately it looks like about nobody at all is left using PSP. All
my pages do, though. So I quickly fell over a number of awkwardnesses
which are probably just bugs.

I use:
- apache2
- mod_webkit2
- python2.4

First thing I found out was that self.transaction().hasSession() ALWAYS
returns False. Therefor, the code - trying to maintain a session -
creates a new session cookie on every page impression. And instead of
setting the path to "/", the cookie path is set to
"/path_to/page.psp/" (path_to being the subdir on the server, and the /
in the end is no typo). So I quickly get a whole bag of cookies but no
session.

Anybody doing anything with PSP would have found out about this quickly.
Since it hasnt been mentioned in weeks, I came to believe I am the last
person on earth using PSP which makes me feel sort of sad.

Also self.request.serverURL() and related methods do now return results
which are completely different than in my old install (must have been
around 0.9.0) and they are often wrong. Difference: there is always
http:// in front which wasnt there before.
Bug:
http://doma.in/foo/bar/    -> serverURL() = http://doma.in/
http://doma.in/foo/bar.psp -> serverURL() = http://doma.in/foo/bar.psp

As for the other methods, self.response().hostAndPort() for example
never ever returns a port number when used with mod_webkit2, even though
the method name implicitly advertises that functionality.

Due to the massive session problem I will now ruefully go back to my
ancient installation. For the future I'd wish there were thourough
regression tests available.

kind regards,
              Fionn


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to