-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Description
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
- Bug Description Added
- Repro Steps Added
- Setup information Added
Metadata
Metadata
Assignees
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Type
Projects
Status
Untriaged