microsoftgraph / microsoftgraph/msgraph-sdk-java
Microsoft Graph Java SDK v.6.16.0 return empty site list with "*" and ""(empty) search query parameter
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 444
- Forks
- 154
- Avg merge
- 18h 28m
- Merged PRs (30d)
- 4
Description
Describe the bug
Create GraphServiceClient with UsernamePasswordCredential provider
var provider = new UsernamePasswordCredentialBuilder()
.clientId("client_id")
.username("username")
.password("password");
var graphClient = new GraphServiceClient(provider);
Call graphClient.sites().get().getValue()
Expected result: receive a list of the sites
Actual result: an empty list was returned without any error.
GraphServiceClient with ClientSecretCredential provider works as expected on graphClient.sites().get().getValue() call.
SDK Version
6.16.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue through GraphServiceClient.sites().get().getValue() with UsernamePasswordCredentialBuilder, then compare it with ClientSecretCredential. Investigate how the SDK handles the empty or "*" site search query under each credential provider. Done means the username/password flow returns the expected site list without regressing the client-secret flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100