Open rweber-esri opened 3 years ago
We do need require admin access to create the template for hosted feature layer views (which are the same item type). So I think we need to figure out what we want to happen for a user, because it is a weird user experience if we work find with Hosted Feature Services outside the org but not Hosted Feature Service Views (which are very commonly used.)
Solutions.js currently fails when attempting to templatize a publicly accessible Feature Layer from an external org.
Steps to reproduce:
Org A
, create a newFeature Layer
, add some features, and publicly shareWeb Map
, add theFeature Layer
fromstep 1
, and publicly shareadmin
user in Org B, attempt to templatize the webmap.An API error is served for the following request:
Request:
Response:
This appears related to this line in getFeatureServiceProperties path on the URL.
Removing
/admin
from the URL results in a success response from the API.Request:
Response: