legendtkl opened a new issue #1818:
URL: https://github.com/apache/incubator-linkis/issues/1818


   ### Search before asking
   
   - [X] I searched the 
[issues](https://github.com/apache/incubator-linkis/issues) and found no 
similar issues.
   
   
   ### Linkis Component
   
   linkis-cg-client
   
   ### What happened + What you expected to happen
   
   When submitting job using `linkis-cli` with the following command
   ```bash
   linkis-cli -engineType shell-1 -codeType shell -code "echo \"hello\" "  
-submitUser root -proxyUser root
   ```
   
   It report the following exception
   ```text
    org.apache.linkis.httpclient.exception.HttpClientResultException: errCode: 
10905 ,desc: URL /api/rest_j/v1/entrance/submit request failed! ResponseBody is 
{"method":null,"status":1,"message":"operation failed(操作失败)s!the 
reason(原因):LabelCheckException: errCode: 50080 ,desc: SubmitUser :  must be the 
same as ExecuteUser : root , and user : root in userCbel.
   ```
   
   The reason is that the `submitUser` label is omitted when do the http 
request to the Entrance.
   
   ### Relevent platform
   
   Linkis Gateway
   
   ### Reproduction script
   
   linkis-cli -engineType shell-1 -codeType shell -code "echo \"hello\" "  
-submitUser root -proxyUser root
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
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: dev-unsubscr...@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@linkis.apache.org
For additional commands, e-mail: dev-h...@linkis.apache.org

Reply via email to