Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Winscp able to connect then gives error Server: Internal UnsupportedOperationException: null

Indeed, if your server is configured not to allow SSH_FXP_REALPATH function on user's home directory (what is a quite strange setup), WinSCP will fail.

Winscp able to connect then gives error Server: Internal UnsupportedOperationException: null

One of my colleague faced this issue, i am logging this request on behalf of him, used WinSCP 5.11.3 (Build 7995) on Windows 8.1 Pro.
WinSCP could connect to the SFTP server then it throws error UnsupportedOperation. Sesson logging is enabled, find below a snapshot from there,

. 2018-03-14 15:52:30.317 We will use UTF-8 strings as it is mandatory with SFTP version 4 and newer

. 2018-03-14 15:52:30.317 Getting current directory name.
. 2018-03-14 15:52:30.317 Getting real path for '.'
> 2018-03-14 15:52:30.317 Type: SSH_FXP_REALPATH, Size: 11, Number: 1296
< 2018-03-14 15:52:30.396 Type: SSH_FXP_STATUS, Size: 61, Number: 1296
< 2018-03-14 15:52:30.396 Status code: 8, Message: 1296, Server: Internal UnsupportedOperationException: null, Language: 
* 2018-03-14 15:52:30.397 (ECommand) Error getting name of current remote directory.
* 2018-03-14 15:52:30.397 Cannot get real path for '.'.
* 2018-03-14 15:52:30.397 The server does not support the operation.
* 2018-03-14 15:52:30.398 Error code: 8
* 2018-03-14 15:52:30.398 Error message from server: Internal UnsupportedOperationException: null

My hunch is WinSCP is trying to access the base location but it fails to do so, probably due to permission issue, having said that my colleague said that using other component SSH.NET it can perform the same operation without any issue.

I do not like to change a working component, unless absolutely necessary, can you please help