Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix pulsar admin revoke subscription permission endpoint #1251

Conversation

NoFacePeace
Copy link
Contributor

Motivation

The endpoint of RevokeSubPermission does't contain subscription

wrong endpoint: /{property}/{namespace}/permissions/subscription/{subscription}/{role}

correct endpoint: /{property}/{namespace}/permissions/{subscription}/{role}

https://github.com/apache/pulsar/blob/88ebe785dbdab239104981453a9bd0e4a7e896d3/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java#L366

Modifications

delete subscription

@nodece
Copy link
Member

nodece commented Jul 15, 2024

Could you add a test for this PR?

@NoFacePeace
Copy link
Contributor Author

Could you add a test for this PR?

i see

@nodece nodece added this to the v0.14.0 milestone Jul 22, 2024
@nodece nodece merged commit df6a15c into apache:master Jul 22, 2024
9 checks passed
RobertIndie pushed a commit that referenced this pull request Jul 31, 2024
* fix pulsar admin revoke subscription permission endpoint

* feat: support get subscription permissions and add test case

* feat: remove fmt package

---------

Co-authored-by: haotao chen <haotao.chen@shopee.com>
(cherry picked from commit df6a15c)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants