LauraXia123 opened a new issue, #5498:
URL: https://github.com/apache/gravitino/issues/5498

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   Failed to operate object [role] operation [CREATE] under [metalake_demo], 
reason [Value too long for column "PRIVILEGE_NAMES VARCHAR(256)":
   
   ### Error message and/or stacktrace
   
   <img width="1548" alt="image" 
src="https://github.com/user-attachments/assets/e55bd71e-5b10-4a0a-9373-334437bc58b5";>
   
   
   ### How to reproduce
   
   ```
   curl 'http://localhost:8090/api/metalakes/metalake_demo/roles' \
     -H 'Accept: application/vnd.gravitino.v1+json' \
     -H 'Accept-Language: zh-CN,zh;q=0.9' \
     -H 'Cache-Control: no-cache' \
     -H 'Connection: keep-alive' \
     -H 'Content-Type: application/json;charset=UTF-8' \
     -H 'Origin: http://0.0.0.0:3002' \
     -H 'Pragma: no-cache' \
     -H 'Referer: http://localhost:8090/access/roles' \
     -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36' \
     --data-raw 
'{"name":"role","properties":{},"securableObjects":[{"fullName":"metalake_demo","type":"metalake","privileges":[{"name":"manage_users","condition":"ALLOW"},{"name":"manage_groups","condition":"ALLOW"},{"name":"manage_grants","condition":"ALLOW"},{"name":"create_role","condition":"ALLOW"},{"name":"create_catalog","condition":"ALLOW"},{"name":"create_schema","condition":"ALLOW"},{"name":"create_table","condition":"ALLOW"},{"name":"modify_table","condition":"ALLOW"},{"name":"create_topic","condition":"ALLOW"},{"name":"produce_topic","condition":"ALLOW"},{"name":"create_fileset","condition":"ALLOW"},{"name":"write_fileset","condition":"ALLOW"},{"name":"use_catalog","condition":"ALLOW"},{"name":"use_schema","condition":"ALLOW"},{"name":"select_table","condition":"ALLOW"},{"name":"consume_topic","condition":"ALLOW"},{"name":"read_fileset","condition":"ALLOW"}]}]}'
 \
     --insecure
   ```
   
   create a role with all 17 privilege names
   
   ### Additional context
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to