NPE in UPnP Web Console Plugin
------------------------------

                 Key: FELIX-3427
                 URL: https://issues.apache.org/jira/browse/FELIX-3427
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-upnp-plugin-1.0.0  
            Reporter: Valentin Valchev
            Assignee: Valentin Valchev
             Fix For: webconsole-upnp-plugin-1.0.2


Some buggy implementation might return invalid image stream (null) and this 
will cause the following NPE in web console:

fw>$19:20:59.667 ERROR - [HTTP] Problem while making answer to request 
/system/console/upnp from client address null  prosyst.mbs.httpjsp.?():?
java.lang.NullPointerException
        at 
org.apache.felix.webconsole.plugins.upnp.internal.ControlServlet.doGet(ControlServlet.java:109)
        at 
org.apache.felix.webconsole.plugins.upnp.internal.WebConsolePlugin.doGet(WebConsolePlugin.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:702)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:815)
        at 
org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:493)
        at 
org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:418)
        at 
com.prosyst.mbs.impl.services.http.ServletProperties.service(ServletProperties.java:109)
        at 
com.prosyst.mbs.impl.services.http.Response.defaultResponse(Response.java:353)
        at 
com.prosyst.mbs.impl.services.http.FiltersManagerImpl.dispatch(FiltersManagerImpl.java:183)
        at 
com.prosyst.mbs.impl.services.http.FiltersFactory.dispatch(FiltersFactory.java:38)
        at 
com.prosyst.mbs.impl.services.http.Response.makeAnswer(Response.java:181)
        at 
com.prosyst.mbs.impl.services.http.ThreadProcess.run(ThreadProcess.java:112)
        at 
com.prosyst.util.impl.tpt.threadpool.ExecutorImpl.run(ExecutorImpl.java:191)


Instead of that NPE web console should return 404 status.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to