VCard Import from QR-Code Crashes when ADR is Set
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
The crash happens when a vCard from a QR code includes an ADR line during import in the Contacts app. Start by finding the vCard parsing and address import code in the Kotlin sources, and reproduce with the sample VCARD text from the issue. Done means the ADR-bearing card imports without crashing and the address is stored. Confirm the fix by running the import path with the sample text.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Checklist
- I can reproduce the bug with the latest version given here.
- I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- I made 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
Affected device model
Samsung Galaxy S24 Ultra
How did you install the app?
F-Droid / IzzyOnDroid
Steps to reproduce the bug
- Open the following PDF
- Scan the QR-Code on your Android mobile device
- Open in Contacts
- Contact Crashes, Address is not imported
The QR-Code contains a VCard, generated from LaTeX as follows:
<Reading QR code for "BEGIN:VCARD^^M
VERSION:4.0^^M
N:Test;Test;;;^^M
FN:Test Test^^M
ADR:;;Technoparkstrasse 2;Winterthur;ZH;8406;Switzerland^^M
END:VCARD^^M
" at level 11-H from aux file.>
Result: If the ADR field is absent, the contact is imported, as soon as there is an ADR field, Contacts crashes. Regardless what other fields are defined and regardless on what is in the ADR field.
The visiting card is generated with xeLaTeX usig my template: businesscard-qrcode
\documentclass{businesscard-qrcode}
\begin{document}
\givennames{Test}
\familynames{Test}
\type{work}
\street{Technoparkstrasse\ 2}
\city{Winterthur}
\region{ZH}
\zip{8406}
\country{Switzerland}
\drawcard
\end{document}
Expected behavior
VCard from QR-Code is imported in Contacts.
Actual behavior
Contacts crashes when there is an ADR line.
Sometimes I get a crash report dialog, but most often it just does not open and switches back to the QR scanner.
Screenshots/Screen recordings
No response
Additional information
No response
- Ngôn ngữ chính
- Kotlin
- Star
- 917
- Fork
- 73
- Merge trung bình
- 5 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của FossifyOrg/Contacts
-
feature request needs triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
FossifyOrg/Contacts#176 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug needs triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
FossifyOrg/Contacts#618 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
feature request needs triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
FossifyOrg/Contacts#614 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
New field: IBANĐang mởfeature request needs triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
FossifyOrg/Contacts#613 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug needs triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
FossifyOrg/Contacts#612 · 5 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của FossifyOrg/Contacts
Issue tương tự
-
afk-ok area:data-quality importer size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
enorm-labs/event-junkie#3166 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bugbane/qf good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
osservatorionessuno/bugbane#173 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android: build fails with Android Gradle Plugin 9 (kotlinOptions, lintOptions, proguard-android.txt)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
capacitor-community/stripe#544 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
theopenconversationkit/tock#2113 ·
Maintainer thường phản hồi trong vòng 1 ngày