-
Bug
-
Resolution: Fixed
-
Low
-
7.12.0
-
3
-
Severity 3 - Minor
-
4
-
Issue Summary
In Confluence 7.12 and above, accessing the Files and images dialog to upload an image file will result in java.lang.NullPointerException in the <Confluence-Home>/logs/atlassian-confluence.log file.
Steps to Reproduce
- Create a new page in Confluence or edit an existing Confluence page.
- Load up the Files and images dialog.
- Upload an image file (of any image file extension) to the page.
The same java.lang.NullPointerException would also be thrown in the <Confluence-Home>/logs/atlassian-confluence.log when accessing the Files and images dialog of a page with an attachment image already embedded into it.
Expected Results
The page and its embedded attachments are load up fine without any errors thrown in the <Confluence-Home>/logs/atlassian-confluence.log.
Actual Results
The page and its embedded attachments are load up fine, but the below exception is thrown in the <Confluence-Home>/logs/atlassian-confluence.log file:
2021-05-26 14:06:42,229 ERROR [http-nio-27120-exec-5] [[Standalone].[localhost].[/c7120].[file-server]] log Servlet.service() for servlet [file-server] in context with path [/c7120] threw exception
java.lang.NullPointerException
at com.atlassian.confluence.servlet.download.AttachmentDownload.streamResponse(AttachmentDownload.java:293)
at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.serveFile(ServeAfterTransactionDownload.java:51)
at com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:28)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
...
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- mentioned in
-
Page Failed to load
Just got this on 7.18.2
ERROR [http-nio-8090-exec-12] [[Standalone].[localhost].[/].[file-server]] log Servlet.service() for servlet [file-server] in context with path [] threw exception java.lang.NullPointerException
@Jiri any idea why this would return and how to counter it?