You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "jihang (Jira)" <ji...@apache.org> on 2021/08/02 13:40:00 UTC

[jira] [Commented] (IOTDB-1537) A user with INSERT_TIMESERIES permission failed to call session. insertTablet

    [ https://issues.apache.org/jira/browse/IOTDB-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17391594#comment-17391594 ] 

jihang commented on IOTDB-1537:
-------------------------------

When creating inserttabletplan, operatortype is batchinsert

> A user with INSERT_TIMESERIES permission failed to call session. insertTablet
> -----------------------------------------------------------------------------
>
>                 Key: IOTDB-1537
>                 URL: https://issues.apache.org/jira/browse/IOTDB-1537
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.12.2-SNAPSHOT
>            Reporter: 刘珍
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: SessionExample.java
>
>
> rel/0.12 0728   88bc4289a61950cdb89c823b434931b280b98433
> 1. start-cli  execute :
> CREATE USER test 'test'
> GRANT USER test PRIVILEGES 'SET_STORAGE_GROUP' on root.sg1
> GRANT USER test PRIVILEGES 'CREATE_TIMESERIES' on root.sg1
> GRANT USER test PRIVILEGES 'INSERT_TIMESERIES' on root.sg1
> GRANT USER test PRIVILEGES 'READ_TIMESERIES' on root.sg1
> GRANT USER test PRIVILEGES 'DELETE_TIMESERIES' on root.sg1
> 2. run SessionExample.java
> Exception in thread "main" org.apache.iotdb.rpc.StatementExecutionException: 602: No permissions for this operation BATCHINSERT
>         at org.apache.iotdb.rpc.RpcUtils.verifySuccess(RpcUtils.java:86)
>         at org.apache.iotdb.rpc.RpcUtils.verifySuccessWithRedirection(RpcUtils.java:92)
>         at org.apache.iotdb.session.SessionConnection.insertTablet(SessionConnection.java:542)
>         at org.apache.iotdb.session.Session.insertTablet(Session.java:1274)
>         at SessionExample.insertTablet(SessionExample.java:135)
>         at SessionExample.main(SessionExample.java:50)
> session.insertRecord is OK .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)