You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using clone_items(copy_data = False) on a WebMap containing a public view of another organisation's feature service fails due to lack of permissions.
#2282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Describe the bug
As the title describes, gis.content.clone_items(copy_data = False) raises an exception due to lack of permissions when the WebMap being cloned contains references to a public view of another organisation's feature service. Setting copy_data to False should mean that data that the cloner doesn't own is referenced rather than copied and there shouldn't be a permissions issue.
To Reproduce
Steps to reproduce the behavior:
fromarcgis.gisimportGIS# Public Web Map containing a reference to the feature service on the line belowTEMPLATE_WEB_MAP_ITEM_ID='2638fcbe45dc421bb800af0ab9367818'OTHER_ORGANISATION_FEATURE_SERVICE_ITEM_ID='11ed3046a3df48b3af56048fbcd4b12a'defmain():
gis=GIS('https://www.arcgis.com', username, password)
template_webmap_item=gis.content.get(TEMPLATE_WEB_MAP_ITEM_ID)
clone=gis.content.clone_items(
[template_webmap_item],
copy_data=False
)
print(f'Cloned {template_webmap_item.title} to {clone[0].title}')
if__name__=='__main__':
main()
Screenshots
If applicable, add screenshots to help explain your problem.
Expected behavior
I would expect that with the copy_items argument set to false, it is possible to clone a WebMap item that contains public data using ContentManager.clone_items() since it was possible to make the WebMap with those data in the first place.
Platform (please complete the following information):
OS: Linux
Browser [e.g. chrome, safari]
Python API Version: 2.4.1
Additional context
Add any other context about the problem here, attachments etc.
The text was updated successfully, but these errors were encountered:
Describe the bug
As the title describes, gis.content.clone_items(copy_data = False) raises an exception due to lack of permissions when the WebMap being cloned contains references to a public view of another organisation's feature service. Setting copy_data to False should mean that data that the cloner doesn't own is referenced rather than copied and there shouldn't be a permissions issue.
To Reproduce
Steps to reproduce the behavior:
error:
Screenshots
If applicable, add screenshots to help explain your problem.
Expected behavior
I would expect that with the copy_items argument set to false, it is possible to clone a WebMap item that contains public data using ContentManager.clone_items() since it was possible to make the WebMap with those data in the first place.
Platform (please complete the following information):
Additional context
Add any other context about the problem here, attachments etc.
The text was updated successfully, but these errors were encountered: