cancel
Showing results for 
Search instead for 
Did you mean: 

Request Entity Too Large

karkaletsis
Champ in-the-making
Champ in-the-making
I get the following error during trying to upload a document using cifs. It doesn't happern with all files and it doesn;t relative to file size

I use such code

          System.out.println("Content Size 1=" + BigInteger.valueOf(content.length));
          ContentStream contentStream = new ContentStreamImpl(filename, BigInteger.valueOf(content.length), mimetype, stream);
          System.out.println("Content Size 2=" + contentStream.getBigLength());
          // create a major version
          
          List<Ace> addAces = new LinkedList<Ace>();
          List<Ace> removeAces = new LinkedList<Ace>();
          List<Policy> policies = new LinkedList<Policy>();
          
          Document newDoc = ((Folder) object).createDocument(properties1, contentStream, VersioningState.NONE,
                policies, removeAces, addAces, session.getDefaultContext());

org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Request Entity Too Large
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:452)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:570)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:112)
   at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:716)
   at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:88)
   at gnomon.gi9.dms.DMServiceImpl.createDocument(DMServiceImpl.java:136)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

it seems that either Apache or Tomcat on the Alfresco environment being called does not support HTTP PUT requests with that much data. To some degree, this is configurable, but there might also be some hard limits based on technical infrastructure somewhere else.

Regards
Axel