keepassxc-browser icon indicating copy to clipboard operation
keepassxc-browser copied to clipboard

Showing ALL `KPH:` Entries

Open Major-Mike opened this issue 10 months ago • 11 comments

Expected Behavior

When there are KPH: items for a given entry, it should only show those when trying to fill in that site.

Current Behavior

When you have KPH: items for an entry and trying to fill in a site, it shows ALL KPH: items from all entries that have them and not just the one you are trying to fill.

Possible Solution

Whatever current logic is grabbing everything should be adjusted to respect the site the entry is for and currently on only.

Steps to Reproduce (for bugs)

  1. Go to a site that has KPH: items
  2. Try to fill from the attributes list
  3. Observe that ALL items are there

Debug info

KeePassXC - 2.7.7 KeePassXC-Browser - 1.9.0.3 Operating system: Win64 Edition Windows 11 Pro, 22H2, build 22621.3447 Browser: Microsoft Edge 124.0.2478.51 (Official build) (64-bit)

Major-Mike avatar Apr 21 '24 18:04 Major-Mike

Shows them where exactly?

varjolintu avatar Apr 21 '24 18:04 varjolintu

In the context menu when you would select what to fill.

Major-Mike avatar Apr 22 '24 04:04 Major-Mike

Do you mean you want to show Fill Attribute items only for the one you have already filled in the input fields? Got it. So if none are selected, all attributes are shown in the context menu, but after filling credentials, it's filtered to the selected one?

varjolintu avatar Apr 22 '24 05:04 varjolintu

No, so let's say you have a site abc.com and you have three attributes called KPH: One, KPH: Two, and KPH: Three. Then you have a site called 123.com and you have two attributes called KPH: One, KPH: Two. When you go to either sites and you right click on the field that needs the value of an attribute and you go to the "attributes" submenu, you will see One, One, Two, Two, Three (all of the attributes from all the entries that have them, even though you filing on site 123.com where only One, Two should appear. Does that clarify?

Major-Mike avatar Apr 23 '24 04:04 Major-Mike

No, because site 123.com does not have access to site abc.com's entry, unless you using the same entry with both. Even so, you cannot know the attribute value is the same even if the names are identical. And you cannot bind an attribute to a specific site. So this scenario is still a bit unclear to me.

varjolintu avatar Apr 23 '24 05:04 varjolintu

I was using the example to demonstrate but I am not sure why it is not clear. If attributes are associated to a specific entry for a specific site then it should ONLY appear on that site, period. There is absolutely no reason all the attributes for all entries should show up on the context menu, why would they?

Major-Mike avatar Apr 23 '24 06:04 Major-Mike

The main thing what is unclear to me: Why attributes of all entries are shown to you because the site only has access to an entry or entries with the specific URL for that site.

If I create two new entries with URLs 123.com and abc.com, and those have different attributes, and then access 123.com, the entry (and its attributes) for abc.com is not shown.

varjolintu avatar Apr 23 '24 06:04 varjolintu

I believe we are talking about the same thing. That's precisely what I was wondering and why I came here to ask why it would show all that when the expectation is that it would be limited to the entry for the site that you are on.

Now if you have 5 accounts, like say Gmails, and you have attributes for all of them and you are on a page that you need to fill, ok I can get on those how all the 5 entry attributes would show up as the "site" that is bound to them is likely the same, but this wasn't the case for the instance that brought me to you.

So what do you need to do to diagnose this, please tell me, and I can provide it. I am not a novice, so you can pretty much tell me whatever you need and I should be able to give it to you. If I still need to then I will let you know and seek input on how.

Major-Mike avatar Apr 24 '24 18:04 Major-Mike

At first you should take a look at the entries Properties tab when you edit them. It lists the permissions (KeePassXC-Browser Settings) for the extension. Have you remembered the site permissions earlier, or do you actually get a promp where it asks for them?

Also Browser Integration's Advanced settings tab would be interesting to see. If nothing else helps.

varjolintu avatar Apr 24 '24 18:04 varjolintu

Sorry for the delay I was out of town for work. The first part I don't quite get but the second part here you go:

image

Major-Mike avatar May 01 '24 05:05 Major-Mike

Just edit your (problematic) entries, and go to the Properties tab where a Plugin Data table is visible.

varjolintu avatar May 01 '24 06:05 varjolintu