azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[BUG] [azure-identity] `com.azure.identity.AzureIdentityEnvVars` missing in reflect-config.json

Open joggeli34 opened this issue 2 months ago • 6 comments

Describe the bug The new com.azure.identity.AzureIdentityEnvVars uses reflections to build up the values. When running in native code, it can throw null pointer exceptions as the values are not build correctly.

Exception or Stack Trace

java.lang.NullPointerException
       com.azure.identity.implementation.IdentityClientOptions.loadFromConfiguration(IdentityClientOptions.java:696)
       com.azure.identity.implementation.IdentityClientOptions.<init>(IdentityClientOptions.java:92)
       com.azure.identity.CredentialBuilderBase.<init>(CredentialBuilderBase.java:47)
       com.azure.identity.DefaultAzureCredentialBuilder.<init>(DefaultAzureCredentialBuilder.java:68)

To Reproduce Try to use azure-identity in native built code. The static variables stay null

Setup (please complete the following information):

  • Library/Libraries: [e.g. com.azure:azure-identity:1.18.1]
  • Java version: Oracle Graalvm 25.0.1
  • Frameworks: Quarkus

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [x] Bug Description Added
  • [x] Repro Steps Added
  • [x] Setup information Added

joggeli34 avatar Oct 27 '25 14:10 joggeli34

@g2vinay @joshfree

github-actions[bot] avatar Oct 27 '25 14:10 github-actions[bot]

Thank you for your feedback. Tagging and routing to the team member best able to assist.

github-actions[bot] avatar Oct 27 '25 14:10 github-actions[bot]

@g2vinay / @anannya03 Could you take a look at the above issue and help out, thanks!

samvaity avatar Oct 27 '25 21:10 samvaity

Thank you @joggeli34 for reporting this issue. We will investigate and get this resolved in a november patch release.

g2vinay avatar Oct 29 '25 20:10 g2vinay

@g2vinay Did we get the fix out in November release ?

samvaity avatar Dec 08 '25 18:12 samvaity

The fix if applicable will be part of January patch release. I will be picking up this work next week.

g2vinay avatar Dec 11 '25 21:12 g2vinay