coletta

AGS 10.1, Export Web Map error "Token-based authentication failure" on Image service

Discussion created by coletta on Mar 3, 2014
Latest reply on Jan 16, 2015 by ahoque-esristaff
Hi all,
on my AGS 10.1 I have defined the following type of services:
- "Map service" for publish vectorial data
- "Image service" for publish raster data
- "Export Web Map" for generate printable stuff

the environment:
- Window Server 2008 R2 Enterprise
- ArcGIS SERVER 10.1 SP1 + sp1 quality improvement patch


With aforementioned configuration, without security, i have submitted job to  "Export Web Map" (by means http://<ags server>:6080/arcgis/rest/services/<my export web map service>/GPServer/Export Web Map/submitJob) obtaining printable pdf of current map that includes vectorial (Map service) and raster (Image service) layer.

Then i've activated the security, with same roles and user for both "Map service" and "Image Service".
Note that also the "Export Web Map" has been secured with same roles and user.

For access to "Map service" and "Image Service" I've  generate a short-term token by means:
http://<ags server>:6080/arcgis/tokens?request=gettoken&encrypted=false&username=<user>&password=<password>

Then i've resubmitted the same previous job (again by means http://<ags server>:6080/arcgis/rest/services/<my export web map service>/GPServer/Export Web Map/submitJob) using the short-term token previously generated.

If i put into parameter "Web Map as JSON" only "Map service"  layers, of course with token,   i gets the printable pdf.
Putting into parameter "Web Map as JSON" both "Map service" and "Image Service", specifying


Then i've resubmitted the same previous job (again by means http://<ags server>:6080/arcgis/rest/services/<my export web map service>/GPServer/Export Web Map/submitJob) using the short-term token previously generated.

If i put into parameter "Web Map as JSON" only "Map service"  layers, of course with token,   i gets the printable pdf.
Putting into parameter "Web Map as JSON" both "Map service" and "Image Service", specifying always the token,  i gets the printable pdf without the "Image Service", and into log of AGS i can read "<name of Image Service>:Token-based authentication failure".
Disabling the security on "Image Service" and re-run the job "Export Web Map", putting the token only for vectorial data, i gets pdf this time with raster and vectorial togheter.

Does anyone have any idea for this behavior?

Thanks.

Francesco

Outcomes