Menu

Keepass not matching url correctly

2020-06-16
2020-06-17
  • Thomas Schweikle

    Within KeePass I have various entries with titles like "nc412.fritz.box:22" or "nc412.fritz.box:443". There are entries for "fritz.box" too, with title "fritz.box".

    Now connecting to one of these hosts with a browser, say: "https://nc412.fritz.box" does not show the awaited entries with titles "nc412.fritz.box:22" and "nc412.fritz.box:443", but only those with title "fritz.box".

    Looks like KeePass does not first strip any given port from a handled name if it does not find a match for the whole url as it should:

    URL handled by keepasshttp: "https://nc412.fritz.box" (port striped by browser, because of given protocol https. The browser will even change "nc412.fritz.box:443" to "https://nc412.fritz.box").
    KeePass seems to search now for matching URLs by trying for every url found:
    1. https://nc412.fritz.box:443
    2. nc412.fritz.box:443
    3. fritz.box:443
    4. fritz.box

    And only returns entries matching fritz.box afterwards.

    Instead it must do:
    1. https://nc412.fritz.box:443
    2. https://nc412.fritz.box
    3. nc412.fritz.box:443
    4. nc412.fritz.box
    5. fritz.box:443
    6. fritz.box

    and stop if it found some nearest matching entry. In my case, since the browser does not handle the port over to keepasshttp:
    1. https://nc412.fritz.box:443
    2. https://nc412.fritz.box -> Match with url return entry, process next entry.

    I am not absolutely sure about the matching algorithm, but something goes wrong there and leads to KeePass not finding urls given with port numbers if the browsers strip standard port numbers from handled over urls.

     

    Last edit: Thomas Schweikle 2020-06-16
  • wellread1

    wellread1 - 2020-06-17

    KeePass Auto-Type does not match URLs, it matches Window Titles, i.e. the browser tab title of the active tab. If you need to match the URL, then you must install a brower extension that posts the URL to the browser tab or use the WebAutoType plugin that uses Windows accessibility tools to make the URL visible to KeePass.

    For more information about Auto-Type matching see the KeePass global hot-key auto-type documentation.

     

    Last edit: wellread1 2020-06-17
  • Paul

    Paul - 2020-06-17

    If you want all Fritz entries to show for Auto-Type, add a "Target Window" in the Auto-Type tab of each Fritz entry. Put *fritz* in the target window field.

    cheers, Paul

     

    Last edit: Paul 2020-06-17

Log in to post a comment.