[
https://issues.apache.org/jira/browse/SSHD-528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Goldstein Lyor resolved SSHD-528.
---------------------------------
Resolution: Fixed
Using the session's _Random_ factory to generate file handles instead of
_UUID_(s). Also coalesced the code for generating the handle to a single
(_protected_) method, as well as allowing configuration of the file handle size
(default=16 bytes, min.=4, max.=64)
> Use byte[] as the SFTP Handle identifier
> ----------------------------------------
>
> Key: SSHD-528
> URL: https://issues.apache.org/jira/browse/SSHD-528
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Goldstein Lyor
> Assignee: Goldstein Lyor
> Fix For: 1.0.0
>
>
> According to the specification a _handle_ {quote}is an opaque variable-length
> string{quote}. Up until now the tests used _String_(s) because they were
> executed against the _Java_ server - which uses indeed strings. But real
> servers use a bunch of bytes - which if we try to decode as UTF-8 might yield
> exceptions since they might not be UTF-8 strings. E.g., it seems that
> _OpenSSH_ returns some kind of _int_ as the handle value.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)