bitwarden / bitwarden/android

matchUri is getting an error

Open
#4,288 6 comments 1 reaction 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

In the `AutofillParserImpl.kt` class within the `com.x8bit.bitwarden.data.autofill.parser` package, the `parseInternal` method, specifically the line 97

```val uri = traversalDataList.buildUriOrNull( packageName = packageName, ) ```

does not correctly retrieve the URI. If the URI is `"http://102.168.5.6:5700"`, the result for `uri` is `"http://102.168.5.6"`, and the port number is not correctly obtained.
![image](https://github.com/user-attachments/assets/015908cd-a37c-414f-8014-e1ab33cb22dd)

### Expected Result

If the URI is `"http://192.168.5.6:5700"`, the result for `uri` is `"http://192.168.5.6:5700"`,

### Actual Result

If the URI is `"http://192.168.5.6:5700"`, the result for `uri` is `"http://192.168.5.6"`, no port info

### Screenshots or Videos

_No response_

### Additional Context

_No response_

### Build Version

2024.11.3(19432)

### What server are you connecting to?

US

### 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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.