[ 
https://issues.apache.org/jira/browse/SSHD-1195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Wolf resolved SSHD-1195.
-------------------------------
    Resolution: Not A Problem

For remote files, it's the server that does the group/user-id-to-names 
translation; that information is only available in the SFTP longname attribute. 
The client cannot do this translation.

And indeed this appears to be a problem in the OpenSSH SFTP client. It does a 
remote glob, which loses the SFTP longname information because it maps the SFTP 
info to standard stat records. If it then sees that the glob returned a single 
directory, it does a SFTP directory listing, which does return the longname, 
and it does print the longname. Otherwise it prints the info collected in the 
remote glob, which has only numeric group and user ids.

So not a problem in Apache MINA sshd but in OpenSSH, and partly in the SFTP 
protocol, which has no explicit mechanism to transport symbolic user/group 
names to the client except implicitly via that longname.

 

> User id/ Group id  of the file and directories are not shown correctly for a 
> single file
> ----------------------------------------------------------------------------------------
>
>                 Key: SSHD-1195
>                 URL: https://issues.apache.org/jira/browse/SSHD-1195
>             Project: MINA SSHD
>          Issue Type: Bug
>            Reporter: Susmit Sarkar
>            Priority: Blocker
>         Attachments: image-2021-07-11-23-51-18-281.png
>
>
> Hello Team,
> I believe there is a issue while fetching the user and groupid for a 
> particular file. The issue is not seen when you see for all files, strangely 
> in a specified directory.
> Looks the PosixFileAttributes for group and user id is not getting set in a 
> single file.
> Please see the screenshot below:
> !image-2021-07-11-23-51-18-281.png|width=635,height=218!
> ls -lrt works fine for all file under the directory.
> ls -lrt mina.log.8 returns 0, so it may be an issue
>  
> Thanks,
> Susmit
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to