Hello Team,
I have a class "Sites" and a class "Buildings" for which i have placed icons on the map. Selecting a "Site" ad admin and pressing the "Map" button shows the icons on the correct locations. Doing this as a user of a group "User Group Drachten" the icons are not displayed and i got the following errors:
- Window Error, text "Unauthorized operation"
Details:
Call: services/json/gis/getalllayers ------------------------------------- Error: org.cmdbuild.exception.AuthException: AUTH_NOT_AUTHORIZED at org.cmdbuild.exception.AuthException$AuthExceptionType.createException(AuthException.java:24) at org.cmdbuild.logic.auth.AuthenticationLogicUtils.assureAdmin(AuthenticationLogicUtils.java:51) at org.cmdbuild.servlets.JSONDispatcher.checkAdmin(JSONDispatcher.java:140) at org.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:80) at org.cmdbuild.servlets.JSONDispatcher.doGet(JSONDispatcher.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
The cmdbuild.log reports the following:
INFO 2013-05-30 14:06:41 [jsonrpc ] Calling url /management/modcard/getcardlist
INFO 2013-05-30 14:06:46 [jsonrpc ] Calling url /gis/getalllayers
INFO 2013-05-30 14:06:46 [jsonrpc ] Calling url /gis/getalllayers
ERROR 2013-05-30 14:06:46 [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Gis.getAllLayers: AUTH_NOT_AUTHORIZED
ERROR 2013-05-30 14:06:46 [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Gis.getAllLayers: AUTH_NOT_AUTHORIZED
I have set "write" permission on both "Site" and "Building". But it didn't solve this.
I then set "write" permission to "Assets" which is the superclass of both "Site" and "Building" but this also didn't solve the issue.
Eric