You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "sijskes (via GitHub)" <gi...@apache.org> on 2023/03/02 11:29:35 UTC
[GitHub] [mina-sshd] sijskes opened a new issue, #325: exceptions in SftpFileSystemProvider on Files.delete( Path p)
sijskes opened a new issue, #325:
URL: https://github.com/apache/mina-sshd/issues/325
### Version
sshd-sftp 2.9.2
### Bug description
exceptions thrown in on Files.delete( Path p), when deleting symbolic links.
* When deleting symbolic links to non-existant file.
* When deleting symbolic link to existings directory
### Actual behavior
will collect stackdumps later
### Expected behavior
No exception but deletion of the symbolic link.
### Relevant log output
_No response_
### Other information
Server OpenSSH_8.9p1 Ubuntu-3ubuntu0.1
--
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-unsubscribe@mina.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] tomaswolf closed issue #325: exceptions in SftpFileSystemProvider on Files.delete( Path p)
Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf closed issue #325: exceptions in SftpFileSystemProvider on Files.delete( Path p)
URL: https://github.com/apache/mina-sshd/issues/325
--
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-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] sijskes commented on issue #325: exceptions in SftpFileSystemProvider on Files.delete( Path p)
Posted by "sijskes (via GitHub)" <gi...@apache.org>.
sijskes commented on issue #325:
URL: https://github.com/apache/mina-sshd/issues/325#issuecomment-1451734442
````
Caused by: java.nio.file.NoSuchFileException: usr/share/icons/ubuntu-mono-light/stock/22/avatar-default.svg
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.resolveRemoteFileAttributes(SftpFileSystemProvider.java:994)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.lambda$readRemoteAttributes$0(SftpFileSystemProvider.java:969)
at org.apache.sshd.sftp.client.impl.SftpPathImpl.withAttributeCache(SftpPathImpl.java:120)
at org.apache.sshd.sftp.client.impl.SftpPathImpl.withAttributeCache(SftpPathImpl.java:140)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.readRemoteAttributes(SftpFileSystemProvider.java:969)
at org.apache.sshd.sftp.client.impl.AbstractSftpFileAttributeView.readRemoteAttributes(AbstractSftpFileAttributeView.java:71)
at org.apache.sshd.sftp.client.fs.SftpPosixFileAttributeView.readAttributes(SftpPosixFileAttributeView.java:52)
at org.apache.sshd.sftp.client.fs.SftpPosixFileAttributeView.readAttributes(SftpPosixFileAttributeView.java:40)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.checkAccess(SftpFileSystemProvider.java:826)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.delete(SftpFileSystemProvider.java:581)
at java.base/java.nio.file.Files.delete(Files.java:1152)
at nl.qcg.br.releaser.cmds.comp.PathCopier.lambda$remove$3(PathCopier.java:180)
... 19 common frames omitted
Caused by: org.apache.sshd.sftp.common.SftpException: No such file
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.throwStatusException(AbstractSftpClient.java:217)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkAttributesResponse(AbstractSftpClient.java:305)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkAttributes(AbstractSftpClient.java:283)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.stat(AbstractSftpClient.java:997)
at org.apache.sshd.sftp.client.fs.SftpFileSystem$Wrapper.stat(SftpFileSystem.java:412)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.resolveRemoteFileAttributes(SftpFileSystemProvider.java:981)
... 30 common frames omitted
````
--
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-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] tomaswolf commented on issue #325: exceptions in SftpFileSystemProvider on Files.delete( Path p)
Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf commented on issue #325:
URL: https://github.com/apache/mina-sshd/issues/325#issuecomment-1475413382
```
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.checkAccess(SftpFileSystemProvider.java:826)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.delete(SftpFileSystemProvider.java:581)
at java.base/java.nio.file.Files.delete(Files.java:1152)
```
There is definitely a problem here. `Files.delete()` is specified _not_ to follow symlinks, but `SftpFileSystemProvider.checkAccess()` does.
--
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-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] sijskes commented on issue #325: exceptions in SftpFileSystemProvider on Files.delete( Path p)
Posted by "sijskes (via GitHub)" <gi...@apache.org>.
sijskes commented on issue #325:
URL: https://github.com/apache/mina-sshd/issues/325#issuecomment-1451726932
```
Caused by: org.apache.sshd.sftp.common.SftpException: No such file
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.throwStatusException(AbstractSftpClient.java:217)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkResponseStatus(AbstractSftpClient.java:212)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkResponseStatus(AbstractSftpClient.java:186)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkCommandStatus(AbstractSftpClient.java:164)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.rmdir(AbstractSftpClient.java:817)
at org.apache.sshd.sftp.client.fs.SftpFileSystem$Wrapper.rmdir(SftpFileSystem.java:372)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.delete(SftpFileSystemProvider.java:591)
at java.base/java.nio.file.Files.delete(Files.java:1152)
at nl.qcg.br.releaser.util.FileUtil.fixedFileDelete(FileUtil.java:135)
at nl.qcg.br.releaser.cmds.comp.PathCopier.lambda$remove$3(PathCopier.java:181)
... 19 common frames omitted
```
--
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-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] sijskes commented on issue #325: exceptions in SftpFileSystemProvider on Files.delete( Path p)
Posted by "sijskes (via GitHub)" <gi...@apache.org>.
sijskes commented on issue #325:
URL: https://github.com/apache/mina-sshd/issues/325#issuecomment-1451738325
i can't reproduce the case with the symlink pointing to non-existing file anymore, but i pretty sure there was an exception as well.
--
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-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org