Am Montag, den 16.03.2009, 04:08 +0100 schrieb Christoph Zwerschke:
> 
> I have always asked people to check the betas and release candidates, 
> but the feedback was mostly been disappointing. Open Source software 
> lives from active participation and feedback of its users. How can it
> be improved when there is only feedback every four years?

Actually I had tried to update to 0.9.4 somewhen ago (its in the list)
and had some other problem with it that made me revert the switch.
I am really sorry that I didnt try newer versions before but I have a
very busy live with a family and the last years werent so good to us so
we spent a lot of time striving for making a out living. Changing
running (productive) installations was no top priority under these
circumstances, I am afraid.
> 
> Anyway, let's try to solve this problem.

Thank you and forgive me if I sounded somewhat harsh in my last mail,
please.

> The cookie path is set to the servlet path of the application in newer
> versions of Webware, since setting it to "/" can be a security
> problem.

> So for some strange reason, your Webware installation seems to think 
> "/path_to/page.psp/" is your servlet path.

Could this be somehow connected to using mod_webkit ?

> However, I just tested this, created a PSP page that is using a
> session, and for me everything is working fine, with both built-in
> webserver and apache2+mod_webkit2.

Hmmm, apparently not. I'll try to trace the genesis of that path
variable.

> Also note that you can configure the servlet path manually using the 
> setting SessionCookiePath in Application.config - you can simply set
> it to "/" or the root path of your application. This has been properly
> documented in the Release Notes and Configuration guide, by the way.

Lo and behold, this fixes my problems instantly ;-)
> > http://doma.in/foo/bar/    -> serverURL() = http://doma.in/
> > http://doma.in/foo/bar.psp -> serverURL() = http://doma.in/foo/bar.psp
> 
> serverURL() has been adapted a long time ago to include the protocol 
> because that's sometimes useful to know and because this is what you 
> expect from a method that has URL in its name.

That alone would be okay, but cutting off subdirs from the URL path is
not ok.

> I guess you mean request().hostAndPort() (which is a new method, btw).

Yes, I stumbled across it trying to figure how the new serverURL() is
stiching its output together and what other methods might give me
similar output.

> Again, so far I don't see any massive problems with Webware 1.0.1, but
> only a small API change with serverURL and the unsolved question why
> you have the wrong servlet path for PSP.

Well sure, but the updated site wasnt working and that alone was a
massive problem for me.

> Maybe you have set up some unusual redirection with Apache or
> something. What does your Apache config look like?

This is my Webware Macro:

<Macro WebWare $port>
  <IfModule mod_webkit.c>
    <Location /wk>
      WKServer localhost $port
      SetHandler webkit-handler
    </Location>
    <Location />
      WKServer localhost $port
      AddHandler psp-handler .psp
    </Location>
  </IfModule>
</Macro>

The site in question just contains this: Use WebWare 8087

There are no rewrite rules defined that relate to the psp files or their
directories.

> Also, are you sure you're using mod_webkit2 as adapter?

I am pretty sure about that, since I dont have any other python module
configured in apache.
The SERVER_SOFTWARE env variable says:
"Apache/2.0.55  DAV/2 mod_ssl/2.0.55 OpenSSL/0.9.8a mod_webkit2/0.5"

kind regards,
               Fionn

-- 
 Taking away civil rights to protect a free democracy is like taking off
 the tires of a car to protect it from flats. 


------------------------------------------------------------------------------
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