Bug 4562 - Editing a session name causes a new session to be created
Summary: Editing a session name causes a new session to be created
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 18:53 UTC by Kris Van Hees
Modified: 2007-06-20 15:15 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kris Van Hees 2007-05-29 18:53:02 UTC
When you select a session in the Frysk Session Manager and then edit the session
name (e.g. to correct a mistake when creating it), and 'Close' the window, the
Frysk Session Manager correctly displays that the session name was changed. 
Quitting frysk and re-entering however shows that the session suddenly exists
under both the old name and the new name.

This is reproducible 100% of the time.
Comment 1 Kris Van Hees 2007-05-29 19:22:06 UTC
Problem is that sessions are stored under their names, so when you change the
name of the session using the edit functionality of the druid, and close the
druid, it triggers a save of the current session, which causes it to get saved
under the new name.  The session manager acts as if the session was renamed, but
in reality (in the underlying fs representation of sessions) a new one got
created.  So, when you start frysk again, it now finds both.

When you chamge the name, the session under the new name ought to be
automatically deleted at the time of saving the session under its new name.  You
can't really do it prior to the save of the new session information, because a
crash or deliberate abort of frysk would leave you without even the old version
of the session.
Comment 2 Sami Wagiaalla 2007-06-20 15:15:38 UTC
Fixed in cvs-HEAD