bitwarden / bitwarden/android

Host Match Detection broken for URLs with ports

Open
#5,084 18 comments 2 reactions 0 assignees View on GitHub
app:password-manager bug
Dominant language
Kotlin
Stars
9.4k
Forks
1.1k
Avg merge
1d 14h
Merged PRs (30d)
67

Description

### Steps To Reproduce

https://github.com/bitwarden/mobile/issues/2970
1. Save an autofill item for a URL with a port.
2. See how it behaves on sites.

### Expected Result

Works correctly. Or at least works like the old app.

### Actual Result

Doesn't work.

### Screenshots or Videos

_No response_

### Additional Context

_No response_

### Build Version

2025.3.0

### What server are you connecting to?

Self-host

### Self-host Server Version

_No response_

### Environment Details

_No response_

### Issue Tracking Info

- [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Android autofill failure with a saved item whose URL includes a port, then compare its host match behavior with the old app. Trace the host match detection entry point and verify that autofill works correctly on sites using ported URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.