keepassxreboot / keepassxc-browser

KeePassXC Browser Extension
GNU General Public License v3.0
1.78k stars 188 forks source link

There is no drop down menu from keepassxc-browser icons in username/password field when I clicked icon #2260

Closed dust2k closed 4 months ago

dust2k commented 4 months ago

I have multiple google accounts and they all use "https://accounts.google.com/v3/signin/challenge" as Keepass entry item's URL, everytime when I get to the second screen to input password, I normally click the icon in password field right side and then there will be a menu popup, so I select the one I want and then the correct password auto fill in, but this morning I try to click the icon in password field and there is nothing happened...

Expected Behavior

when I clicked password field icon, there should be menu with all my acocunts popup so I can select one.

Current Behavior

clicked the icon, nothing happened, move the mouse on top of icon, a message popup said "no credentials to fill"

Possible Solution

when i click the extension icon, then click button "redetect login fields", there is an error message popup in console windows of developer tools, the message is:

keepassxc-browser.js:419 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase') at sortLoginItemBy (keepassxc-browser.js:419:36) at keepassxc-browser.js:452:35 at Array.sort () at kpxc.initLoginPopup (keepassxc-browser.js:452:20) at kpxc.prepareCredentials (keepassxc-browser.js:509:10) at kpxc.retrieveCredentialsCallback (keepassxc-browser.js:650:20) at kpxc.retrieveCredentials (keepassxc-browser.js:639:20) at async kpxc.initCredentialFields (keepassxc-browser.js:383:9)

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Debug info

KeePassXC - Keepass 2.57 KeePassXC-Browser - 1.91 Operating system: Windows 11 Browser: Chrome 126.0.6478.127 (Official Build) (64-bit)

varjolintu commented 4 months ago

The TypeError is something I'm concerned, and that should be checked. Try setting the entry URL's to https://accounts.google.com instead and see if those are found again.

varjolintu commented 4 months ago

Could you give some more details? I'm pretty sure why the error happens but I cannot reproduce it myself.

dust2k commented 4 months ago

The TypeError is something I'm concerned, and that should be checked. Try setting the entry URL's to https://accounts.google.com instead and see if those are found again.

tried to update all URL to "https://accounts.google.com" and the problem is same... I don't have problem yesterday, it's only happened today, I also tried to use different Google profile..but the problem is same, seems this error blocked extension to read multiple entries ...

dust2k commented 4 months ago

Could you give some more details? I'm pretty sure why the error happens but I cannot reproduce it myself.

  • Are you using the new compact mode for Autocomplete Menu?

No, I just tried these setting after I got this problem, and no help at all.

  • Is the "display the group name" setting enabled?

Yes.

  • Is your "Sort matching credentials by" setting set to "Group and title"?

Yes.

varjolintu commented 4 months ago

I think this error should only happen if for some reason your entry does not have a group defined at all, which shouldn't be possible. If you have the skills to debug content scripts, it would be helpful to confirm this setting a breakpoint to keepassxc-browser.js:452 and see what the loginItems Array contains.

dust2k commented 4 months ago

Same database and extension from Firefox and Edge are all working fine like yesterday's Chrome....

varjolintu commented 4 months ago

Same database and extension from Firefox and Edge are all working fine like yesterday's Chrome....

I bet the extension has updated to 1.9.1 only with Chrome.

dust2k commented 4 months ago

Same database and extension from Firefox and Edge are all working fine like yesterday's Chrome....

I bet the extension has updated to 1.9.1 only with Chrome.

Yes, is 1.91 a release with bug? how can I go back to old version? or lock on some old versions??

I have debug both scripts in Edge and Chrome, group field is alway empty in both environment, so I leave this to you guys.

varjolintu commented 4 months ago

Same database and extension from Firefox and Edge are all working fine like yesterday's Chrome....

I bet the extension has updated to 1.9.1 only with Chrome.

Yes, is 1.91 a release with bug? how can I go back to old version? or lock on some old versions??

I have debug both scripts in Edge and Chrome, group field is alway empty in both environment, so I leave this to you guys.

Ok. Thank you. Just to make sure, is it empty or undefined? I'll make some extra checks for the function and around it. Maybe it will solve the issue.

dust2k commented 4 months ago

Same database and extension from Firefox and Edge are all working fine like yesterday's Chrome....

I bet the extension has updated to 1.9.1 only with Chrome.

Yes, is 1.91 a release with bug? how can I go back to old version? or lock on some old versions?? I have debug both scripts in Edge and Chrome, group field is alway empty in both environment, so I leave this to you guys.

Ok. Thank you. Just to make sure, is it empty or undefined? I'll make some extra checks for the function and around it. Maybe it will solve the issue.

Yes, it's empty or undefined.

pushcom commented 4 months ago

I have the same problem with Vivaldi. Your extension with version 1.9.0.5 works as exptected, 1.9.1 does not.

I add some errors from the extension:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')

content/keepassxc-browser.js:419 (Anonyme Funktion)

Firefox works with 1.9.1 without problems.

One of the urls that are not working: https://geschaeftskunden.dhl.de

The login page is: https://sso.geschaeftskunden.dhl.de (you can't access it directly).

Thanks and kind regards

varjolintu commented 4 months ago

If you can, please test the fix: https://github.com/keepassxreboot/keepassxc-browser/pull/2262

I'm interested why the group is not defined at all in your entries. In what group your entries are? Do they have a title, a group name?

pushcom commented 4 months ago

Hi!

I've tested the fix #2262 (replace keepassxc-browser.js) and it seems to work again.

Thanks a lot for your work!

Regards

Konrad

------ Originalnachricht ------ Von "Sami Vänttinen" @.> An "keepassxreboot/keepassxc-browser" @.> Cc "pushcom" @.>; "Comment" @.> Datum 04.07.2024 13:16:59 Betreff Re: [keepassxreboot/keepassxc-browser] There is no drop down menu from keepassxc-browser icons in username/password field when I clicked icon (Issue #2260)

If you can, please test the fix: #2262 https://github.com/keepassxreboot/keepassxc-browser/pull/2262

I'm interested why the group is not defined at all in your entries. In what group your entries are? Do they have a title, a group name?

— Reply to this email directly, view it on GitHub https://github.com/keepassxreboot/keepassxc-browser/issues/2260#issuecomment-2208719718, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJU4F3F37W6UAGLELCY3ETTZKUVKXAVCNFSM6AAAAABKKXXXBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBYG4YTSNZRHA. You are receiving this because you commented.Message ID: @.***>

chotaire commented 4 months ago

For KeepassNatMsg users who can't wait until v1.9.2, download the develop branch. Then do this: https://github.com/keepassxreboot/keepassxc-browser/pull/2262#issuecomment-2210997184

Fixed in v1.9.1.1.

wadabum commented 4 months ago

Thanks for yanking this back into 1.9.1.1
ChromeStore is updated and everything seems to be working again.