Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26173

Fix Spreadsheet editor when UI is displayed in Japanese

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 9.10-HF20, 10.3-SNAPSHOT
    • Fix Version/s: None
    • Component/s: Spreadsheet, Web UI

      Description

      The spreadsheet editor is not usable with webui displayed in Japanese

      nuxeo-spreadsheet-button.html:131 Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
          at HTMLElement._show (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/nuxeo-spreadsheet/nuxeo-spreadsheet-button.html:131:90)
          at HTMLElement.handler (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:2367:28)
          at Object._fire (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:7373:14)
          at Object.forward (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:7768:20)
          at Object.click (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:7734:14)
          at HTMLElement._handleNative (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:7157:19)
      

      The error comes from this line in nuxeo-spreadsheet-button.html

      this.$.iframe.src = this.$.nxconn.url + '/spreadsheet/?cv=' + encodeURIComponent(btoa(JSON.stringify(state)));
      

      Step to reproduce:

      • set the browser to display content in Japanese
      • open search and search without any filter
      • edit display columns (otherwise spreadsheet displays the default columns with English labels, but that's another issue)
      • try to open the spreadsheet editor

        Attachments

        1. spreadsheet.PNG
          170 kB
          Michaël Vachette

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: