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

Macro browser does not load in Safari when using mod_deflate in a reverse proxy, with "Compress HTTP Responses" turned on

    XMLWordPrintable

Details

    Description

      Symptoms

      When the following conditions are true:

      1. Confluence is accessed via a reverse proxy
      2. The reverse proxy is Apache httpd with mod_deflate enabled
      3. Confluence has "Compress HTTP Responses" enabled in General Options

      The macro browser will not display in Safari, instead displaying a JavaScript error message (see attachment). This works fine without any errors in Google Chrome. Currently this only affects 4.3.2, as the exact same configuration with 4.3.1 does not have this issue.

      Steps to Reproduce

      1. Set up Confluence, making sure the "Compress HTTP Responses" option is enabled in General Configuration (it is by default)
      2. Set up a reverse proxy server, enabling mod_deflate, for example with the following configuration:
        LoadModule deflate_module /usr/libexec/apache2/mod_deflate.so
        AddOutputFilterByType DEFLATE text/html text/plain text/xml
        AddOutputFilterByType DEFLATE text/css
        AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript text/javascript text/ecmascript
        AddOutputFilterByType DEFLATE application/json text/json
        AddOutputFilterByType DEFLATE application/rss+xml
      3. Connect to Confluence via the reverse proxy, using Safari
      4. Try to insert a macro into a page with the macro browser, and observe the error

      Workaround

      The following methods can get around the issue:

      1. Disable "Compress HTTP Responses" in Confluence General Configuration
      2. Disable mod_deflate in Apache httpd
      3. Use a browser other than Safari

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dmason David Mason (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: