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

Failing to list subfolders when server has an IPv6 address #61

Open
althonos opened this issue Dec 21, 2020 · 1 comment
Open

Failing to list subfolders when server has an IPv6 address #61

althonos opened this issue Dec 21, 2020 · 1 comment

Comments

@althonos
Copy link

Hi there!

I'm running Kodi Leia v18.9 on Arch Linux, with v1.0.6 of this addon. I have not confirmed if this bug affects Matrix as well, but I'm dowloading it now to try.

Description

I've noticed a bug when using an IPv6 SSH server: I am able to connect to the server from Kodi and to list the root path that I configured in the source configuration, but I cannot enter any subfolder.

After checking the log, it seems that the square brackets around the IPv6 host are discarded, leading to an invalid URL being built to explore the subfolders. Here's an extract of the logs (with phony IPs in lieu of my own ones):

2020-12-21 01:05:21.302 T:140214680207296   DEBUG: CGUIMediaWindow::GetDirectory (sftp://aaaa:bbbb:cccc:dddd:eeee:ffff:22/path/to/root/subfolder)
2020-12-21 01:05:21.302 T:140214680207296   DEBUG:   ParentPath = [sftp://[aaaa:bbbb:cccc:dddd:eeee:ffff]:22/path/to/root/]]
2020-12-21 01:05:21.303 T:140213617489472   DEBUG: Thread waiting start, auto delete: false
2020-12-21 01:05:21.303 T:140213617489472   ERROR: AddOnLog: SFTP support: SFTPSession: Not connected, can't list directory 'path/to/root/subfolder'
2020-12-21 01:05:21.303 T:140213617489472   ERROR: GetDirectory - Error getting sftp://aaaa:bbbb:cccc:dddd:eeee:ffff:22/path/to/root/subfolder
2020-12-21 01:05:21.303 T:140213617489472   DEBUG: Thread waiting 140213617489472 terminating
2020-12-21 01:05:21.303 T:140214680207296   ERROR: CGUIMediaWindow::GetDirectory(sftp://aaaa:bbbb:cccc:dddd:eeee:ffff:22/path/to/root/subfolder/) failed
2020-12-21 01:05:21.303 T:140214680207296   DEBUG: CGUIMediaWindow::GetDirectory (sftp://[aaaa:bbbb:cccc:dddd:eeee:ffff]:22/path/to/root//)
@RyougiShiki-214
Copy link

I got exactly the same problem on v2.0.0

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