Bug 194466 - [telnet] Shell status does not change when a shell exits
Summary: [telnet] Shell status does not change when a shell exits
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: 2.0.1   Edit
Assignee: Martin Oberhuber CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
: 186568 (view as bug list)
Depends on: 187301
Blocks:
  Show dependency tree
 
Reported: 2007-06-26 14:00 EDT by Martin Oberhuber CLA
Modified: 2007-08-17 07:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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