You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, with no app specified, Mapfish reads the config file stored at the path specified by the web.xml file ( For Geoserver, this points at /opt/geoserver/data_dir/printing/config.yaml). With an app parameter defined in the request, it will read a file by name of {app}.yaml. But........... It doesn't read from the "data_dir/printing" like the config file, instead from the servlet home (aka /opt/geoserver/webapps/geoserver/). So, for my app1 test configuration, I had to copy my app1.yaml there. This allows you to view multiple configurations, but....
The text was updated successfully, but these errors were encountered:
Suggestion is to create a variable or property named MAPFISH_CONF that will hold the configuration file directory path. This can then be used for the default configuration file or for other "app configurations" as well.
This property should be able to be set by many different methods (since Mapfish can be deployed in many different environments and situations). However, in the absence of this property set by any of the methods, Mapfish should degrade to it's existing, historical behavior. This will allow for backwards compatibility and a migration path for existing apps. A Deprecation message should be printed in the logs for users who do not use the new parameter.
The order of Parameter access should be:
MAPFISH_CONF from web.xml parameter
MAPFISH_CONF from JAVA System Properties
MAPFISH_CONF from SYSTEM Environment Variables
Try to decude it from the existing CONFIG parameter
All methods fail, fallback to existing behavior
A new "bean" or Configuration Handler will be created to manage determining and instantiating this property.
By default, with no app specified, Mapfish reads the config file stored at the path specified by the web.xml file ( For Geoserver, this points at /opt/geoserver/data_dir/printing/config.yaml). With an app parameter defined in the request, it will read a file by name of {app}.yaml. But........... It doesn't read from the "data_dir/printing" like the config file, instead from the servlet home (aka /opt/geoserver/webapps/geoserver/). So, for my app1 test configuration, I had to copy my app1.yaml there. This allows you to view multiple configurations, but....
The text was updated successfully, but these errors were encountered: