microsoftgraph / microsoftgraph/msgraph-sdk-go

extra $ sign on ListSites "search" query param

Open
#532 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
335
Forks
43
Avg merge
15h 19m
Merged PRs (30d)
3

Description

when setting the query params of listSites request using RequestInformation class, the template used for preparing the URL uses "$search" while the API expects "search" without the "$" sign.

To work around it I had to patch the httpRequest manually:
"httpRequest.URL.RawQuery = "search=%2A"

However, currently it is not supported using the SDK.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the generated ListSites request builder and its RequestInformation query-parameter template. Compare the emitted query key with the API's expected search key and inspect any existing request tests or URL assertions. Done when SDK configuration produces search=%2A without the extra $, without manual RawQuery editing.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.