mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SSHD-317) UnsupportedOperationException uploading file Java 7/Windows
Date Thu, 01 May 2014 19:07:15 GMT

    [ https://issues.apache.org/jira/browse/SSHD-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13986878#comment-13986878
] 

Will Glass-Husain commented on SSHD-317:
----------------------------------------

Just verified.  I am running from within Eclipse on JDK 1.7.

The problem appears to be in the SSHD code NativeSshFile.setAttributes

{noformat}
    public void setAttributes(Map<Attribute, Object> attributes) throws IOException
{
        if (!attributes.isEmpty()) {
            throw new UnsupportedOperationException();
        }
    }
{noformat}

I debugged the code and the attribute present was "size".

> UnsupportedOperationException uploading file Java 7/Windows
> -----------------------------------------------------------
>
>                 Key: SSHD-317
>                 URL: https://issues.apache.org/jira/browse/SSHD-317
>             Project: MINA SSHD
>          Issue Type: Bug
>            Reporter: Will Glass-Husain
>
> Hi,
> I'm still seeing errors with windows/Java 7 when uploading files. It appears to be properly
using NativeSshFile, but that causes errors when setting attributes. (v 0.11).  
> I commented on ticket SSHD-257, but since that's closed I'm opening a new one.
> {noformat}
> 10:10:02.221 [Thread-7] ERROR o.a.sshd.server.sftp.SftpSubsystem - Exception caught in
SFTP subsystem
> java.lang.UnsupportedOperationException: null
> at org.apache.sshd.common.file.nativefs.NativeSshFile.setAttributes(NativeSshFile.java:644)
~[sshd-core-0.11.0.jar:0.11.0]
> at org.apache.sshd.server.sftp.SftpSubsystem.process(SftpSubsystem.java:427) ~[sshd-core-0.11.0.jar:0.11.0]
> at org.apache.sshd.server.sftp.SftpSubsystem.run(SftpSubsystem.java:334) ~[sshd-core-0.11.0.jar:0.11.0]
> at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message