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

UTF8CharsetConverter might load whole blob in memory

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.8
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Convert

      Description

      If its encoding is not UTF-8:

      if ("UTF-8".equals(encoding)) {
                  newBlob = new InputStreamBlob(in);
              } else {
                  String content = IOUtils.toString(in, encoding);
                  newBlob = new StringBlob(content);
              }
      

      Should stream to a tmp file ensured to be deleted when not referenced anymore.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: