happyfish100 / happyfish100/fastdfs-client-java

storageClient调用get_file_info方法出现java.lang.ArrayIndexOutOfBoundsException错误

Open
#64 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
891
PR merge metrics
No merged PRs in 30d

Description

这个是调用的信息,上传,下载,删除方法都可以调用。
get_file_info就是这个方法调用出错
FileInfo fi = storageClient.get_file_info("group1", "M00/00/00/wKgKs11x4TWASa5AAACi1jeGYIs657.jpg");

错误日志:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Input to decode not an even multiple of 4 characters; pad with =.
at org.csource.common.Base64.decode(Base64.java:319)
at org.csource.common.Base64.decodeAuto(Base64.java:241)
at org.csource.fastdfs.StorageClient.get_file_info(StorageClient.java:1113)

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

Reproduce the get_file_info call shown in the issue, then start with StorageClient.java around line 1113 and follow the calls into Base64.java at lines 241 and 319. Compare this path with the working upload, download, and delete methods. Done means get_file_info no longer raises the reported exception and returns the expected FileInfo.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.