cancel
Showing results for 
Search instead for 
Did you mean: 

"Content too big" when uploading file using CMIS (Atom binding)

Mauricio_Nagaok
Champ on-the-rise
Champ on-the-rise

Hi,

I'm trying to upload a quite large file (4493949076 bytes) to a given folder o Nuxeo (5.9.3) using Apache Chemistry (chemistry-opencmis-client-impl 0.10.0) but I get a org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: Content too big exception when calling Folder.createDocument.

I tried to upload the same file directly using Nuxeo web UI successfully. The problem seems to be related to CMIS.

Is there any configuration on Nuxeo?

I tried How to change size limit for uploaded files, to no avail.

Edit (2015-07-17)

The largest file size we tried and sucessfully uploaded was 4060218219 bytes.

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

This can be configured by providing appropriate configuration parameters to the following extension point: http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform-6.0/viewComponent/org.nuxeo.ecm.c...

Example:

<extension point="factory" target="org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceFactoryManager">
  <factory class="org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceFactory"/>
  <parameter name="service.maxContentSize">4294967296</parameter>
</extension>

View answer in original post

6 REPLIES 6

Florent_Guillau
World-Class Innovator
World-Class Innovator

I'm not sure what could provoke this. Do you have the means to put a breakpoint on the CmisConstraintException exception constructors, in order to find what the caller stack trace is? Note however that Nuxeo 5.9.3 is obsolete and unsupported. You should use the latest Nuxeo 6.0 hotfix, or Nuxeo 7.3 if you're willing to use Fast Track releases.

Mauricio_Nagaok
Champ on-the-rise
Champ on-the-rise

[Florent Guillaume](https

Florent_Guillau
World-Class Innovator
World-Class Innovator

Oh right, I'd forgotten that. But we actually subclass this (NuxeoCmisServiceFactory) and make it configurable. I'll give you details tomorrow.

Florent_Guillau
World-Class Innovator
World-Class Innovator

This can be configured by providing appropriate configuration parameters to the following extension point: http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform-6.0/viewComponent/org.nuxeo.ecm.c...

Example:

<extension point="factory" target="org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceFactoryManager">
  <factory class="org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceFactory"/>
  <parameter name="service.maxContentSize">4294967296</parameter>
</extension>

[Florent Guillaume](https

No, it's only available since Nuxeo 6, see [NXP-14362](https