apache / apache/netbeans

Cannot reconnect to remote c++ host when the user name is of the format user.name@domain.net

Open
#4,372 0 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage
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)
![Screen1](https://user-images.githubusercontent.com/99991923/178850072-49c23d7b-ce49-4047-b314-5b0e1e89e7bc.PNG)
![Screen2](https://user-images.githubusercontent.com/99991923/178850077-c283282d-e2a3-49b5-af95-e66bb5993d50.PNG)
![Screen3](https://user-images.githubusercontent.com/99991923/178850080-d5647d12-fab2-42dc-845c-1e1f671213f1.PNG)
![Screen4](https://user-images.githubusercontent.com/99991923/178850082-f877fed9-c1fb-4c11-bf57-7163d0b36914.PNG)
![Screen5](https://user-images.githubusercontent.com/99991923/178850084-551e0e34-948f-475d-a30f-5f4e88bbcc8c.PNG)
![Screen6](https://user-images.githubusercontent.com/99991923/178850086-d7d8389b-cb19-4e52-b969-3688a2586133.PNG)
[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)
![Screen1](https://user-images.githubusercontent.com/99991923/178850169-a7e7d01d-755e-49b9-a4e9-b304cfda4501.PNG)
![Screen2](https://user-images.githubusercontent.com/99991923/178850174-64a8b69d-faa5-467b-ac82-955293309ca1.PNG)
![Screen3](https://user-images.githubusercontent.com/99991923/178850176-ebbec306-c2a8-43a2-904a-16adc06a004c.PNG)
![Screen4](https://user-images.githubusercontent.com/99991923/178850179-e87dfa04-ef9a-4a32-9d97-a477449274b6.PNG)
![Screen5](https://user-images.githubusercontent.com/99991923/178850181-a033c80b-d730-4d93-bc9c-6d7cf8969ceb.PNG)
![Screen6](https://user-images.githubusercontent.com/99991923/178850182-13ead917-a341-49e1-93b2-c3db5f48b4ad.PNG)

### 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.