Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Fix validation in resource id parsing#704

Merged
jhendrixMSFT merged 2 commits intoAzure:mainfrom
karataliu:pf
Aug 8, 2022
Merged

Fix validation in resource id parsing#704
jhendrixMSFT merged 2 commits intoAzure:mainfrom
karataliu:pf

Conversation

@karataliu
Copy link
Copy Markdown
Contributor

@karataliu karataliu commented Jun 24, 2022

Thank you for your contribution to Go-AutoRest! We will triage and review it as soon as we can.

Before fix, 'ANYSTRING+valid id' can also be parsed as valid id, that's not correct.

As part of submitting, please make sure you can make the following assertions:

  • I've tested my changes, adding unit tests if applicable.
  • I've added Apache 2.0 Headers to the top of any new source files.

@jhendrixMSFT
Copy link
Copy Markdown
Member

Can you please provide a brief description of what's broken without this fix?

@karataliu
Copy link
Copy Markdown
Contributor Author

@jhendrixMSFT
That's in description, without the fix:
ABCDEF/subscription/xxx/resourcegroup/xxx/... is considered a valid id, but actually not.

@jhendrixMSFT jhendrixMSFT merged commit 2fa44cb into Azure:main Aug 8, 2022
@karataliu karataliu deleted the pf branch August 9, 2022 00:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants