Bugs item #789693, was opened at 2003-08-16 12:39
Message generated for change (Comment added) made by cito
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=789693&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: Fixed
Priority: 5
Submitted By: Jaros³aw Zabie³³o (zbiru)
Assigned to: Nobody/Anonymous (nobody)
Summary: callMethodOfServlet() problem & solution

Initial Comment:
Problem: 
.callMethodOfServlet() does not work correct with 
ExtraPathInfo=1 and when one servlet calls another 
using fake paths. E.g. 
http://localhost/WK/context/one.py/fake1/fake2

Analyse:
There is a small problem in resolveInternalRelativePath() 
function which works only with relative paths 
like 'mypath/myservlet'.
It does NOT work with absolute 
paths: /mycontext/mypath/myservlet' 
nor  '/mypath/myservlet' nor full URI: 
http://localhost/WK/mycontext/mypath/myservlet

Solution:
The solution is to add a small line of code.

def resolveInternalRelativePath(self, trans, url, 
context=None):
# [cut]
if context is None:             # delete it
   context = req._contextName   # delete it
path = '/%s%s' % (context, url) # delete it
path = '%s' % (url)             # ADD this line
# [cut]

Now, http://localhost/WK/context/one/fake1/fake2 
works fine. This servlet can call the another without any 
problem. It is done using .callMethodOfServlet 
with '/context/servlets/second' as a path
(the path should include context name).


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

>Comment By: Christoph Zwerschke (cito)
Date: 2006-07-07 02:41

Message:
Logged In: YES 
user_id=193957

This has been fixed in the SVN trunk and will go into
version 0.9.2.

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

Comment By: Jason Hildebrand (jdhildeb)
Date: 2004-10-07 18:00

Message:
Logged In: YES 
user_id=173690

Can anyone confirm whether this bug exists in Webware CVS? 
I know that a lot of this code has changed since 0.8, so I
suspect it might not be an issue anymore.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=789693&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