#1022 Add Group no longer works in V3.28

closed
DrK
None
5
2012-09-17
2012-04-04
DrK
No

Due to an automatic refresh of the Tree view, any new group added is automatically then deleted as empty groups are removed during a refresh.

NOTE: Groups do not really exist! We use the "Group" field to display entries in a Tree like structure when the database is displayed in the Tree view (it is just another field when the database is displayed in List view). This group structure is built when the database is read on entering the correct master passphrase. Because it is built from the group field of the entries in the database, there can never be an empty group in the database.

Discussion

  • DrK
    DrK
    2012-04-09

    A version with the fix implemented may be found in:
    http://pwsafe.org/tmp/pwsafe-3.28.1-bin.zip. (revision 4856)

    David

     
  • I downloaded the Build 4856 revision. Then I replaced the old files with the new in my C:/Program Files/ Password Safe directory operating under Windows XP. I started the program and opened an existing database. Help > About Password Safe reports a version number of 3.28.01 and a revision of 4856.

    I select an existing group and right click to show the context menu. I select Add Group and a new subgroup line is open for editing. I type in a name and hit Enter. The new subgroup is not created.

    The same failure occurs when creating a top level group and when using the Edit > Add Group method.

     
  • DrK
    DrK
    2012-04-17

    I cannot reproduce the problem since rev. 4856.

    As has been mentioned numerous times within this Forum, groups do not actually exist, not saved in the database and are rebuilt whenever the database is read in or refreshed. Hence, if you create a new empty group and save the database - they will disappear as there are no entries in the database with that group to cause them to recreated in the Tree view.

    I suspect that in your case, you have set the preference "Save database immediately after Add or Edit" (Manage->Options; top of the Backup tab). This will cause the database to be saved after creating the new group - and of course, it will disappear.

    As also said elsewhere, if you want to keep this preference (and there are good reasons for doing so), then the best way to create a new group is to create a new 'dummy' entry with the new group as its group.

    David

     
  • "I suspect that in your case, you have set the preference 'Save database immediately after Add or Edit'"

    That's correct.

    "...if you want to keep this preference... the best way to create a new group is to create a new 'dummy' entry with the new group as its group.

    Thank you for the explanation. I'll keep the automatic save capability and add new subgroups by entering a dot and then the subgroup name after the group name when creating new entries.