-
Notifications
You must be signed in to change notification settings - Fork 915
[NETBEANS-3878] Add delete buton for the SSH Connection Dialog #8848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ide/dlight.terminal/src/org/netbeans/modules/dlight/terminal/ui/RemoteInfoDialog.java
Outdated
Show resolved
Hide resolved
|
hmm. the dlight tests aren't hooked into CI. Most seem to work still. The solaris test needs to be turned off on linux and |
|
I was able to execute tests. I copied two test files (cndtestrc and testuserinfo) to $HOME and I used test VM (Fedora 42 with test account) and all tests were executed without failures, except Solaris as you mentioned above. There was a problem with java.lang.NoClassDefFoundError: java/security/acl/NotOwnerException. But if I understand correctly this class was removed in JDK 14. So maybe this test is obsolete (maybe must be refactored)? |
|
regarding CI/tests: opened #8853 |
ba5f0f3 to
d3dbb70
Compare
matthiasblaesing
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general this looks fine to me. However there is one failure situation:
- Establish a connection to demouser@demohost (use values of your choosing, for which you can establish a connection)
- Delete this new connection from the recent list
- Establish another connection to demouser@demohost
After step 2 I would expect the connection not to be in the recently used list, which is the case, but after step 3 I would expect it to be added again. That is not the case.
From looking through the code, I think the problem is, that no "new" connection is established. I.e. in step 1 an SSH connection to demouser@demohost is established. When that connection is established, the recently used list is updated. In step 3 no new connection is opened, but the terminal connection is multiplexed over the existing SSH connection. So no connection is opened.
Debugging let me here:
where in step 3 I hit the return in line 412. I think this would need to be adjusted.
d3dbb70 to
969f9bc
Compare
|
@matthiasblaesing I fixed this problem. I used a disconnect method as it seems like the most direct path to solve it. But because of that all existing terminal tabs for this connection will be closed. But I think if someone wants to delete a connection this is an acceptable behaviour. |
|
@jherkel I have a counter suggestion: Shouldn't moving the While closing connection on deletion might be acceptable, the two actions don't need to be connected. Referring to my example from the sql editor: removing an entry from SQL history does not erase it from the point where it was inserted from history. |
fix problem when connection isn't saved in a list of recent connections
969f9bc to
0d5eb7e
Compare
|
@matthiasblaesing I refactored it. But connectTo isn't called if a connection exists, only isConnected is called by TerminalSupportImpl. So I added a new addConnectionToRecentConnections method. |
matthiasblaesing
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
see issue #3878
With this patch user can delete selected ssh connection.