Menu

#3 Column "Passwords" completely empty

1.0
closed
nobody
None
2019-10-10
2019-10-03
OLLI_S
No

In KeePass I have unchecked the checkbox "Hide data using asterisks" for the colun "Password" so I see the password in this column (I have temporarily deactivated masking the passwords to see entries without a password).
In the settings of KeePass I selected to use the password font "Consolas, Standard, 16.

When I have ColoredPassword avtivated, then I see nothing in the column "Password" (the column is completely empty). For some entries the column "User Name" is empty too (although they are filled).
When I check the checkbox "Hide data using asterisks" for the column "Password" then I see all entries in "User Name" and all passwords are shown as asterisks.

Here I contacted Dominik Reichl and he answered that he is able to reproduce the issue.
It seems to be a bug in ColoredPassword in relation with the used password font.

Discussion

  • Rookiestyle

    Rookiestyle - 2019-10-03

    I don't have access to a computer currently, so this might take a few days until can reproduce this myself.
    Please attach a debug file meanwhile. You can enter debug mode by starting Kee Pass with Control key pressed or with parameter /debugplugin:coloredpassword

    You will be asked to save a xml file when closing Kee Pass, please attach it to this ticket or send it to me.

     
  • Rookiestyle

    Rookiestyle - 2019-10-05

    I was not able to reproduce this. Using the default font as well as a different font like Consolas, Standard, 16 everything is displayed as expected.

    Please attach your KeePass config file and the debug file to help me investigating this.

    Which .NET version do you use?

     
  • Dominik Reichl

    Dominik Reichl - 2019-10-08

    I can for instance reproduce the problem with Calibri, Regular, 10 as list font (using KeePass 2.43, Windows 8.1, .NET Framework 4.6, no other KeePass plugins). Attached is a ZIP file containing the configuration file, a debug file and screenshots with and without asterisks (in the second case, passwords and URLs are not drawn).

    Thanks and best regards,
    Dominik

     
  • OLLI_S

    OLLI_S - 2019-10-08

    Sorry that I reply so late, but I was very busy.

    And I postet in my first topic the password font (used to display the passwords in the password fiield) and not the font in the list of entries.
    Sorry for that!

    Thank you, @Dominik, that you posted the requested information.

    @Rookiestyle: do you still some information?
    Just tell me and I will send you the requested information.
    And I hope quicker than before.

     

    Last edit: OLLI_S 2019-10-08
  • Rookiestyle

    Rookiestyle - 2019-10-09

    Thanks for sharing all this information to both of you.
    Even with the attached config file I was not able to reproduce this (Windows 10, .NET Framework 4.8).
    I'll try to use https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ to get a virtual box with Windows 8 up and running, but this one will have .NET framework 4.7 most likely.

    Do you face the issue regardless of the font settings or only for some fonts, e. g. Consolas and Calibri but not Courier New which is the default font?
    Does the display change when you

    • change the size of the KeePass window?
    • change the size of the affected columns?
    • scroll left and right in the entry main view?

    Based on the debug file I can see that the coding to draw the password is executed - 8 characters with color "WindowText" (letters) and 5 characters with red color (digits)

     
  • Rookiestyle

    Rookiestyle - 2019-10-09

    I think I found something...

    For drawing the text I need to provide a rectangle in which drawing has to take place.
    Windows already provides such a rectangle (e.Bounds).
    Using this rectangle results in the text being offset (Y axis), it will 'jump' up/down a few pixels.
    This is especially evident as I do not mess with the title column holding the entry's icon.

    I tried to have all the text start at the same position (Y axis) and due to that adjust the rectangle (e.Bounds) and shrinked it 2-3 pixels on each side (left, right, top, bottom)
    Seems like depending on font, Windows version and .NET version this won't work always.

    I now changed the following

    • Don't change the provided rectangle (e.Bounds), text will 'jump' a few pixels but should be displayed
    • Handle all columns beside password column and title column only if alternating background colors are active. Let Windows draw these fields in an ownerdraw listbox will not use the alternating background color and only the default background color will be used for all entries.

    Can you please try the attached debug version?
    It identifies as 0.3.1.1 and has debug mode enabled already.

     

    Last edit: Rookiestyle 2019-10-09
  • OLLI_S

    OLLI_S - 2019-10-09

    Perfect, with the new (attached) version I see all my passords and usernames again.
    See attached screen shot.
    So do you need any log files as well?

     
  • OLLI_S

    OLLI_S - 2019-10-09

    @Rookiestyle: KeePass crashes with your plugin

    I added a new "Dummy" entry for the screen shot in my last posting.
    Then I selected to close KeePass and KeePass asked if the changes to the database should be saved (I selected "Yes").
    Then KeePass is freezing (the window is still shown, grayed out and hangig for over 20 minutes).
    Here I get no question if the XML should be saved.

     

    Last edit: OLLI_S 2019-10-09
  • OLLI_S

    OLLI_S - 2019-10-09

    I started KeePass again, closed it and KeePass wrote the XML file (see attachment).
    The crash did not ocur anymore.

    Tell me if I should answer your questions above:

    Do you face the issue regardless of the font settings or only for some fonts, e. g. Consolas and Calibri but not Courier New which is the default font?
    Does the display change when you
    change the size of the KeePass window?
    change the size of the affected columns?
    * scroll left and right in the entry main view?

     

    Last edit: OLLI_S 2019-10-09
  • Rookiestyle

    Rookiestyle - 2019-10-09

    I'm happy to hear that it's working now for you - no need to answer my additional questions.
    Let me do some code cleanup and then release a new official version that has debug mode disabled.

    Thanks for letting me know about the issue and for your testing activities.

     
  • OLLI_S

    OLLI_S - 2019-10-09

    Thank Dominik, that did most (all) of the testing.

     
  • Rookiestyle

    Rookiestyle - 2019-10-10
    • status: open --> closed
     
  • Rookiestyle

    Rookiestyle - 2019-10-10

    Thanks to both of you, new version is released now

     
  • OLLI_S

    OLLI_S - 2019-10-10

    Thank you for fixing the issue so quickly

     
MongoDB Logo MongoDB