HOW TO

Disable the spatialdirect.pl Perl script in a DDE installation

Last Published: April 25, 2020

Summary

These instructions for disabling the spatialdirect.pl Perl file are for a default Data Delivery Extension 9.1 installation. This should also be enough information to make the changes for any distributed configuration as well.

Procedure

Common variables:
<DDE> : refers to the DDE root installation directory
<ArcIMS> : refers to the ArcIMS web content root directory
<mapName> : refers to the directory name for a specific map within the <ArcIMS>/Website directory
<WebServerDocRoot> : refers to the document root directory for your web server
<hostname> : refers to the web server or servlet engine host/address for your website
<servletEnginePort> : refers to the port on which the servlet engine is listening for requests

  1. Edit the DDE Translation Servlet properties. For a default DDE installation, using the supplied Tomcat servlet engine. These will be defined in the file: <DDE>\tomcat\webapps\servlet\WEB-INF\web.xml. If the default is not being used, then determine where/how these properties are defined for the servlet engine. Find the servletURL param and change its value from:

    Code:
    http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl

    to:

    Code:
    http://<hostname>:<servletEnginePort>/servlet/translationServlet

  2. For each ArcIMS website that has been integrated with the DDE, edit <ArcIMS>\Website\<mapName>\FME\fmeDownload.htm. Find and change the following line from:

    Code:
    <form name="FMEDownload" action="/cgi-bin/DDE/spatialDirect.pl" method="post" onSubmit="return validateForm(this)">

    to:

    Code:
    <form name="FMEDownload" action="http://<hostname>:<servletEnginePort>/servlet/translationServlet" method="post" onSubmit="return validateForm(this)">

  3. Edit <WebServerDocRoot>\safeViewerHTML\javascript\spatialDirectHeader.js. Find and change the following line from:

    Code:
    var servletURL="http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl";

    to:

    Code:
    var servletURL="http://<hostname>:<servletEnginePort>/servlet/translationServlet";

  4. Edit <WebServerDocRoot>\safeViewerHTML\javascript\translationSuccessBody.js. Find and change the following line from:

    Code:
    var servletURL="http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl";

    to:

    Code:
    var servletURL="http://<hostname>:<servletEnginePort>/servlet/translationServlet";

  5. Edit <WebServerDocRoot>\safeViewerHTML\javascript\translationFailureBody.js. Find and change the following line from:

    Code:
    var servletURL="http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl";

    to:

    Code:
    var servletURL="http://<hostname>:<servletEnginePort>/servlet/translationServlet";

  6. Edit <WebServerDocRoot>\safeViewerHTML\login.html. Find and change the following line from:

    Code:
    <FORM METHOD="POST" ACTION="http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl">

    to:

    Code:
    <FORM METHOD="POST" ACTION="http://<hostname>:<servletEnginePort>/servlet/translationServlet">

  7. Once all updates have been made, save the changes, stop and restart DDE.
  8. To ensure that the spatialDirect.pl script is no longer being referenced, rename or delete it from its current location:

    Code:
    <WebServerRoot>/cgi-bin/DDE/spatialDirect.pl

  9. Clear the browser cache before loading the ArcIMS web map page to ensure that it loads the correct reference in the fmeDownload.htm page.

Article ID:000008058

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic