Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix topic ownership is not checked when get topic policy (target branch-2.7) #9781

Merged
merged 3 commits into from Mar 5, 2021

Conversation

zymap
Copy link
Member

@zymap zymap commented Mar 3, 2021

Motivation

  1. Currently, the API of topic policies does not check the ownership of topic. In the case of multiple brokers, a cache not init error will appear.

  2. The parameter validation of the read and write API should not be the same, and the read API should not verify validatePoliciesReadOnlyAccess(). If ReadOnly is set, the read API will also be abnormal.

  3. General API should not use validateAdminAccessForTenant().

The original PR is #9767

…ch 2.7)

1. Currently, the API of topic policies does not check the ownership of topic. In the case of multiple brokers, a `cache not init error` will appear.
@zymap zymap requested review from 315157973 and codelipenghui and removed request for 315157973 March 3, 2021 08:24
@zymap
Copy link
Member Author

zymap commented Mar 3, 2021

/pulsarbot run-failure-checks

1 similar comment
@315157973
Copy link
Contributor

/pulsarbot run-failure-checks

@zymap
Copy link
Member Author

zymap commented Mar 4, 2021

Do not rerun the test. I can reproduce the errors on local.

@zymap
Copy link
Member Author

zymap commented Mar 5, 2021

ping @315157973 @codelipenghui PTAL. Thanks

@codelipenghui codelipenghui merged commit 6538d32 into apache:branch-2.7 Mar 5, 2021
zymap added a commit to streamnative/pulsar-archived that referenced this pull request Mar 5, 2021
…ch-2.7) (apache#9781)

### Motivation
1. Currently, the API of topic policies does not check the ownership of topic. In the case of multiple brokers, a `cache not init error` will appear.

2. The parameter validation of the read and write API should not be the same, and the read API should not verify `validatePoliciesReadOnlyAccess()`. If `ReadOnly` is set, the read API will also be abnormal.

3. General API should not use `validateAdminAccessForTenant()`.

The original PR is apache#9767
@zymap zymap added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants