You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/01/08 03:50:23 UTC

[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #7892: [Bug] [api] When a non-admin user creates a udf function, resources other than .jar will be displayed in the UDF resource

github-actions[bot] commented on issue #7892:
URL: https://github.com/apache/dolphinscheduler/issues/7892#issuecomment-1007879434


   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   1. When a non-admin user has authorized other resources, when creating a udf function, the UDF resource will display non `.jar` resources
   ![图片](https://user-images.githubusercontent.com/56599784/148630186-cf3de53b-e696-44f3-bd93-a4c8bfeb624e.png)
   2. UDF resource displays correctly when creating user with admin user
   
   ### What you expected to happen
   
   It is wrong to display non-.jar resources in UDF resources
   
   ### How to reproduce
   
   step1: Authorize some resources to user a under the administrator user
   step2: Log in with user a, and create or modify UDF functions, UDF resources display non `.jar` resources
   
   ### Anything else
   
   Discovered by looking at the code
   
   In the `org.apache.dolphinscheduler.api.service.impl.ResourcesServiceImpl#queryAuthoredResourceList` code, when querying UDF resources, the `t_ds_relation_udfs_user` table is not filtered by type, but the `t_ds_relation_resources_user` table is directly queried
   
   ![图片](https://user-images.githubusercontent.com/56599784/148630485-991ebe4d-b818-4526-90b0-156a3b4664fe.png)
   
   
   ### Version
   
   2.0.1
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org