In web browser if I give the below url it is working fine.
http://localhost:8080/moqui/rest/s1/User/UserRoleMap/100301,
but if the same url In the mobile app It is getting error like
ionic.bundle.js:24977 GET ionic.bundle.js:24977 GET http://localhost:8080/moqui/rest/s1/User/UserRoleMap/100301 401 (Unauthorized)(anonymous function) @ ionic.bundle.js:24977sendReq @ ionic.bundle.js:24770serverRequest @ ionic.bundle.js:24480processQueue @ ionic.bundle.js:29104(anonymous function) @ ionic.bundle.js:29120$eval @ ionic.bundle.js:30372$digest @ ionic.bundle.js:30188$apply @ ionic.bundle.js:30480(anonymous function) @ ionic.bundle.js:65289defaultHandlerWrapper @ ionic.bundle.js:16764eventHandler @ ionic.bundle.js:16752triggerMouseEvent @ ionic.bundle.js:2953tapClick @ ionic.bundle.js:2942tapMouseUp @ ionic.bundle.js:3018 app.js:116 Apache Tomcat/7.0.63 - Error report
HTTP Status 401 - User must be logged in for operaton list on entity UserRoleMaps
type Status report
message User must be logged in for operaton list on entity UserRoleMaps
description This request requires HTTP authentication.
Apache Tomcat/7.0.63
401 (Unauthorized)(anonymous function) @ ionic.bundle.js:24977sendReq @ ionic.bundle.js:24770serverRequest @ ionic.bundle.js:24480processQueue @ ionic.bundle.js:29104(anonymous function) @ ionic.bundle.js:29120$eval @ ionic.bundle.js:30372$digest @ ionic.bundle.js:30188$apply @ ionic.bundle.js:30480(anonymous function) @ ionic.bundle.js:65289defaultHandlerWrapper @ ionic.bundle.js:16764eventHandler @ ionic.bundle.js:16752triggerMouseEvent @ ionic.bundle.js:2953tapClick @ ionic.bundle.js:2942tapMouseUp @ ionic.bundle.js:3018 app.js:116 Apache Tomcat/7.0.63 - Error reportHTTP Status 401 - User must be logged in for operaton list on entity UserRoleMaps
type Status report
message User must be logged in for operaton list on entity UserRoleMaps
description This request requires HTTP authentication.
Apache Tomcat/7.0.63
even user is login it is getting the same error.
this my UserRoleMap entity
<entity entity-name="UserRoleMap" package-name="moqui.security" short-alias="UserRoleMaps" allow-user-field="false" allow-remote="true">
<field name="gropMapId" type="id-long" is-pk="true" />
<field name="persontId" type="text-medium" />
<field name="child_Id" type="text-medium" />
// the below relationship parentId mean userId so it maps the childId and get the respective data related to parentId.
<relationship type="one" title="UserType" related-entity-name="moqui.security.UserAccount" short-alias="childUserDetails">
<key-map field-name="child_Id" related-field-name="userId"/>
</relationship>
<master>
<detail relationship="childUserDetails"/>
</master>
</entity>