Acosix/alfresco-simple-content-stores

Not possible to configure a standardCachingStore larger than max integer bytes

Closed this issue · 0 comments

When configuring the a caching content store, and setting
simpleContentStores.customStore.myCachingFileStore.value.standardQuotaMaxUsageBytes > 2147483647 (java max integer)

We get an error message that the value cannot be converted to a String.
Error message:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileContentStore' defined in file [/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/ContentStore/simple-content-stores/content-store-factory-context.xml]: Cannot resolve reference to bean 'myCachingFileStore' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myCachingFileStore': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'standardQuotaMaxUsageBytes'; nested exception is java.lang.NumberFormatException: For input string: "10737418240"