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

Fixes management support for AuthorizationRules #14865

Merged
merged 11 commits into from
Sep 9, 2020
Merged

Conversation

conniey
Copy link
Member

@conniey conniey commented Sep 7, 2020

AuthorizationRules were not currently supported.

  • Adds SharedAccessAuthorizationRule
  • Updates AuthorizationRule to an interface like .NET
  • Fixes serialization bug where the service only understands the global namespace, otherwise, it fails with a bad request.

@conniey conniey added Service Bus Client This issue points to a problem in the data-plane of the library. labels Sep 7, 2020
@conniey conniey added this to the [2020] September milestone Sep 7, 2020
@conniey conniey requested a review from yvgopal as a code owner September 7, 2020 02:31
@conniey conniey self-assigned this Sep 7, 2020
Copy link
Contributor

@hemanttanwar hemanttanwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments

// each XML element to be prefaced with an explicit namespace. For example:
// xmlns="foo" works because "foo" is assigned the global namespace.
// xmlns:ns0="foo", and then prefixing all elements with ns0:AuthorizationRule will break.
if (object instanceof CreateQueueBody) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be else when it is not instance of CreateQueueBody, should we log it ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not an instance, it will just be the normal case where can return as is. This is a special case.

</Rights>
<KeyName>test-name</KeyName>
<PrimaryKey>/4jWkzKBFwO0VemXmUYtBnXJ3Me+saF8hQPE5HzJ/hg=</PrimaryKey>
<SecondaryKey>NsNSEwj//k4ShF7wHsRHj54HsjnyWvyjmfCd3tfXR2Y=</SecondaryKey>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we supposed to add these keys here ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. They're keys to deleted sb instances now. I can change them.

@conniey conniey merged commit cd8b4a1 into Azure:master Sep 9, 2020
@conniey conniey deleted the rules-fix branch September 9, 2020 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Service Bus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants