dragonls opened a new pull request #10333:
URL: https://github.com/apache/pulsar/pull/10333


   Fixes #10300 
   
   ### Motivation
   
   Fix the bug that after updating the partition number of  a partitioned 
topic, which has topic level auth policy, new producer/consumer of this topic 
will get error.
   
   ### Modifications
   
   In 
[`org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider#checkPermission`](https://github.com/apache/pulsar/blob/889b9b8e5efc62d2d0cbc761205fba5759c97af0/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/PulsarAuthorizationProvider.java#L394),
 if current `topicName` is a sub partition topic, also check the permissions of 
its partitioned topic.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change added tests and can be verified as follows:
   
     - *Added tests if the partition number of a partitioned topic is updated*
   


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

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


Reply via email to