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/09/09 00:53:05 UTC

[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #11866: [Bug] [API] When a user accesses an interface without project permission, the returned information is not formatted

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

   ### 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
   
   When a user accesses an interface without project permission, the returned information is not formatted
   
   Interface return information:
   ```
   {
     "code": 30002,
     "msg": "当前用户[{0}]没有[{1}]项目的操作权限",
     "data": null,
     "failed": true,
     "success": false
   }
   
   ```
   
   ### What you expected to happen
   
   Interface return information:
   ```
   {
     "code": 30002,
     "msg": "当前用户[zhangsan]没有[test]项目的操作权限",
     "data": null,
     "failed": true,
     "success": false
   }
   
   ```
   
   ### How to reproduce
   
   User access interface without project permission.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.0.0
   
   ### 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