GraphQL API returns invalid repository and tree URLs for repo with spaces in name (not percent-encoded) #15667
Labels
api
Sourcegraph GraphQL API
bug
An error, flaw or fault that produces an incorrect or unexpected result, or behavior.
customer
Important issues reported or desired by a customer.
estimate/0.5d
Milestone
This is the root cause of #15615, which affects https://app.hubspot.com/contacts/2762526/company/1085513342.
Repro:
RepositoryRedirect
andResolveRev
queries.Actual:
RepositoryRedirect
hasrepositoryRedirect.url
:"/sourcegraph.visualstudio.com/Test Repo"
ResolveRev
hasrepositoryRedirect.commit.tree.url
:"/sourcegraph.visualstudio.com/Test Repo"
which are invalid URLs and cause React client routing to break.
Expected:
Both should be
"/sourcegraph.visualstudio.com/Test%20Repo"
The text was updated successfully, but these errors were encountered: