刘珍 created IOTDB-1537:
-------------------------

             Summary: 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: 刘珍
         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)

Reply via email to