If the uri contains port information when selecting host matching, the mobile client cannot pop up the correct auto fill option #1550

Closed
opened 2025-11-26 22:52:16 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @Seed680 on GitHub (Dec 25, 2022).

Steps To Reproduce

  1. URI match select HOST
  2. URI contain port like xxx.com:1443
  3. visit xxx.com:1443
  4. pop up the selection dont have the right info

Expected Result

pop up the right account info

Actual Result

dont have account info

Screenshots or Videos

IMG_20221225_160435
IMG_20221225_162515
IMG_20221225_160343

Additional Context

If the uri contains port information when selecting host matching, the mobile client cannot pop up the correct auto fill option

Operating System

Android

Operating System Version

No response

Device

No response

Build Version

2022.11.0(5580)

Beta

  • Using a pre-release version of the application.
Originally created by @Seed680 on GitHub (Dec 25, 2022). ### Steps To Reproduce 1. URI match select HOST 2. URI contain port like xxx.com:1443 3. visit xxx.com:1443 4. pop up the selection dont have the right info ### Expected Result pop up the right account info ### Actual Result dont have account info ### Screenshots or Videos ![IMG_20221225_160435](https://user-images.githubusercontent.com/10334189/209461045-d8fc11fd-e4aa-43ed-a616-253b71152826.jpg) ![IMG_20221225_162515](https://user-images.githubusercontent.com/10334189/209461547-2391b76b-e03d-4e4d-917c-185bd2b410f9.jpg) ![IMG_20221225_160343](https://user-images.githubusercontent.com/10334189/209461048-208750bc-dc1d-4b29-837d-ebabf430ab5b.jpg) ### Additional Context If the uri contains port information when selecting host matching, the mobile client cannot pop up the correct auto fill option ### Operating System Android ### Operating System Version _No response_ ### Device _No response_ ### Build Version 2022.11.0(5580) ### Beta - [ ] Using a pre-release version of the application.
GiteaMirror added the bug label 2025-11-26 22:52:16 -06:00
Author
Owner

@PlanetWilson commented on GitHub (Jan 10, 2023):

Same behaviour on iOS

@PlanetWilson commented on GitHub (Jan 10, 2023): Same behaviour on iOS
Author
Owner

@Fmstrat commented on GitHub (Jan 17, 2023):

Looks like the search starts here: https://github.com/bitwarden/mobile/blob/master/src/Core/Models/View/LoginUriView.cs#L76

And may be due to the logic in this function: https://github.com/bitwarden/mobile/blob/master/src/Core/Utilities/CoreHelpers.cs#L65

EDIT
Actually I'm wondering if the url passed into here: https://github.com/bitwarden/mobile/blob/master/src/Core/Services/CipherService.cs#L406 isn't getting the port.

@Fmstrat commented on GitHub (Jan 17, 2023): Looks like the search starts here: https://github.com/bitwarden/mobile/blob/master/src/Core/Models/View/LoginUriView.cs#L76 And may be due to the logic in this function: https://github.com/bitwarden/mobile/blob/master/src/Core/Utilities/CoreHelpers.cs#L65 *EDIT* Actually I'm wondering if the `url` passed into here: https://github.com/bitwarden/mobile/blob/master/src/Core/Services/CipherService.cs#L406 isn't getting the port.
Author
Owner

@gldl137 commented on GitHub (Aug 26, 2023):

解决没

@gldl137 commented on GitHub (Aug 26, 2023): 解决没
Author
Owner

@skymkmk commented on GitHub (Sep 29, 2023):

The auto fill service on Android seems like it won't pass the port field so that the client can't match the URI correctly because Android doesn't pass the port to the client at all. I hope that BitWarden can add a new option that relies solely on the full domain name, which excludes port, to match the URI.

@skymkmk commented on GitHub (Sep 29, 2023): The auto fill service on Android seems like it won't pass the port field so that the client can't match the URI correctly because Android doesn't pass the port to the client at all. I hope that BitWarden can add a new option that relies solely on the full domain name, which excludes port, to match the URI.
Author
Owner

@LimLLL commented on GitHub (Dec 12, 2023):

Bitwarden will not pass the full url into the app. For example, when I'm viewing https://home.alist.org:4433/, and set the host match, what the inline auto fill pass to bitwarden app is only the base domain part which is alist.org, the port and the other level of domain names are completely ignored. And this bug has existed for over two years

@LimLLL commented on GitHub (Dec 12, 2023): Bitwarden will not pass the full url into the app. For example, when I'm viewing https://home.alist.org:4433/, and set the host match, what the inline auto fill pass to bitwarden app is only the base domain part which is alist.org, the port and the other level of domain names are completely ignored. And this bug has existed for over two years
Author
Owner

@vvolkgang commented on GitHub (Jun 20, 2024):

Issue migrated to https://github.com/bitwarden/mobile/issues/2261

@vvolkgang commented on GitHub (Jun 20, 2024): Issue migrated to https://github.com/bitwarden/mobile/issues/2261
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#1550