tomaswolf opened a new issue, #383:
URL: https://github.com/apache/mina-sshd/issues/383

   ### Version
   
   master
   
   ### Bug description
   
   According to the contract of `FileSystemProvider.newFileChannel()` per its 
javadoc, the channel is opened read-only if no `OpenOption`s are passed.
   
   `SftpFileSystemProvider` opens the channel in read-write mode in this case.
   
   ### Actual behavior
   
   Channel is opened read-write, which fails if the remote file is read-only.
   
   ### Expected behavior
   
   Channel is opened read-only if `SftpFileSystemProvider.newFileChannel(path)` 
is called without `OpenOption`s.
   
   ### Relevant log output
   
   _No response_
   
   ### Other information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to