Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DanrDoesCode opened this issue May 18, 2024 · 1 comment
Open

Comments

@DanrDoesCode
Copy link

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
Copy link
Owner

zhanghai commented May 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants