[Bug] 버그 제보 이미지 첨부 안되는 버그
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start with uploadImages() in BugReportViewModel.swift and the existing ImageUploadResponse model in BugReportModels.swift; then inspect AndroidManifest.xml for media permissions. Confirm that image uploads decode the server's file_name response and that the required Android image-read permissions are declared. Done means image attachments no longer cause bug report submission to fail.
Written by the indexing model from the issue text.
Description
버그 설명
버그 제보 화면에서 이미지를 첨부해도 업로드가 되지 않아 제보 자체가 실패함.
원인 분석
1. 이미지 업로드 응답 타입 불일치 (BugReportViewModel.swift)
서버가 {"file_name": [...]} JSON 객체를 반환하는데, uploadImages() 함수에서 [String].self로 디코딩 시도 → 디코딩 에러 발생 → 전체 제보 실패.
BugReportModels.swift에 ImageUploadResponse 모델이 이미 정의되어 있었으나 사용되지 않음.
2. Android 미디어 접근 권한 누락 (AndroidManifest.xml)
READ_MEDIA_IMAGES (Android 13+) 및 READ_EXTERNAL_STORAGE (Android ≤12) 권한이 없어 PhotosPickerItem.loadTransferable()이 이미지 데이터를 읽지 못함.
수정 사항
BugReportViewModel.swift:[String].self→ImageUploadResponse.self,return response.fileNamesAndroidManifest.xml:READ_MEDIA_IMAGES,READ_EXTERNAL_STORAGE권한 추가
- Dominant language
- Swift
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DSM-PICK/PiCK_Android_ADMIN
-
외출 수락 이름 누락 버그 수정 Openbug
DSM-PICK/PiCK_Android_ADMIN#19 · 1 assignee ·
All issues in DSM-PICK/PiCK_Android_ADMIN
Similar issues
-
type: docs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
googleapis/google-cloud-swift#971 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla-mobile/firefox-ios#35743 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
manaflow-ai/cmux#13417 ·
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ionic-team/capacitor#8616 ·