Cannot reconnect to remote c++ host when the user name is of the format user.name@domain.net
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 14
### What happened
1. Add a new remote C++ host (host1.domain.net) using userid = _x_user.name@domain.net
Host and tool chain gets added successfully
We can disconnect and reconnect conveniently.
Screenshot 1, 2, 3 ,4; log messages1.log
2. Restart IDE
Try to connect to the newly added host by right clicking the host and choosing "connect" or through Tools->Options->C/C++->Build Tools - > "Edit" button which launches Build Hosts Manager)
We get HOST_UNREACHABLE _x_user.name@domain.net@host1.domain.net
Screenshot 5, 6; log file: messages.log
The connection module is probably getting confused because of the '@' sign in the user name.
[messages1.log](https://github.com/apache/netbeans/files/9106570/messages1.log)






[messages.log](https://github.com/apache/netbeans/files/9106572/messages.log)
### How to reproduce
1. Add a new remote C++ host (host1.domain.net) using userid = _x_user.name@domain.net
Host and tool chain gets added successfully
We can disconnect and reconnect conveniently.
Screenshot 1, 2, 3 ,4; log messages1.log
2. Restart IDE
Try to connect to the newly added host by right clicking the host and choosing "connect" or through Tools->Options->C/C++->Build Tools - > "Edit" button which launches Build Hosts Manager)
We get HOST_UNREACHABLE _x_user.name@domain.net@host1.domain.net
Screenshot 5, 6; log file: messages.log (There does not seem much in the log)
The connection module is probably getting confused because of the '@' sign in the user name.
[messages.log](https://github.com/apache/netbeans/files/9106575/messages.log)
[messages1.log](https://github.com/apache/netbeans/files/9106576/messages1.log)






### Did this work correctly in an earlier version?
No
### Operating System
WINDOWS 10 x86_64
### JDK
OpenJDK 18.0.1.1
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
C++ module was installed using Netbeans 8.2 repository install through plugins.
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
Contributor guide
Research direction
Reproduce the failure by adding a remote C++ host in Build Hosts Manager with a user name containing '@', disconnecting, restarting the IDE, and reconnecting. Start with the C/C++ Build Tools and Build Hosts Manager connection flow, using the supplied messages.log and messages1.log. Done means the saved host reconnects successfully after the restart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100