Skip to content

Space in IM type field breaks export #499

Description

@hoyalu

Checklist

  • I can reproduce the bug with the latest version given here.
  • I tried to make sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I tried to make sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.6.0

Affected Android/Custom ROM version

Android 16 / GrapheneOS 2026012101

Affected device model

Pixel 8

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

  1. Add a new contact. No need to give it a name, but it makes it easier to find it afterwards.
  2. Enter anything in the IM field. As its type (or whatever it's called; the one on the right, defaults to "Skype") chose Custom and enter any value containing a space like "a b".
  3. Save the contact.
  4. Try to share this contact or to export all contacts.

Expected behavior

Sharing and export works.

Actual behavior

A popup appears: "Error: java.lang.IlleglaArgumentException: java.net.URI…"
When trying to share, the choice of apps to share with doesn't appear. When trying to export, a 0-byte file gets written.

ignoreImageMinify

Screenshots/Screen recordings

No response

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions