PLT Troubleshoot 2019-11-13
- 1 Problem
- 1.1 Seeking help
- 2 History
- 3 Services
- 4 Tests
- 5 Related articles
- 6 Options
- 7 Solution
Problem
User complains that they can’t add a layer to a map when they should have permissions.
last week was her first time to try to add the smart map layers in PLT, and she failed.
~ from Darlene
We’ve found that all hosted feature layers are now twinned, one with the original owner, and one with EGIS as the owner. It appears they have the same back-end.
Seeking help
History
Config changes were made last Friday, which may be related.
Services
Make sure you clean the Application Cache inside the Developer tabs in Chrome, before start to test.
That work
???
That fail
https://egis-sige.tcgis.ca/portal/home/item.html?id=9f95806437e641f3b14551f214953682 → This one does not work in Chrome using demo.publisher after clean the Cache.
Using my user Alvaro.FariadosSantos (Egis5678) and Firefox
Published by TC.SMART.MAPS
Published by Demo.Publisher
Using demo.publisher
Published by TC.SMART.MAPS
https://egis-sige.tcgis.ca/portal/home/item.html?id=184c69f4293f49cb93bae7baae797f73
Tested with same user (demo.publisher) in two different browsers, in Chrome it worked, in Firefox it doesn’t. It also doesn’t work in Chrome Incognito mode
Tests
Un-share, reshare showed no immediate improvement
Share with everyone todo
Permissions on symbology aboriginal consultation has plain symbology and still has the problem
Change owner aboriginal consultation changed owner to demo.publisher, couldn’t load it’s own layer. Changing back was same for demo.publisher user.
Change description Canada Airport - the description was changed, but couldn’t load it by demo.publisher
Change Data Canada Airport - the column name was changed, but couldn’t load it by demo.publisher
Republish single layer
FME works, but we lose the layer ID
ArcGIS Pro ???
Run python update script todo.py ???
Delete clone of layer owned by EGIS corrupted tc.smart.maps layer
TC_Federal_Real_Property_polygon corrupt
Delete original layer owned by tc.smart.maps deleted both copied
TC_Federal_Real_Property_point is gone
Custom role PUBLISH_ROLE_HOSTED ACCESS fixes all by adding “View all portal members”
Appears users with the role can load the hosted services correctly
Anonymous users can’t load hosted services
Related articles
Options
Try another unfederate/refederate after setting the server to standalone as per related article 1
Republish all hosted layers
151 smart maps, 240 total TC layers
Good time to educate our users on Pro settings for consistent web service publishing
Rebuild
At some point we need to roll out 10.7.1, would rather a quicker band-aid
Restore might restore our config problem
Republish…should consider above first
Custom Role
A custom role with the permission Administrative Privileges->Members->View all has been created and our users will be migrated to that role. This has shown to remove the EGIS owned cloned items, although it’s unknown how. This won’t work for Viewer roles as this requires a level 2 user.
Solution
Jiehua and ESRI have got our users back online and cleaned up the duplicate services. A summary is found in the related DevOps tasks: https://dev.azure.com/TCOPP/EGIS/_workitems/edit/3536