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

bugfix: more safety when parsing table IDs and table entity IDs, also accept table IDs in legacy and newer formats #106

Merged
merged 4 commits into from
Feb 28, 2024

Conversation

manicminer
Copy link
Collaborator

@manicminer manicminer commented Feb 26, 2024

Note in the AzureRM provider we used to have table IDs in the format:

https://foo.table.core.windows.net/bar

but migrated to the format:

https://foo.table.core.windows.net/Tables('bar')

The API uses both forms for different operations, for this reason and to avoid further state migrations in the provider, it's helpful to accept both formats, whilst outputting the newer form in the latest SDK.

Also, for consistency, use application/xml content type for XML payloads instead of text/xml (although the API seems to support both).

Also also, updating go-azure-sdk to v0.20240227.1172434 to include:

@manicminer manicminer force-pushed the bugfix/table-id-parsing branch 2 times, most recently from 13d868e to 7ffcb6e Compare February 27, 2024 00:54
…n ID string with AzureRM provider, and also accept table IDs in both legacy and newer formats
…p/go-azure-sdk/sdk` and v0.66.2 of `github.com/hashicorp/go-azure-sdk/resource-manager`
…p/go-azure-sdk/sdk` and `github.com/hashicorp/go-azure-sdk/resource-manager`
@manicminer manicminer force-pushed the bugfix/table-id-parsing branch from dca8983 to 9e9387a Compare February 28, 2024 10:35
Copy link
Owner

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@manicminer manicminer merged commit 22fff23 into main Feb 28, 2024
1 check passed
@manicminer manicminer deleted the bugfix/table-id-parsing branch February 28, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants