instant search does not work when site security applied
There's a specific map service on my site that instant search will not work with if site security is applied? Instant search works with the layer under anonymous access but if I restrict site access instant search stops working for this layer. However, other secure layers continue to work with instant search regardless of site security.
0
-
Hi Dan,
That's an odd one! Can you run Fiddler, and use it to compare the search behaviour you're seeing when you have security enabled vs. when you have it disabled?
Thanks!
Danny0 -
It is strange. Results are coming back in fiddler but not displaying in the viewer?
With Security. (no results)
https://maps.squamish.ca/Geocortex/Essentials/REST/sites/Parcels/search?f=json&searchText=1002&contains=true&returnGeometry=false&returnHighlights=true&returnIdsOnly=false&returnCountOnly=false&envelope=488061.7170586992%2C5508050.83333618%2C490093.72112270736%2C5508986.401873983&outSR=%7B%22wkid%22%3A26910%7D&maxResults=5&layers=0(include%3A10)&token=TOKEN&dojo.preventCache=1494285030197
https://maps.squamish.ca/Geocortex/Essentials/REST/sites/Parcels/search?f=json&searchText=1002%20EDGEWATER%20CRES&contains=true&returnGeometry=true&returnHighlights=false&returnIdsOnly=false&returnCountOnly=false&envelope=488061.7170586992%2C5508050.83333618%2C490093.72112270736%2C5508986.401873983&outSR=%7B%22wkid%22%3A26910%7D&maxResults=50&layers=0(include%3A10)&token=TOKEN&dojo.preventCache=1494285031814
https://maps.squamish.ca/arcgis/rest/services/Maps/Parcel_Owners/MapServer/10/query?token=TOKEN&f=json&returnIdsOnly=true&returnCountOnly=true&where=1%3D1&returnGeometry=false&spatialRel=esriSpatialRelIntersects&geometry=%7B%22rings%22%3A%5B%5B%5B488246.92576245%2C5508050.83333618%5D%2C%5B488246.92576245%2C5508986.401873983%5D%2C%5B489908.5124189566%2C5508986.401873983%5D%2C%5B489908.5124189566%2C5508050.83333618%5D%2C%5B488246.92576245%2C5508050.83333618%5D%5D%5D%2C%22spatialReference%22%3A%7B%22wkid%22%3A26910%7D%7D&geometryType=esriGeometryPolygon&inSR=26910&outSR=26910
Without security. (shows results)
https://maps.squamish.ca/Geocortex/Essentials/REST/sites/Parcels/search?f=json&searchText=1002&contains=true&returnGeometry=false&returnHighlights=true&returnIdsOnly=false&returnCountOnly=false&envelope=488061.7170586992%2C5508050.83333618%2C490093.72112270736%2C5508986.401873983&outSR=%7B%22wkid%22%3A26910%7D&maxResults=5&layers=0(include%3A10)&dojo.preventCache=1494284906704
https://maps.squamish.ca/Geocortex/Essentials/REST/sites/Parcels/search?f=json&searchText=1002%20EDGEWATER%20CRES&contains=true&returnGeometry=true&returnHighlights=false&returnIdsOnly=false&returnCountOnly=false&envelope=488061.7170586992%2C5508050.83333618%2C490093.72112270736%2C5508986.401873983&outSR=%7B%22wkid%22%3A26910%7D&maxResults=50&layers=0(include%3A10)&dojo.preventCache=1494284908270
https://maps.squamish.ca/arcgis/rest/services/Maps/Parcel_Owners/MapServer/10/query?token=TOKEN&f=json&returnIdsOnly=true&returnCountOnly=true&where=1%3D1&returnGeometry=false&spatialRel=esriSpatialRelIntersects&geometry=%7B%22rings%22%3A%5B%5B%5B488246.92576245%2C5508050.83333618%5D%2C%5B488246.92576245%2C5508986.401873983%5D%2C%5B489908.5124189566%2C5508986.401873983%5D%2C%5B489908.5124189566%2C5508050.83333618%5D%2C%5B488246.92576245%2C5508050.83333618%5D%5D%5D%2C%22spatialReference%22%3A%7B%22wkid%22%3A26910%7D%7D&geometryType=esriGeometryPolygon&inSR=26910&outSR=269100 -
Hi Dan,
The plot thickens! Looking at the URLs, I notice that the token doesn't seem to be being passed. If you go to the following URLs:
The secured one:
https://maps.squamish.ca/Geocortex/Essentials/REST/sites/Parcels/search?f=json&searchText=1002%20EDGEWATER%20CRES&contains=true&returnGeometry=true&returnHighlights=false&returnIdsOnly=false&returnCountOnly=false&envelope=488061.7170586992%2C5508050.83333618%2C490093.72112270736%2C5508986.401873983&outSR=%7B%22wkid%22%3A26910%7D&maxResults=50&layers=0(include%3A10)&token=TOKEN&dojo.preventCache=1494285031814
The non secured one:
https://maps.squamish.ca/Geocortex/Essentials/REST/sites/Parcels/search?f=json&searchText=1002%20EDGEWATER%20CRES&contains=true&returnGeometry=true&returnHighlights=false&returnIdsOnly=false&returnCountOnly=false&envelope=488061.7170586992%2C5508050.83333618%2C490093.72112270736%2C5508986.401873983&outSR=%7B%22wkid%22%3A26910%7D&maxResults=50&layers=0(include%3A10)&dojo.preventCache=1494284908270
You can see the only difference between the two is that the secured one is literally passing the word TOKEN as the Token value (towards the end of the URL). In both cases, we get a 403 reply in the JSON response though, so I'm a little at a loss as to why we're seeing results for one, and not for the other.
I would suggest opening a support case at your convenience, so we can help you take a look at this.
Thanks,
Danny0 -
Will do. Thanks! 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare