zhanghai / MaterialFiles

Material Design file manager for Android
https://play.google.com/store/apps/details?id=me.zhanghai.android.files
GNU General Public License v3.0
6.07k stars 410 forks source link

Error when opening remote file with apps other than Material Files #1234

Open DanrDoesCode opened 6 months ago

DanrDoesCode commented 6 months ago

So I got java.lang.ArrayIndexOutOfBoundsException: src.length=1 srcPos=0 dst.length=256 dstPos=-5 length=1 error when opening remote (SFTP) files with apps other than Material Files

How to reproduce:

  1. Open Material files.
  2. Setup remote SFTP file storage if you havent done so.
  3. Open any file inside the remote storage. Video: https://github.com/zhanghai/MaterialFiles/assets/169248210/a5b1aff2-db5d-41dd-8b4d-2b23e913373a

If the file is opened with Material Files (eg. Photo viewer, Text editor), it works But if i open it in apps other than Material Files (in the video below i choose Xed, but it can be any app), it will throw error like i mentioned above

The only way to fix the error is to restart the app (remove it from recent apps, then manually relaunch)

I'm using latest version 1.7.2 arm64 from play store

zhanghai commented 6 months ago

Likely an underlying issue in hierynomus/sshj, but I don't even use SFTP myself...