[Bug]: A project whose origin URL contains a space gets no repository identity #35034
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
On Linux, with a T3 Code server built from main and an empty database:
- Make two Git repositories whose
originURLs differ only by a space:appwithoriginset tossh://git@git.example.test/team repos/app.git, andcontrolwithoriginset tossh://git@git.example.test/team-repos/control.git. - Add both folders as projects on the server.
- Read
GET /api/orchestration/shellwith a session token and look at each project'srepositoryIdentity.
Expected behavior#
Both projects get a repository identity from their origin URL. app reports ssh://git@git.example.test/team repos/app.git, the same way control reports its URL.
Actual behavior#
app has no repository identity (null). control, whose URL has a dash where app has a space, resolves normally. git remote -v lists the spaced URL for app as usual.
Impact#
Minor bug or occasional failure
Version or commit#
main, commit b68aedf
Environment#
Linux, T3 Code server from source on Node 26.12.1, empty database, no provider involved.
Logs or stack traces#
$ git -C app remote -v
origin ssh://git@git.example.test/team repos/app.git (fetch)
origin ssh://git@git.example.test/team repos/app.git (push)
$ git -C control remote -v
origin ssh://git@git.example.test/team-repos/control.git (fetch)
origin ssh://git@git.example.test/team-repos/control.git (push)
$ GET /api/orchestration/shell | jq -c '.projects[] | {title, identity: .repositoryIdentity.locator.remoteUrl}'
{"title":"app","identity":null}
{"title":"control","identity":"ssh://git@git.example.test/team-repos/control.git"}
Screenshots, recordings, or supporting files#
Workaround#
None that I found.
A fix is in #28769.
juliusmarminge closed this
Sign in to join this conversation.