.callMethodOfServlet() does not work correct with
ExtraPathInfo=1 and when one servlet calls another
using fake paths. E.g.
There is a small problem in resolveInternalRelativePath()
function which works only with relative paths
It does NOT work with absolute
nor '/mypath/myservlet' nor full URI:
The solution is to add a small line of code.
def resolveInternalRelativePath(self, trans, url,
if context is None: # delete it
context = req._contextName # delete it
path = '/%s%s' % (context, url) # delete it
path = '%s' % (url) # ADD this line
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).