twitchob opened a new issue, #24692:
URL: https://github.com/apache/shardingsphere/issues/24692

   ### I have come across an error in one of your documents.Address: 
https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/yaml-config/authority/.
   
![eda61718a83127dfaec46059eb38b66](https://user-images.githubusercontent.com/34822229/226287383-7f7a7d37-770e-4ae5-924c-deea48f70b8c.png)
   
   ### While trying to start the application using the configuration mentioned 
in the document, I was unsuccessful. Upon examining the source code, I found 
that the permission split was implemented using the `indexOf("@")` method. This 
can cause issues if the configuration file does not contain the "@" symbol.
   ### config file:
   
![7c909c76e260d347559c21b39bf0642](https://user-images.githubusercontent.com/34822229/226286481-068c0994-bd4b-404c-92fd-7861799c9d86.png)
   
   ### 
class:org.apache.shardingsphere.authority.provider.database.builder.DatabasePrivilegeBuilder
 row:64,87
   
![a4e5e6d695a2ffdae01c3995bbbcb9a](https://user-images.githubusercontent.com/34822229/226286508-e4c8ee4a-d51e-4b6f-a63c-ce2f680b73e6.png)
   
   
![5dfe987bd59c8f437e63f18045555ad](https://user-images.githubusercontent.com/34822229/226286531-3b14dae7-0530-4ac7-995c-467a33d33dc6.png)
   
   
   ### I would like to suggest two possible solutions to address this problem. 
The preferred solution is to modify the document itself, which will enable 
users to start the application successfully. Alternatively, the code can be 
modified to fix this issue.
   
   ### change config ,it is OK:
   
   
![48bfc6036e9dc2fe2cd916de1432b53](https://user-images.githubusercontent.com/34822229/226287921-be922007-ec53-4c87-8171-44d532eed0cb.png)
   
   
   ### I have already successfully modified the document and submitted a pull 
request. Please kindly consider approving my changes and reviewing the 
suggested modifications.


-- 
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