Hi,

I found a bug in  WebdavServlet.init()
init returns a immediatly, when the attribute   
"org.apache.slide.NamespaceAccessToken" is set in the current servlet config.

======
      token = (NamespaceAccessToken)
            getServletContext().getAttribute(ATTRIBUTE_NAME);

        if (token != null) {
            handleLifecycle = false;
            return;
=======
This means, that init is called only once per servlet context
However any instance of the servlet depends on executing init () before 
working. For example init() initializes the variable methodFactory. Not 
executing init() will cause a NullPointerException.

I guess, the best solution is removing the return statement completely.


Ciao
        Martin

--
Martin Holz                FIZ CHEMIE Berlin
<[EMAIL PROTECTED]>  

We do not make software "releases".
Our software escapes, leaving a bloody trail of designers
and quality assurance people in it's wake!

    


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to