[Geoserver-devel] [jira] Created: (GEOS-4574) Mapfish pdf print module update with proxy url reading

Mapfish pdf print module update with proxy url reading
------------------------------------------------------

                 Key: GEOS-4574
                 URL: http://jira.codehaus.org/browse/GEOS-4574
             Project: GeoServer
          Issue Type: Improvement
         Environment: Debian 6, Tomcat 6, Geonode
            Reporter: Giulia Bruno
            Assignee: Andrea Aime
            Priority: Minor
         Attachments: mapfish_ithaca.patch

The java class MapPrinterServlet.java has been modified to read the proxy url by means of the findProxyUrl() function.
Function findProxyUrl() changes the basePath if a proxy is set.
If present, the proxy url is set in the file global.xml in the data directory of geoserver. The path to data directory can be:
(1) find in the environment variable GEOSERVER_DATA_DIR;
(2) find in the file web.xml in the directory geoserver/WEB-INF/web.xml (as context-param node element) (3) the default directory path: geoserver/data
In the global.xml file, the proxy url is defined in the proxyBaseUrl node element.

We need help for having an OS-independent solutions in searching the path of the data directory, since paths and current directories depend on the OS. By now, the solution exploits an absolute path, working for our application.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira