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

オープン
#6,726 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, react-native, typescript
領域
mobile

調査の方向性

ファイルもテストも指定されていません。まず、Android の添付ファイルのオープン/intent フローと、content://net.demola.chat.android.provider URI を生成する FileProvider の設定を追跡してください。Android 上で画像、音声、DOCX、PDF、テキストの添付ファイルを正常に開くかダウンロードできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

🐛 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

主要言語
TypeScript
スター
2.4k
フォーク
1.5k
平均マージ
1日 15時間
マージ済み PR(30日)
29

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RocketChat/Rocket.Chat.ReactNative のほかの issue

RocketChat/Rocket.Chat.ReactNative の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。