On Friday 15 March 2002 18:20, you wrote:
> Can you enter this as a bug report on SourceForge? I'll bet you're the
> first person who has tried to forward from one context to another.
done
>
> As a workaround, you could use a redirect instead.
I'll try that (if I think about it, I might have wanted a redirect in the
first place anyway :-)
Thanks for this hint
>
> - Geoff
stephan
>
> > -----Original Message-----
> > From: Stephan Diehl [mailto:stephan.diehl@...]
> > Sent: Friday, March
>
> 15, 2002 7:55 AM
>
> > To: webware-discuss@...
> > Subject: [Webware-discuss] bug in webware?
> >
> >
> > 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/Repository'))
> > 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.py" 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.py
> > 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.creat
>
> eServletInTransaction(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'
> >
> > stephan
> >
> >
> >
> > _______________________________________________
> > Webware-discuss mailing list
> > Webware-discuss@...
> > https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss@...
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
|