apache / apache/netbeans

git username with backslash

Open
#6,407 7 comments 0 reactions 0 assignees View on GitHub
git kind:bug
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 19 release candidate

### What happened

When you have backslash in git user name you cannot use git client. The error is http://user\name@gitserver/gitpath/repo.git: cannot open git-upload-pack

I tried modifying git config by entering double backslash or %5C, but outcome is same.

### How to reproduce

Use git account with backslash in username and run any git command

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Windows 10 version 10.0 running on amd64; UTF-8; pl_PL (nb)

### JDK

17.0.8; Java HotSpot(TM) 64-Bit Server VM 17.0.8+9-LTS-211

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure on Windows 10 with a Git account whose username contains a backslash, using the NetBeans Git client and any Git command. Start by tracing how the client constructs and opens the repository URL; done means Git operations succeed without the cannot open git-upload-pack error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, java
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.