UploadProgressBar producing warning log messages incorrectly
------------------------------------------------------------

                 Key: WICKET-2587
                 URL: https://issues.apache.org/jira/browse/WICKET-2587
             Project: Wicket
          Issue Type: Bug
          Components: wicket-extensions
    Affects Versions: 1.4-RC7
         Environment: Windows
Debain
Solaris

On Tomcat and Jetty

            Reporter: wayne pope
            Priority: Minor
             Fix For: 1.4-RC7


we get the following warnings in our logs:
(UploadProgressBar.java:106) - UploadProgressBar will not work without
an UploadWebRequest. See the javadoc for details.

We do override in the application:
@Override
       protected WebRequest
newWebRequest(javax.servlet.http.HttpServletRequest servletRequest) {
               return new UploadWebRequest(servletRequest);
       };


When I debug UploadProgressBar I see that:
if (!(RequestCycle.get().getRequest() instanceof UploadWebRequest))
{
       log.warn("UploadProgressBar will not work without an
UploadWebRequest. See the javadoc for details.");
}

However RequestCycle.get().getRequest() is returning a
UploadWebRequest$MultipartRequest instance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to