You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/02/22 09:53:31 UTC

[GitHub] [rocketmq] yuz10 opened a new issue #3875: Unable to delete last acl account.

yuz10 opened a new issue #3875:
URL: https://github.com/apache/rocketmq/issues/3875


   The issue tracker is **ONLY** used for bug report(feature request need to follow [RIP process](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal)). Keep in mind, please check whether there is an existing same report before your raise a new one.
   
   Alternately (especially if your communication is not a bug report), you can send mail to our [mailing lists](http://rocketmq.apache.org/about/contact/). We welcome any friendly suggestions, bug fixes, collaboration and other improvements.
   
   Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following:
   
   **BUG REPORT**
   
   1. Please describe the issue you observed:
     cant delete the last acl account:
   step 1 create an acl account;
   step 2 delete the acl account;
   
   ```
      @Test
       public void deleteAccessAclToEmptyTest() {
           String home = System.getProperty("rocketmq.home.dir");
           System.setProperty("rocketmq.home.dir", "src/test/resources/conf");
           System.setProperty("rocketmq.acl.plain.file", "/empty.yml");
           PlainAccessConfig plainAccessConfig = new PlainAccessConfig();
           plainAccessConfig.setAccessKey("deleteAccessAclToEmpty");
           plainAccessConfig.setSecretKey("12345678");
   
           PlainAccessValidator plainAccessValidator = new PlainAccessValidator();
           plainAccessValidator.updateAccessConfig(plainAccessConfig);
           // delete acl access to empty
           plainAccessValidator.deleteAccessConfig("deleteAccessAclToEmpty");
           System.setProperty("rocketmq.home.dir", home);
           System.setProperty("rocketmq.acl.plain.file", "/conf/plain_acl.yml");
       }
   ```
   the test fails:
   ```
   java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   
   	at java.util.ArrayList.rangeCheck(ArrayList.java:659)
   	at java.util.ArrayList.get(ArrayList.java:435)
   	at org.apache.rocketmq.acl.plain.PlainPermissionManager.updateAclConfigFileVersion(PlainPermissionManager.java:269)
   	at org.apache.rocketmq.acl.plain.PlainPermissionManager.deleteAccessConfig(PlainPermissionManager.java:421)
   	at org.apache.rocketmq.acl.plain.PlainAccessValidator.deleteAccessConfig(PlainAccessValidator.java:151)
   	at org.apache.rocketmq.acl.plain.PlainAccessValidatorTest.deleteAccessAclToEmptyTest(PlainAccessValidatorTest.java:918)
   ```
   
   - What did you do (The steps to reproduce)?
   
   - What did you expect to see?
   
   - What did you see instead?
   
   2. Please tell us about your environment:
   
   3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
   
   **FEATURE REQUEST**
   
   1. Please describe the feature you are requesting.
   
   2. Provide any additional detail on your proposed use case for this feature.
   
   2. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?
   
   4. If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:
   
   - [sub-task1-issue-number](example_sub_issue1_link_here): sub-task1 description here, 
   - [sub-task2-issue-number](example_sub_issue2_link_here): sub-task2 description here,
   - ...
   


-- 
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-unsubscribe@rocketmq.apache.org

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



[GitHub] [rocketmq] duhenglucky closed issue #3875: Unable to delete last acl account.

Posted by GitBox <gi...@apache.org>.
duhenglucky closed issue #3875:
URL: https://github.com/apache/rocketmq/issues/3875


   


-- 
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-unsubscribe@rocketmq.apache.org

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