Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-2057

Missing NPE check in Roller PageServlet class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.1
    • 5.1.2
    • None
    • WildFly8.2.0.Final

    Description

      After I finish procedures of official installation guide for JBoss,
      and I create a new blog, but the blog can't be visible.
      URLs of the top page or the blog are always returning status 500,
      and many NPEs are dumped on logs. like this:

      <snip>
      Caused by: java.lang.NullPointerException
      at io.undertow.servlet.spec.ServletContextImpl.getMimeType(ServletContextImpl.java:192)
      at org.apache.roller.weblogger.ui.rendering.servlets.PageServlet.doGet(PageServlet.java:423)
      <snip>

      It looks like that the cause is came from WildFly implementation of ServletContext.
      (https://github.com/undertow-io/undertow/blob/master/servlet/src/main/java/io/undertow/servlet/spec/ServletContextImpl.java)
      It has no null-check of the argument.

      Attachments

        1. ROL-2057.patch
          2 kB
          Kohei Nozaki

        Activity

          People

            roller_unassigned Roller Unassigned
            xkylex Kohei Nozaki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: