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

Text download (green arrow) on Note documents truncates content with accentuated chars

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Severity: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.0-HF17, 5.6
    • Fix Version/s: 5.5.0-HF18, 5.6.0-HF10, 5.7.1
    • Component/s: Core

      Description

      Reason:

      • The Note download button uses the nxbigfile servlet on the BlobHolder
      • The BlobHolder adapts the String content of the note as a StringBlob instance
      • StringBlob#getLength returns size of chars instead of size in bytes

      Fix:

      StringBlob#getLength should return size in bytes (depends on encoding) as stated in the Blob#getLength javadoc.

        Issue Links

          Activity

          Show
          Antoine Taillefer added a comment - master: https://github.com/nuxeo/nuxeo-core/commit/70898e72e54fbc063100210555f70b459af4a973 5.6.0: https://github.com/nuxeo/nuxeo-core/commit/d615c6b79540ecfe04c006b6bc01de0579ea972a 5.5.0: https://github.com/nuxeo/nuxeo-core/commit/c1387bcf05b6d91ba560202add9cb1025a1e7c8e

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h