Bug 194466

Summary: [telnet] Shell status does not change when a shell exits
Product: [Tools] Target Management Reporter: Martin Oberhuber <mober.at+eclipse>
Component: RSEAssignee: Martin Oberhuber <mober.at+eclipse>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 187301    
Bug Blocks:    

Description Martin Oberhuber CLA 2007-06-26 14:00:14 EDT
+++ This bug was initially created as a clone of Bug #187301 +++

Launch a Telnet shell. Either
 (a) Type "exit" in the shell. The shell should get a grey background, and the
     "connected" indicator should disappear from its icons, but it remains.

Or,
 (b) Press the "cancel shell" or "remove shell" button in either the remote
     commands view or the remote systems tree. Again, the shell should get a
     frey background and the "connected" indicator should disappear, but it
     remains.

It looks like some event handling is missing in TelnetHostShell in reaction to dropping the Telnet input stream or output stream. At the very least, for (b) when the user manually cancels a shell it should be marked canceled by doing the proper event sending. 

It would be even better yet to respond to events when the Telnet streams go down (e.g. because the connection to the remote is lost, for instance due to typing "exit" in a shell. But I'm not sure if Apache commons net supports such callbacks.
Comment 1 Martin Oberhuber CLA 2007-08-17 07:15:51 EDT
*** Bug 186568 has been marked as a duplicate of this bug. ***
Comment 2 Martin Oberhuber CLA 2007-08-17 07:20:56 EDT
The fix is basically the same as bug 161838 comment 10.
Update of "connected" state, decorators and actions is fixed through bug 197848.

[194466] Fix shell terminated state when stream is closed
   TelnetHostShell.java  1.5