Bugs item #530390, was opened at 2002-03-15 18:28
Message generated for change (Settings changed) made by cito
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=530390&group_id=4866

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: WebKit
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Stuart Donaldson (stuartd)
Summary: forward doesn't work between contexts

Initial Comment:
I found a strange bug in webware (or is it a feature?)
 platform: linux
 webware: cvs (15.03.2002)
 python: 2.2

 Circumstances:
 /usr/local/Intranet/Webserver contains my application 
environment (via 
MakeAppWorkDir). There are two contexts: "Test" and 
"Repository".
 Test contains one Main.py that forwards the request
 (self.application().forward(trans,'../Repository/Repositor
y')) to Repository.

 The problem now seems to be, that the old path is 
still known to some vital 
element. Anyway, I think, the place where things go 
wrong are in
 WebKit.ServletFactory.py, line 78: remainder = 
path[len(contextPath)+1:]
 This cuts away from
 "/usr/local/Intranet/Webserver/Repository/Repository.p
y" the part
 "/usr/local/Intranet/Webserver/Repos"
 Incidently, this is just the len of
 "/usr/local/Intranet/Webserver/Test/", the original 
context

 Now the feature part:
 forward can only be used within one context

 Traceback:

 /usr/local/Intranet/Webserver/Repository/Repository.p
y
 Traceback (most recent call last):
   File "/usr/local/Webware/WebKit/Application.py", 
line 388, in 
dispatchRequest
     self.handleGoodURL(transaction)
   File "/usr/local/Webware/WebKit/Application.py", 
line 534, in handleGoodURL
     self.createServletInTransaction(transaction)
   File "/usr/local/Webware/WebKit/Application.py", 
line 990, in 
createServletInTransaction
     inst = self.getServlet(transaction,path,cache)
   File "/usr/local/Webware/WebKit/Application.py", 
line 916, in getServlet
     inst = factory.servletForTransaction(transaction)
   File "./WebKit/ServletFactory.py", line 178, in 
servletForTransaction
   File "./WebKit/ServletFactory.py", line 94, in 
importAsPackage
   File "./WebKit/ServletFactory.py", line 130, in 
_importModuleFromDirectory
 IOError: [Errno 2] No such file or directory: 
'/usr/local/Intranet/Webserver/Test/itory/__init__.py'

----------------------------------------------------------------------

>Comment By: Christoph Zwerschke (cito)
Date: 2006-07-06 22:56

Message:
Logged In: YES 
user_id=193957

Forwarding from one context to another seems to work in
Webware 0.9.1. Please reopen if you think there is still a
problem.

----------------------------------------------------------------------

Comment By: Geoff Talvola (gtalvola)
Date: 2003-01-15 22:04

Message:
Logged In: YES 
user_id=88162

Assigning to Stuart because he's currently improving
forward(), includeURL(), and callMethodOfServlet().

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=530390&group_id=4866

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to