fangchengshi 发表于 2020-3-16 17:51:24

视图查询提示无权限

API地址:http://www.o2oa.net:20020/x_query_assemble_surface/jest/index.html# ViewAction (视图)
接口l:https://******:20020/x_query_assemble_surface/jaxrs/view/flag/0e55c9f7-aceb-411f-8730-b8067efcdc0c/query/06874a35-5a61-4be2-b8ab-b1ab479a0d4e/execute?v=2.2.1&k6rknz21
接口参数:
                                                {
                          "filterList":[
                                {
                                    "title":"区域一",
                                    "value":"A店",
                                    "otherValue":"",
                                    "path":"TaskChangSuo1",
                                    "formatType":"textValue",
                                    "logic":"and",
                                    "comparison":"like"
                                }, {
                                    "title":"subject",
                                    "value":"不需",
                                    "otherValue":"",
                                    "path":"subject",
                                    "formatType":"textValue",
                                    "logic":"and",
                                    "comparison":"like"
                                }
                          ]
                        }                       
当检索接口指向的应用没有给指向的接口人提供管理员权限的时候,无法获取检索提示。如果是管理员执行,则接口查询返回数据正常。
请问一下这是系统设计上就是这样的吗?还是我可以通过参数调整,让普通人员也可以使用本接口进行检索。

非管理员查询时接口返回:
{
"type": "error",
"message": "用户:陈欣@03081961584757@P 访问对象 class:com.x.query.core.entity.Query, id:06874a35-5a61-4be2-b8ab-b1ab479a0d4e, 权限不足.",
"date": "2020-03-16 17:43:43",
"spent": 51,
"size": -1,
"count": 0,
"position": 0,
"prompt": "com.x.base.core.project.exception.ExceptionAccessDenied"
}

执行返回权限不够的人,不在管理员配置组内。
http://www.o2oa.net:20020/x_file_assemble_control/jaxrs/file/cf1397b9-0392-45c4-9a6a-a5d6196d7f29/download/stream

论坛管理员 发表于 2020-3-17 10:26:04

您好,请问您是什么地方调用接口的。
代码怎么写的!

论坛管理员 发表于 2020-4-14 10:30:57

好的。没问题就行

fangchengshi 发表于 2020-4-13 16:33:02

谢谢,4.3.5版本再使用这个接口查询,已经没有这个权限提升的报错了。
页: [1]
查看完整版本: 视图查询提示无权限