Skip to content

Upload succeeds with permission denied error thrown to client #1019

@ArkusDEV

Description

@ArkusDEV

net.schmizz.sshj.sftp.SFTPException: Permission denied. at net.schmizz.sshj.sftp.Response.error(Response.java:140) at net.schmizz.sshj.sftp.Response.ensureStatusIs(Response.java:133) at net.schmizz.sshj.sftp.Response.ensureStatusPacketIsOK(Response.java:125) at net.schmizz.sshj.sftp.SFTPEngine.setAttributes(SFTPEngine.java:196) at net.schmizz.sshj.sftp.SFTPFileTransfer$Uploader.setAttributes(SFTPFileTransfer.java:227) at net.schmizz.sshj.sftp.SFTPFileTransfer$Uploader.upload(SFTPFileTransfer.java:203) at net.schmizz.sshj.sftp.SFTPFileTransfer$Uploader.access$100(SFTPFileTransfer.java:182) at net.schmizz.sshj.sftp.SFTPFileTransfer.upload(SFTPFileTransfer.java:81) at net.schmizz.sshj.sftp.SFTPFileTransfer.upload(SFTPFileTransfer.java:59) at net.schmizz.sshj.sftp.SFTPFileTransfer.upload(SFTPFileTransfer.java:53) at net.schmizz.sshj.sftp.SFTPClient.put(SFTPClient.java:256)

in ssh-0.40.0
the file is uploaded but the call fails in the end with permission denied due to the call to setAttributes
Is is possible to have an upload which does not set the attributes?
The provider SFTP provider doesnt want to provide write permission on file attributes.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions