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

"Edit in Word" using path based authentication is broken in Confluence 3.3.x and above

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • None
    • None
    • None

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      In the standalone distribution of Confluence 3.3.x and above the session cookie is sent using the HttpOnly attribute.
      This breaks the following Javascript that is used to rewrite the path for the "Edit in Word" feature.

      Zen/src/main/resources/templates/extra/editinword/editInOffice.js:

      function getCookie( check_name ) {
          // first we'll split this cookie up into name/value pairs
          // note: document.cookie only returns name=value, not the other components
          var a_all_cookies = document.cookie.split( ';' );
      

      For HttpOnly cookies document.cookies returns null and jsessionid in the filterPath function is null.

      function filterPath(urlPath)
      {
          var jsession = getCookie('jsessionid');
          if (!jsession){
              jsession = getCookie('JSESSIONID');
          }
          if (jsession){
      

      Workaround

      Please see http://confluence.atlassian.com/display/CONFKB/%27Edit+in+Word%27+Requires+Login+or+Doesn%27t+Work+at+All for a workaround.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ssaasen Stefan Saasen (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: