8000 Exception trying to manually fill password to dynamic field · Issue #342 · kee-org/browser-addon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Exception trying to manually fill password to dynamic field #342
Open
@Terrance

Description

@Terrance

Trying to fill a password field with an entry via the right-click menu or the extension popup UI throws:

TypeError: can't access property "map", entries is undefined index.global.js:17690:7

This appears to be happening at the filter chain inside sortMatchedEntries:

const orderedEntries = this.sortMatchedEntries(
matchResult.entries[matchResult.mostRelevantFormIndex]
);

sortMatchedEntries(entries: Entry[]): Entry[] {
return entries
.map(e => new Entry({ ...e }))
.sort((a, b) => b.relevanceScore - a.relevanceScore);
}

At the call site, matchResult.mostRelevantFormIndex is null and matchResult.entries is [[]], an array of an empty array.

For context, this is a site with separate email and password pages, a JavaScript history transition between the two (as opposed to the email form doing a HTTP submission), and a password field with a random ID each time (which prevents me from teaching Kee to fill it automatically).

As it stands, I have to manually copy the password from the popup UI or KeePass itself and paste it, which is a bit cumbersome.

Versions: KeePass 2.57.1, KeePassRPC 2.0.2.0, Firefox 133.0b6, Kee 4.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0