12 Unstar Star 15 Fork 5

OpenHarmony / security_services_iam_lite

security_services_iam_lite/js_api/src/perm_module.cpp line:69 逻辑错误

任务
已完成
螺丝钉  Opened this issue

该问题是怎么引起的?

代码逻辑笔误

重现步骤

报错信息

如下图所示,若请求得到GRANTED,则必然不等于NOT_GRANTED,若请求得到NOT_GRANTED,则必然不等于GRANTED,但上述两种情况都应该是查询成功才对
从代码逻辑上来推测,作者本意此处应该使用 逻辑与 &&,即得到的查询结果既不是GRANTED也不是NOT_GRANTED,才表示查询失败。
输入图片说明

Attachments
total 2 participants

Comments (2)

Xiaofeng.Jiang 2020-09-25 11:10 member

逻辑错误,将会尽快进行修改,感谢。

Xiaofeng.Jiang 2020-09-30 14:45 member

修改已合入,感谢参与。

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
1
https://git.oschina.net/openharmony/security_services_iam_lite.git
git@git.oschina.net:openharmony/security_services_iam_lite.git
openharmony
security_services_iam_lite
security_services_iam_lite

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542