BUG

In ArcGIS Online, directed search results in Geoportal do not display metadata

Last Published: April 25, 2020

Description

When clicking the link to view metadata for a record retrieved from an ArcGIS Online directed search in the Geoportal, the following error message is returned:

"Could not get metadata record object uuid=.... : Server returned HTTP response code: 403 for URL: http://www.arcgisonline.com/sharing/search?/content/items/.../info/iteminfo.xml Could not perform operation."

Cause

This is a known issue.

The gpt.xml URL for the ArcGIS Online repository must be altered, and a line needs to be added to the ArcGIS Online GetRecords response in the Geoportal's internal ArcGIS Online default transformation files.

Workaround

To address this, the Geoportal's system administrator can modify two settings in the Geoportal so users do not get an error when viewing metadata from ArcGIS Online discovered through the Directed Search.

  1. Open the gpt.xml file in a text editor. This file can be found in the <TOMCAT>\webapps\geoportal\WEB-INF\classes\gpt\config folder.
  2. In the <search> element, find the element for defining the ArcGIS Online repository. This will be the <repository> where key="ArcGISOnline".
  3. Change that element's parameter key="url" value from "http://www.arcgisonline.com/sharing/search?f=json&t=content" to "http://www.arcgisonline.com/sharing".
  4. Save the gpt.xml file.
  5. Navigate to the <TOMCAT>\webapps\geoportal\WEB-INF\lib folder and open the gpt.jar archive. It may be necessary to uncompress this file in order to see into the archive.
  6. Once the gpt.jar has been opened, navigate to the \com\esri\gpt\catalog\agsonline\ folder.
  7. Open the ArcgisOnline_GetRecords_Request.xslt file in a text editor.
  8. Directly under the <xsl:template match="/"> element and directly above the <xsl:variable name="keyword" select="normalize-space(/GetRecords/KeyWord)"/> element, add the following element:

    Code:
    <xsl:text>/search?f=json&amp;t=content</xsl:text>

  9. Save the ArcgisOnline_GetRecords_Request.xslt file, and re-compress the gpt.jar archive.
  10. Restart Tomcat for the changes to take effect.

Article ID:000010691

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