moqui:获取此请求需要HTTP身份验证

时间:2016-06-13 11:29:18

标签: moqui

在网页浏览器中,如果我提供以下网址,则表示工作正常。

http://localhost:8080/moqui/rest/s1/User/UserRoleMap/100301

但是如果相同的网址 在移动应用程序中出现错误,如

ionic.bundle.js:24977 GET ionic.bundle.js:24977 GET http://localhost:8080/moqui/rest/s1/User/UserRoleMap/100301 401(未经授权)(匿名函数)@ ionic.bundle.js:24977sendReq @ ionic.bundle.js:24770serverRequest @ ionic .bundle.js:24480processQueue @ ionic.bundle.js:29104(匿名函数)@ ionic.bundle.js:29120 $ eval @ ionic.bundle.js:30372 $ digest @ ionic.bundle.js:30188 $ apply @ ionic .bundle.js:30480(匿名函数)@ 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 - 错误报告

HTTP状态401 - 用户必须登录实体UserRoleMaps上的operaton列表

类型状态报告

消息用户必须登录实体UserRoleMaps上的操作列表

描述此请求需要HTTP身份验证。

Apache Tomcat / 7.0.63

401(未经授权)(匿名函数)@ ionic.bundle.js:24977sendReq @ ionic.bundle.js:24770serverRequest @ ionic.bundle.js:24480processQueue @ ionic.bundle.js:29104(匿名函数)@ ionic.bundle.js:29120 $ eval @ ionic.bundle.js:30372 $ digest @ ionic.bundle.js:30188 $ apply @ ionic.bundle.js:30480(匿名函数)@ 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 - 错误报告

HTTP状态401 - 用户必须登录实体UserRoleMaps上的操作列表

类型状态报告< / p>

消息用户必须登录实体UserRoleMaps上的操作列表

描述此请求需要HTTP身份验证。

Apache Tomcat / 7.0.63

even user is login it is getting the same error.

这是我的UserRoleMap实体

<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> 

0 个答案:

没有答案