Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-472

Document create reads content into memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • OpenCMIS 0.5.0
    • OpenCMIS 0.6.0
    • opencmis-server
    • None

    Description

      (from https://issues.alfresco.com/jira/browse/ALF-11565)
      Steps to reproduce:
      1. Connect to Alfresco through CMIS Workbench 0.5.0;
      2. Click Create document;
      3. Select Document (cmis:document) as type;
      4. Attach file larger than VM memory size (alfresco installer was user as content stream ~500MB);
      5. Click create document;

      Actual result:
      Error occurs

      Caused by: java.lang.OutOfMemoryError: Java heap space
      at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser$LightByteArrayOutputStream.expand(AtomEntryParser.java:590)
      at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser$LightByteArrayOutputStream.write(AtomEntryParser.java:610)
      at org.apache.chemistry.opencmis.commons.impl.Base64$OutputStream.write(Base64.java:1963)
      at org.apache.chemistry.opencmis.commons.impl.Base64$OutputStream.write(Base64.java:1994)
      at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
      at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.readBase64(AtomEntryParser.java:392)
      at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.parseCmisContent(AtomEntryParser.java:324)
      at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.parseEntry(AtomEntryParser.java:217)
      at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.parse(AtomEntryParser.java:184)
      at org.apache.chemistry.opencmis.server.impl.atompub.ObjectService.create(ObjectService.java:86)
      ...

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

      Attachments

        Activity

          People

            fmui Florian Müller
            derekhulley Derek Hulley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: