Dear Geonetwork users and gurus,
after reading the documentation, a lot of trial and error with different versions from 3.7-3.10.2 (as geonetwork.war archive) I can't get the limit of about 100 MB for uploading and changing the data directory. Even reading the archived mailing list didn't help me.
The system is installed on a Xubuntu 18.04 VM, OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08), Apache Tomcat/9.0.16.
Increasing the limit in the config.xml file does not work:
<general>
<!-- Size must be in megabyte (integer), 100MB by default -->
<maxUploadSize>500</maxUploadSize>
<uploadDir>/var/lib/geonetwork_data/tmp</uploadDir>
<debug, true, debug.
</general>
Is this setting now outdated and no longer works in version 3 or higher?
Changing the data directory as described in Docs " Maintainer guide " Installing the application " Customizing the data directory did not help. Both CATALINA_OPTS=" -Dgeonetwork.dir=/var/lib/geonetwork_data" and JAVA_OPTS="-Dgeonetwork.dir=/var/lib/geonetwork_data" do not work.
But also changes in config-spring-geonetwork.xml like:
<bean id="GeonetworkDataDirectory" class="org.fao.geonet.kernel.GeonetworkDataDirectory" lazy-init="true">
<property name="systemDataDir" ref="GNSystemDataDir"/>
<property name="schemaPluginsDir" ref="GNSchemaPluginsDir"/>
</bean>
<bean id="GNSystemDataDir" class="java.nio.file.Paths" factory-method="get">
<constructor-arg index="0" value="/var/lib/geonetwork_data"/>
<constructor-arg index="1"><array /></constructor-arg>
</bean>
<bean id="GNSchemaPluginsDir" class="java.nio.file.Paths" factory-method="get">
<constructor-arg index="0" value="/var/lib/geonetwork_data/config/schema_plugins"/>
<constructor-arg index="1"><array /></constructor-arg>
</bean>
<bean id="multipart resolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="maxUploadSize" value="500000000"/>
</bean>
have no effect.
Does that work with the config-spring-geonetwork.xml file only if you compile the source code?
Would it work with these lines of code or is something missing?
Best regards
Viktor