LuckSiege / LuckSiege/PictureSelector

错误java.io.FileNotFoundException(/storage/emulated/0/1/image_cache (Is a directory))

Open
#2,233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

异常类型:java.io.FileNotFoundException(/storage/emulated/0/1/image_cache (Is a directory))
错误描述:在LocalMediaPageLoader#loadPageMediaData获取图片资源时,因系统数据库错误,使比如/storage/emulated/0/1/image_cache文件夹的MIME标记为image/*类型被识别为了图片,在isFilterInvalidFile和isFileExists筛选时,无法正确筛选此数据,导致图片在预览中无法正常显示。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at LocalMediaPageLoader#loadPageMediaData and inspect how isFilterInvalidFile and isFileExists handle the database entry for /storage/emulated/0/1/image_cache. Reproduce the FileNotFoundException and verify that a directory incorrectly marked as image/* is excluded so image preview loading no longer fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.