Bugs item #530390, was opened at 2002-03-15 12:28
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=530390&group_id=4866

Category: WebKit
Group: None
Status: Open
Resolution: None
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: Geoff Talvola (gtalvola)
Date: 2003-01-15 16: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


-------------------------------------------------------
This SF.NET email is sponsored by: A Thawte Code Signing Certificate 
is essential in establishing user confidence by providing assurance of 
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to