com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException

JIRA | Stephen Gramm | 5 years ago
  1. 0

    *We are seeing the following information in the logs when the graphviz macro is called:* 2010-04-22 13:04:44,981 ERROR [http-8080-16] [confluence.servlet.download.ExportDownload] getStreamForDownload com.atlassian.confluence.importexport.resource. UnauthorizedDownloadResourceException -- referer: https://icestaging.exploration.nasa.gov/confluence/display/LoadTesting/Flowchart%2C+rate | url: /confluence/download/temp/graphviz554485403308258 3033.png | userName: tester3 com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException at com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager.getResourceReader(ExportDownloadResourceManager.java:67) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReaderFromDelegate(DelegatorDownloadResourceManager.java :75) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReader(DelegatorDownloadResourceManager.java:32) at com.atlassian.confluence.servlet.download.ExportDownload.getStreamForDownload(ExportDownload.java:37) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload$StreamResultCallback.doInTransaction(ServeAfterTransactionDownload.java:140 ) *Question about the information in the logs:* url: /confluence/download/temp/ I see the files that it wants located here: /opt/confluence/data/temp/graphviz7845118220480960332.png /opt/confluence/data/temp/graphviz4484379363571881732.png /opt/confluence/data/temp/graphviz6242351420746458936.png /opt/confluence/data/temp/graphviz4616691156064676562.png /opt/confluence/data/temp/graphviz1331370902734494979.png /opt/confluence/data/temp/graphviz4641425088384716569.png /opt/confluence/data/temp/graphviz6995096625036670352.png /opt/confluence/data/temp/graphviz4949632230680828677.png /opt/confluence/data/temp/graphviz3428314406771164481.png /opt/confluence/data/temp/graphviz2692967042484681978.png /opt/confluence/data/temp/graphviz1847963158175732060.png /opt/confluence/data/temp/graphviz7480408242674757088.png /opt/confluence/data/temp/graphviz7548941119877247000.png /opt/confluence/data/temp/graphviz5414930470558183986.png /opt/confluence/data/temp/graphviz4848322670251331214.png /opt/confluence/data/temp/graphviz8198099562021782420.png *Why is the url wrong?* It is still putting errors in the confluence log.

    JIRA | 5 years ago | Stephen Gramm
    com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException
  2. 0

    *We are seeing the following information in the logs when the graphviz macro is called:* 2010-04-22 13:04:44,981 ERROR [http-8080-16] [confluence.servlet.download.ExportDownload] getStreamForDownload com.atlassian.confluence.importexport.resource. UnauthorizedDownloadResourceException -- referer: https://icestaging.exploration.nasa.gov/confluence/display/LoadTesting/Flowchart%2C+rate | url: /confluence/download/temp/graphviz554485403308258 3033.png | userName: tester3 com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException at com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager.getResourceReader(ExportDownloadResourceManager.java:67) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReaderFromDelegate(DelegatorDownloadResourceManager.java :75) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReader(DelegatorDownloadResourceManager.java:32) at com.atlassian.confluence.servlet.download.ExportDownload.getStreamForDownload(ExportDownload.java:37) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload$StreamResultCallback.doInTransaction(ServeAfterTransactionDownload.java:140 ) *Question about the information in the logs:* url: /confluence/download/temp/ I see the files that it wants located here: /opt/confluence/data/temp/graphviz7845118220480960332.png /opt/confluence/data/temp/graphviz4484379363571881732.png /opt/confluence/data/temp/graphviz6242351420746458936.png /opt/confluence/data/temp/graphviz4616691156064676562.png /opt/confluence/data/temp/graphviz1331370902734494979.png /opt/confluence/data/temp/graphviz4641425088384716569.png /opt/confluence/data/temp/graphviz6995096625036670352.png /opt/confluence/data/temp/graphviz4949632230680828677.png /opt/confluence/data/temp/graphviz3428314406771164481.png /opt/confluence/data/temp/graphviz2692967042484681978.png /opt/confluence/data/temp/graphviz1847963158175732060.png /opt/confluence/data/temp/graphviz7480408242674757088.png /opt/confluence/data/temp/graphviz7548941119877247000.png /opt/confluence/data/temp/graphviz5414930470558183986.png /opt/confluence/data/temp/graphviz4848322670251331214.png /opt/confluence/data/temp/graphviz8198099562021782420.png *Why is the url wrong?* It is still putting errors in the confluence log.

    JIRA | 5 years ago | Stephen Gramm
    com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException
  3. 0

    When a cached chart macro is viewed, the following error is always produced {noformat} 2010-02-07 17:08:45,911 ERROR [http-j2ee.node0.extranet.atlassian.com%2F172.16.3.10-8443-91] [confluence.servlet.download.ExportDownload] getStreamForDo wnload com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException -- url: /download/temp/chart2396731930224418911.png | userName: mhodges | referer: https://extranet.atlassian.com/display/~don.willis@atlassian.com/pla ying+with+confluence com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException at com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager.getResourceReader(ExportDownloadResourceManager.java:67) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReaderFromDelegate(DelegatorDownloadResourceManage r.java:75) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReader(DelegatorDownloadResourceManager.java:32) at com.atlassian.confluence.servlet.download.ExportDownload.getStreamForDownload(ExportDownload.java:37) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload$StreamResultCallback.doInTransaction(ServeAfterTransactionDownload.ja va:140) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.getStreamInTransaction(ServeAfterTransactionDownload.java:41) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.serveFile(ServeAfterTransactionDownload.java:50) at com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) {noformat} This makes sense, since the charts produced by the chart macro are only viewable by the user for whom they are rendered. But it's pretty annoying. The cache macro is a popular 3rd party macro that lives at https://studio.plugins.atlassian.com/wiki/display/CACHE/Home

    Atlassian JIRA | 7 years ago | Don Willis [Atlassian]
    com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exporting page to PDF fails with HTTP 403 (Access to the specified resource () has been forbidden), but PDF file is generated successfully. {code} 2010-03-15 04:49:29,045 ERROR [http-8080-6] [confluence.servlet.download.ExportDownload] getStreamForDownload com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException -- referer: http://localhost:8080/display/DEV/Rich+Client+Technologies | url: /download/temp/pdfexport-20100315-15%3C0@10-0449AM-19/DEV-RichClientTechnologies-15%3C0@10-0449AM-20.pdf | userName: alexf com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException at com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager.getResourceReader(ExportDownloadResourceManager.java:67) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReaderFromDelegate(DelegatorDownloadResourceManager.java:75) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReader(DelegatorDownloadResourceManager.java:32) at com.atlassian.confluence.servlet.download.ExportDownload.getStreamForDownload(ExportDownload.java:37) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload$StreamResultCallback.doInTransaction(ServeAfterTransactionDownload.java:140) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.getStreamInTransaction(ServeAfterTransactionDownload.java:41) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.serveFile(ServeAfterTransactionDownload.java:50) at com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.atlassian.confluence.util.profiling.ProfilingPageFilter.parsePage(ProfilingPageFilter.java:84) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:54) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.util.LoggingContextFilter.doFilter(LoggingContextFilter.java:47) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:206) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:98) at com.atlassian.confluence.util.AbstractBootstrapHotSwappingFilter.doFilter(AbstractBootstrapHotSwappingFilter.java:30) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:131) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.util.ClusterHeaderFilter.doFilter(ClusterHeaderFilter.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.util.ConfluenceErrorFilter.doFilter(ConfluenceErrorFilter.java:22) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.core.datetime.RequestTimeThreadLocalFilter.doFilter(RequestTimeThreadLocalFilter.java:34) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:81) at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.cache.AbstractCachingFilter.doFilter(AbstractCachingFilter.java:33) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:427) at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:34) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:55) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) {code} Probably reason is the export directory name and the file name both contains non-english characters. PS. Why the export directory name contains the export date twice (20100315 and 15мар10)?

    Atlassian JIRA | 7 years ago | fefelov
    com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException

    Root Cause Analysis

    1. com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException

      No message provided

      at com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager.getResourceReader()
    2. com.atlassian.confluence
      ExportDownload.getStreamForDownload
      1. com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager.getResourceReader(ExportDownloadResourceManager.java:67)
      2. com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReaderFromDelegate(DelegatorDownloadResourceManager.java:75)
      3. com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReader(DelegatorDownloadResourceManager.java:32)
      4. com.atlassian.confluence.servlet.download.ExportDownload.getStreamForDownload(ExportDownload.java:37)
      4 frames