<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can the changes in how REST handles JSON content-type affect ability to browse directory? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-the-changes-in-how-rest-handles-json-content/m-p/548278#M21184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Background: we are upgrading to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;ArcGIS Enterprise&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from 10.2.2 to 10.6.1. We use a proxy server direct traffic from www to our ArcGIS Server inside our firewall. We use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Web Adaptor&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the proxy server.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Using our 10.2.2 environment, one can browse the public REST directory using the HTML interface:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;A href="https://gis.dallascityhall.com/wwwgis/rest/services" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://gis.dallascityhall.com/wwwgis/rest/services&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;We have a test DNS set up for our new proxy and server. When you submit the corresponding URL to browse the REST catalog, a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;500.52&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;error is thrown that indicates the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;URL Rewrite&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;module cannot handle the gzip compression.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;A href="https://testgis.dallascityhall.com/wwwgis/rest/services" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://testgis.dallascityhall.com/wwwgis/rest/services&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;The error description in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Failed Request&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;logs is:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 11pt;"&gt;Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ("gzip").&lt;/EM&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 11pt;"&gt;Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ("gzip").&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;We are using the same basic rewrite rules as before. However, a&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/what-s-new.htm" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;what's new&lt;/A&gt;&amp;nbsp;article indicates that the content-type for JSON changed at 10.6:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;The content-types for JSON and JSON with callback responses have been changed from text/plain.&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;For JSON: Content-Type:application/json;charset=utf-8&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;For JSON with callback: Content-Type:application/javascript;charset=utf-8&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;If you put a format tag at the end of the URL to indicate output as JSON (&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;?f=json&lt;/SPAN&gt;), the query works just fine. Leave off the format tag and you get a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;500.52&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I suspect this has something to do the with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;content-type&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;changes at 10.6, but I'm not sure what corrective action to take in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;ArcGIS Server&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(and presumably&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Portal&lt;/EM&gt;) to address the issue. Or, maybe this is not the issue at all.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Behavior is the same in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Chrome&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Edge&lt;/EM&gt;.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;IE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;doesn't know what to do with the URL; it keeps prompting you to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Open or Save&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;services.json&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Both proxy servers are&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Windows 2012 R2 IIS&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;8.5. Both have CA Signed certificates and registered domains. The only other major difference is the test DNS (10.6.1 Enterprise) only accepts&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;HTTPS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(port 443);&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;HTTP&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is disabled (port 80). The architecture (other than&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Enterprise&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;version) is otherwise identical.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;One other thing. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;expires&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;header shows&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Wed, 31 Dec 1969 18:00:00 CST&lt;/SPAN&gt;. I found articles on Apache that indicates it is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;confidential/private&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;variable setting in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;web.xml&lt;/SPAN&gt;. But this is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;IIS&lt;/EM&gt;, so I am not sure this is related.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Dec 2018 20:42:02 GMT</pubDate>
    <dc:creator>Michael_RMiller</dc:creator>
    <dc:date>2018-12-14T20:42:02Z</dc:date>
    <item>
      <title>Can the changes in how REST handles JSON content-type affect ability to browse directory?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-the-changes-in-how-rest-handles-json-content/m-p/548278#M21184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Background: we are upgrading to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;ArcGIS Enterprise&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from 10.2.2 to 10.6.1. We use a proxy server direct traffic from www to our ArcGIS Server inside our firewall. We use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Web Adaptor&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the proxy server.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Using our 10.2.2 environment, one can browse the public REST directory using the HTML interface:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;A href="https://gis.dallascityhall.com/wwwgis/rest/services" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://gis.dallascityhall.com/wwwgis/rest/services&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;We have a test DNS set up for our new proxy and server. When you submit the corresponding URL to browse the REST catalog, a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;500.52&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;error is thrown that indicates the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;URL Rewrite&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;module cannot handle the gzip compression.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;A href="https://testgis.dallascityhall.com/wwwgis/rest/services" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://testgis.dallascityhall.com/wwwgis/rest/services&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;The error description in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Failed Request&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;logs is:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 11pt;"&gt;Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ("gzip").&lt;/EM&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 11pt;"&gt;Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ("gzip").&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;We are using the same basic rewrite rules as before. However, a&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/what-s-new.htm" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;what's new&lt;/A&gt;&amp;nbsp;article indicates that the content-type for JSON changed at 10.6:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;The content-types for JSON and JSON with callback responses have been changed from text/plain.&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;For JSON: Content-Type:application/json;charset=utf-8&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;For JSON with callback: Content-Type:application/javascript;charset=utf-8&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;If you put a format tag at the end of the URL to indicate output as JSON (&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;?f=json&lt;/SPAN&gt;), the query works just fine. Leave off the format tag and you get a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;500.52&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I suspect this has something to do the with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;content-type&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;changes at 10.6, but I'm not sure what corrective action to take in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;ArcGIS Server&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(and presumably&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Portal&lt;/EM&gt;) to address the issue. Or, maybe this is not the issue at all.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Behavior is the same in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Chrome&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Edge&lt;/EM&gt;.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;IE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;doesn't know what to do with the URL; it keeps prompting you to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Open or Save&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;services.json&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Both proxy servers are&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Windows 2012 R2 IIS&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;8.5. Both have CA Signed certificates and registered domains. The only other major difference is the test DNS (10.6.1 Enterprise) only accepts&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;HTTPS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(port 443);&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;HTTP&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is disabled (port 80). The architecture (other than&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;Enterprise&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;version) is otherwise identical.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;One other thing. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;expires&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;header shows&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Wed, 31 Dec 1969 18:00:00 CST&lt;/SPAN&gt;. I found articles on Apache that indicates it is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;confidential/private&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;variable setting in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;web.xml&lt;/SPAN&gt;. But this is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;IIS&lt;/EM&gt;, so I am not sure this is related.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2018 20:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-the-changes-in-how-rest-handles-json-content/m-p/548278#M21184</guid>
      <dc:creator>Michael_RMiller</dc:creator>
      <dc:date>2018-12-14T20:42:02Z</dc:date>
    </item>
  </channel>
</rss>

