When performing the MSGraph SDK upgrade, the GetApplication method was mistranslated. It was expecting a clientID to be passed in, and it would then filter off of the client ID in order to fetch the Application. However, the actual usage of GetApplication is instead meant to use the ApplicationObjectID to query for the application. This can be seen on this line here, where GetApplication is only used when the ApplicationObjectID is a non-zero value.
This PR fixes the mistranslation, and correctly fetches the application based on the ApplicationObjectID instead of the Client ID.
Contributor Checklist
[ ] Add relevant docs to upstream Vault repository, or sufficient reasoning why docs won’t be added yet
My Docs PR LinkExample
[ ] Add output for any tests not ran in CI to the PR description (eg, acceptance tests)
[ ] Backwards compatible
Overview
When performing the MSGraph SDK upgrade, the
GetApplication
method was mistranslated. It was expecting aclientID
to be passed in, and it would then filter off of the client ID in order to fetch the Application. However, the actual usage ofGetApplication
is instead meant to use theApplicationObjectID
to query for the application. This can be seen on this line here, whereGetApplication
is only used when theApplicationObjectID
is a non-zero value.This PR fixes the mistranslation, and correctly fetches the application based on the
ApplicationObjectID
instead of the Client ID.Contributor Checklist
[ ] Add relevant docs to upstream Vault repository, or sufficient reasoning why docs won’t be added yet My Docs PR Link Example [ ] Add output for any tests not ran in CI to the PR description (eg, acceptance tests) [ ] Backwards compatible