Open gurka opened 2 years ago
It's a known bug that hibernate/sleep with Windows can close the connection between the extension and KeePassXC.
I tried searching this repo for similar tickets but couldn't find any. Or is the root issue in KeePassXC and not in the extension?
Also, if the connection is down it's odd that the extension still shows a green icon, or able to detect that the db is locked and ask if you want to unlock it, and even (if I remember correctly) add new entries to the db. It's just fetching entries and fill forms that fails.
Experiencing the same in Edge Chromium 101.0.1210.26 on Pop OS. Plugin is connected to the database as I can invoke Autotype from the context menu, however auto fill or the icon in the username field does nothing.
I've noticed that having logged in, the extension now always prompts to add the captured details as a new entry in the database, even if it already exists. And even after this, that new entry is still not available for autocomplete.
@AMoonRabbit That is a different issue you are having. Make a new thread about it and provide details with debug logs.
I'm experiencing the same in firefox.
Clicking the green icon does nothing.
This was working, not sure if the trouble with 2.7.3 and 2.7.4 had something to do with it. Chrome works OK. I can provide any debug information as required. It's possible that suspend hibernate may break the connection to the DB, however, when I select request global auto-type, the credentials are there I am able to access them, but the icon in username field doesn't work. After restarting the firefox browser, the issue has gone away for now.
Expected Behavior
Clicking the green icon on a login form should either show the popup to select which credentials to allow, or show a list of credentials if the "remember selection" option has been selected in the popup window earlier.
Current Behavior
Clicking the green icon does nothing.
Possible Solution
This happens very often for me, almost always after not using the computer for a while and/or after the OS has been hibernating. Usually I just give up and copy-paste the credentials directly from KeePassXC, but last time I tried to troubleshoot it a bit more.
I opened up the plugin console log and could see a warning/error line saying something like "Invalid tab ID: xyz" every time I clicked the green icon. I tried to close/re-open tabs, try other web pages, etc but nothing helped. Also, every time this warning/error message was logged there was another line just before it (a normal, non warning/error) saying something about nonce being invalid.
The reason I don't know exactly what those log lines said is because while switching tabs back and forth suddenly something happened, the plugin console got cleared and new lines appeared:
After that happened everything worked OK again. I'm not sure what happened, but it looked like the plugin crashed or restarted, and that solved the issue?
Another note: when this happens and I give up trying to get the plugin to work, and just copy-paste directly from KeePassXC, the plugin still asks me if I want to update and/or create a new entry for these credentials. This functionality seems to work OK even though the plugin is unable to fill credentials...
Steps to Reproduce (for bugs)
Not sure yet. I tried manually hibernating the computer and starting it again, but that did not trigger it. I will try to figure out how to trigger it and update the ticket.
Debug info
KeePassXC - 2.7.1 KeePassXC-Browser - 1.8.2.1 Operating system: Windows 10 Browser: Firefox 104.0