bug: Attachments not downloadable on Android — file URL becomes "content://net.demola.chat.android.provider/files/<filename>"

Đang mở
#6,726 10 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 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ệ
Công nghệ
android, react-native, typescript
Lĩnh vực
mobile

Hướng nghiên cứu

Không có tệp hoặc bài kiểm thử nào được nêu. Hãy bắt đầu bằng cách truy vết luồng mở tệp đính kèm/intent của Android và cấu hình FileProvider tạo ra các URI content://net.demola.chat.android.provider. Hoàn thành khi các tệp đính kèm hình ảnh, âm thanh, DOCX, PDF và văn bản có thể được mở hoặc tải xuống thành công trên Android.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

🐛 bug
Describe the Bug

On Android, tapping any file attachment in a room/thread fails to open or download. I tested image, audio, DOCX, and PDF files with the same result.
When I tried a .txt file and chose “Open in browser,” I saw the attachment resolves to a content URI:

content://net.demola.chat.android.provider/files/<filename>

This is an Android content URI (not an http/https web URL). The app/intent flow appears to pass a content:// URI that external apps can’t open—likely due to missing temporary read permission or a FileProvider configuration/authority issue—so the attachment never opens.

Steps to Reproduce
  1. Open the app on Android and enter any chat.
  2. Tap an existing file attachment (e.g., PDF, image, doc), or upload a new one and then tap it.
  3. Choose the app to open the file
Expected Behavior
  • Tapping an attachment should open it in a suitable viewer or download it successfully on Android.
Actual Behavior
  • The file open/download fails.
  • The file URL displayed/resolved is: content://net.demola.chat.android.provider/files/<filename>
  • Android cannot open it (launched fails to open / images stay loading forever)
Rocket.Chat Server Version

7.9.3

Rocket.Chat App Version

4.65.0.107519

Device Name

Samsung Galaxy M35

OS Version

Android 15

Additional Context

No response

Ngôn ngữ chính
TypeScript
Star
2.4k
Fork
1.5k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
29

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RocketChat/Rocket.Chat.ReactNative

Tất cả issue của RocketChat/Rocket.Chat.ReactNative

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.