Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-59956

RuntimeException: Cannot read resource /images/brand-images/programs/

    XMLWordPrintable

Details

    Description

      The fix for this bug has been released to our Long Term Support release.

      The fix for this bug is now available in the latest release of Confluence 7.13

      Summary

      Inspecting logs, we can see a lot of error 500 for missing resources.

      Missing files are:
      /images/brand-images/programs/atlassian-community-white.svg
      /images/brand-images/programs/atlassian-developer-white.svg
      /images/brand-images/programs/atlassian-marketplace-white.svg
      /images/brand-images/programs/atlassian-partner-program-white.svg
      /images/brand-images/programs/atlassian-support-white.svg
      /images/brand-images/programs/atlassian-university-white.svg

      Steps to Reproduce

      Crawling through Confluence site, and following all resources from js and css.

      Expected Results

      • Missing resources will not trigger an error 500

      Actual Results

      Error 500 is triggered and this is visible in logs:

      Attributes
      --------------------------
      javax.servlet.forward.request_uri: /c722/s/-38f3zl/8401/b3e5d654c041312f7bfcd7d5f17e71f59e8621d2/1.0/_/download/resources/confluence.web.resources:ajs/images/brand-images/programs/atlassian-community-white.svg
      javax.servlet.forward.context_path: /c722
      javax.servlet.forward.servlet_path: /s
      javax.servlet.forward.path_info: /-38f3zl/8401/b3e5d654c041312f7bfcd7d5f17e71f59e8621d2/1.0/_/download/resources/confluence.web.resources:ajs/images/brand-images/programs/atlassian-community-white.svg
      javax.servlet.forward.mapping: org.apache.catalina.core.ApplicationMapping$MappingImpl@139cde25
      javax.servlet.error.status_code: 500
      _statichash: -38f3zl/8401/b3e5d654c041312f7bfcd7d5f17e71f59e8621d2/1.0
      com.atlassian.confluence.impl.profiling.DecoratorTimings: com.atlassian.confluence.impl.profiling.DecoratorTimings@48c0fd72
      com.opensymphony.sitemesh.APPLIED_ONCE: true
      __cleanup_recursion_counter: 0
      javax.servlet.error.message:
      javax.servlet.error.servlet_name: noop
      com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true
      atlassian.core.seraph.original.url: /500page.jsp
      com.atlassian.labs.botkiller.BotKillerFilter: true
      com.atlassian.gzipfilter.GzipFilter_already_filtered: true
      Confluence-Request-Time: 1592477043154
      B3-TraceId: 8151d7f0a91827
      loginfilter.already.filtered: true
      javax.servlet.error.request_uri: /c722/s/-38f3zl/8401/b3e5d654c041312f7bfcd7d5f17e71f59e8621d2/1.0/_/download/resources/confluence.web.resources:ajs/images/brand-images/programs/atlassian-community-white.svg
      com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true
      com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true
      com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true
      javax.servlet.error.exception: java.lang.RuntimeException: Cannot read resource /images/brand-images/programs/atlassian-community-white.svg
      os_securityfilter_already_filtered: true
      com.atlassian.seraph.auth.LoginReason: OK
      com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true
      --------------------------
      Parameters
      --------------------------
      caused by: java.lang.RuntimeException: Cannot read resource /images/brand-images/programs/atlassian-community-white.svg
      at com.atlassian.plugin.webresource.impl.snapshot.Resource$1.writeTo(Resource.java:204) 

       

      Notes

      Inspecting the code confluence-core/confluence-webapp/src/main/webapp/includes/css/aui-legacy/aui-header.css we can see that svgs are referenced:

      .aui-header .aui-header-logo-answers .aui-header-logo-device,
      .aui-header .aui-header-logo-community .aui-header-logo-device {
        background-image: url("images/brand-images/programs/atlassian-community-white.svg");
        width: 201.5312px;
      }
      

      Workaround:

      Locate the <confluence-install>/confluence/WEB-INF/atlassian-bundled-plugins/auiplugin-8.3.5.jar/assets. Extract missing SVG files, and place them in newly created folder <confluence-install>/confluence/images/brand-images/programs.

      Note that newer versions of Confluence now ship with auiplugin-9.2.0.jar which contains only a subset of the image assets that are in 8.3.5.  And so, you would need get these files from an auiplugin-8.3.5 jar.

      Also, another jar that could be referenced by this kind of issue is <confluence-install>/confluence/WEB-INF/atlassian-bundled-plugins/confluence-dashboard-##.##.##.jar. which contains a path to assets/images/3.0/

      Attachments

        Issue Links

          Activity

            People

              nhoxuan Nam Ho
              gpaunovic g
              Votes:
              53 Vote for this issue
              Watchers:
              54 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: