Possible server federation check bug
See original GitHub issueI’m attempting to run queryFeatures
on a feature service in devext (ie https://servicesdev.arcgis.com/orgId/arcgis/rest/services/test/FeatureServer/0
), but I ran into a possible federation issue.
UserSession.getTokenForServer
checks the owningSystemUrl
property, which in this case is https://devext.arcgis.com
. However, my portal is set to https://devext.arcgis.com/sharing/rest
, so the urls don’t match and a NOT_FEDERATED
error is returned. I’m assuming the check on the owningSystemUrl
should accept my portal in this case.
Relevant code (specifically line 703): https://github.com/Esri/arcgis-rest-js/blob/834ad79632f40c3d1abedf017d202a184bb25db3/packages/arcgis-rest-auth/src/UserSession.ts#L701-L709
Note: This won’t be an issue for the servicesdev domain after https://github.com/Esri/arcgis-rest-js/pull/245 is released, since getToken
will correctly recognize servicesdev as an arcgis.com server.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
@jgravois You’re right, I looked at it again and the actual issue is that the
owningSystemUrl
washttp://...
whereas the portal washttps://...
. That’s what caused the regex failure.@jgravois It will get resolved for
servicedev.arcgis.com
in the next release, but I wanted to point out more generally that when the portal ishttps://my.server.com/sharing/rest
and theowningSystemUrl
ishttps://my.server.arcgis.com
, theNOT_FEDERATED
error will be returned. That seems incorrect to me.