[jira] [Created] (SSHD-1241) Handling java.lang.InterruptedException

2022-01-24 Thread Jira
dgü created SSHD-1241:
-

 Summary: Handling java.lang.InterruptedException
 Key: SSHD-1241
 URL: https://issues.apache.org/jira/browse/SSHD-1241
 Project: MINA SSHD
  Issue Type: Request
Affects Versions: 2.8.0
 Environment: Java SE 8, Apache NetBeans IDE 12.5
Reporter: dgü


Hello!

I've been using Jsch 0.1.54 and testing Apache SSHD.

Jsch catches java.lang.InterruptedException and the exception is lost.
_Ref: [https://sourceforge.net/p/jsch/bugs/117/]_

I read SSHD-1134. But, I could not see an answer for it.

How is _java.lang.InterruptedException_ handled in SSHD ?

Thanks in advance!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Closed] (SSHD-1238) java.nio.file.FileSystemNotFoundException by SftpFileSystemProvider.getFileSystem

2022-01-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/SSHD-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dgü closed SSHD-1238.
-
Resolution: Information Provided

> java.nio.file.FileSystemNotFoundException by 
> SftpFileSystemProvider.getFileSystem
> -
>
> Key: SSHD-1238
> URL: https://issues.apache.org/jira/browse/SSHD-1238
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
> Environment: Java SE 8, Apache NetBeans IDE 12.5
>Reporter: dgü
>Assignee: Guillaume Nodet
>Priority: Major
>
> Hello!
> The following code runs successfully:
> {noformat}
> public static void main(String[] args) throws IOException  {
> URI uri = SftpFileSystemProvider.createFileSystemURI("127.0.0.1", 22, 
> "deneme", "deneme123");
> try (FileSystem fs = FileSystems.newFileSystem(uri, 
> Collections.emptyMap())) {
> Path localPath = 
> fs.getPath("C:/Users/XXX/Desktop/sil/sftp/sil1.txt");
> Path targetPath = 
> fs.getPath("C:/Users/XXX/Desktop/sil/sftp/sil2.txt");
> Files.copy(localPath, targetPath, 
> StandardCopyOption.REPLACE_EXISTING);
> }
> }
> {noformat}
> The following code fails:
> {noformat}
> public static void main(String[] args) throws URISyntaxException  {
> Path sourceFile = Paths.get(new 
> URI("sftp://deneme:deneme123@127.0.0.1/C:/Users/XXX/Desktop/sil/sftp/sil.txt;));
> }
> {noformat}
> The exeption is:
> {noformat}
> Exception in thread "main" java.nio.file.FileSystemNotFoundException: 
> 127.0.0.1:22:deneme
>   at 
> org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.getFileSystem(SftpFileSystemProvider.java:451)
>   at 
> org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.getPath(SftpFileSystemProvider.java:492)
>   at java.nio.file.Paths.get(Paths.java:143)
>   at com.ubtools.ubutils.UBTest.main(UBTest.java:30)
> {noformat}
>  
> How can I solve this problem ?
> Thanks!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Reopened] (SSHD-1238) java.nio.file.FileSystemNotFoundException by SftpFileSystemProvider.getFileSystem

2022-01-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/SSHD-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dgü reopened SSHD-1238:
---

This issue was reopened to change its closing state.

> java.nio.file.FileSystemNotFoundException by 
> SftpFileSystemProvider.getFileSystem
> -
>
> Key: SSHD-1238
> URL: https://issues.apache.org/jira/browse/SSHD-1238
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
> Environment: Java SE 8, Apache NetBeans IDE 12.5
>Reporter: dgü
>Assignee: Guillaume Nodet
>Priority: Major
>
> Hello!
> The following code runs successfully:
> {noformat}
> public static void main(String[] args) throws IOException  {
> URI uri = SftpFileSystemProvider.createFileSystemURI("127.0.0.1", 22, 
> "deneme", "deneme123");
> try (FileSystem fs = FileSystems.newFileSystem(uri, 
> Collections.emptyMap())) {
> Path localPath = 
> fs.getPath("C:/Users/XXX/Desktop/sil/sftp/sil1.txt");
> Path targetPath = 
> fs.getPath("C:/Users/XXX/Desktop/sil/sftp/sil2.txt");
> Files.copy(localPath, targetPath, 
> StandardCopyOption.REPLACE_EXISTING);
> }
> }
> {noformat}
> The following code fails:
> {noformat}
> public static void main(String[] args) throws URISyntaxException  {
> Path sourceFile = Paths.get(new 
> URI("sftp://deneme:deneme123@127.0.0.1/C:/Users/XXX/Desktop/sil/sftp/sil.txt;));
> }
> {noformat}
> The exeption is:
> {noformat}
> Exception in thread "main" java.nio.file.FileSystemNotFoundException: 
> 127.0.0.1:22:deneme
>   at 
> org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.getFileSystem(SftpFileSystemProvider.java:451)
>   at 
> org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.getPath(SftpFileSystemProvider.java:492)
>   at java.nio.file.Paths.get(Paths.java:143)
>   at com.ubtools.ubutils.UBTest.main(UBTest.java:30)
> {noformat}
>  
> How can I solve this problem ?
> Thanks!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Closed] (SSHD-1238) java.nio.file.FileSystemNotFoundException by SftpFileSystemProvider.getFileSystem

2022-01-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/SSHD-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dgü closed SSHD-1238.
-

I guess it would be better to update _Using SftpFileSystemProvider to create an 
SftpFileSystem_ section at 
[https://github.com/apache/mina-sshd/blob/master/docs/sftp.md] explaining that 
java.nio.file.FileSystem is need to create.

Thank you for the clear answer.

> java.nio.file.FileSystemNotFoundException by 
> SftpFileSystemProvider.getFileSystem
> -
>
> Key: SSHD-1238
> URL: https://issues.apache.org/jira/browse/SSHD-1238
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
> Environment: Java SE 8, Apache NetBeans IDE 12.5
>Reporter: dgü
>Assignee: Guillaume Nodet
>Priority: Major
>
> Hello!
> The following code runs successfully:
> {noformat}
> public static void main(String[] args) throws IOException  {
> URI uri = SftpFileSystemProvider.createFileSystemURI("127.0.0.1", 22, 
> "deneme", "deneme123");
> try (FileSystem fs = FileSystems.newFileSystem(uri, 
> Collections.emptyMap())) {
> Path localPath = 
> fs.getPath("C:/Users/XXX/Desktop/sil/sftp/sil1.txt");
> Path targetPath = 
> fs.getPath("C:/Users/XXX/Desktop/sil/sftp/sil2.txt");
> Files.copy(localPath, targetPath, 
> StandardCopyOption.REPLACE_EXISTING);
> }
> }
> {noformat}
> The following code fails:
> {noformat}
> public static void main(String[] args) throws URISyntaxException  {
> Path sourceFile = Paths.get(new 
> URI("sftp://deneme:deneme123@127.0.0.1/C:/Users/XXX/Desktop/sil/sftp/sil.txt;));
> }
> {noformat}
> The exeption is:
> {noformat}
> Exception in thread "main" java.nio.file.FileSystemNotFoundException: 
> 127.0.0.1:22:deneme
>   at 
> org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.getFileSystem(SftpFileSystemProvider.java:451)
>   at 
> org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.getPath(SftpFileSystemProvider.java:492)
>   at java.nio.file.Paths.get(Paths.java:143)
>   at com.ubtools.ubutils.UBTest.main(UBTest.java:30)
> {noformat}
>  
> How can I solve this problem ?
> Thanks!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Closed] (SSHD-1240) Wrong password in URI works

2022-01-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/SSHD-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dgü closed SSHD-1240.
-
Resolution: Not A Problem

Thank you!

> Wrong password in URI works
> ---
>
> Key: SSHD-1240
> URL: https://issues.apache.org/jira/browse/SSHD-1240
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
> Environment: Java SE 8, Apache NetBeans IDE 12.5
>Reporter: dgü
>Priority: Major
>
> Hello!
> This is another question encountered in SSHD-1238.
>  I created URI instances with wrong passwords. But, It worked. The code:
> {noformat}
>  */
> public static void main(String[] args) throws IOException, 
> URISyntaxException {
> // Correct user info
> URI uri = new URI("sftp://deneme:deneme123@127.0.0.1:22;);
> try (FileSystem fs = FileSystems.newFileSystem(uri, 
> Collections.emptyMap())) {
> // Wrong password
> Path sourceFile = Paths.get(new 
> URI("sftp://deneme:random1@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil1.txt;));
> // Wrong password
> Path targetFile = Paths.get(new 
> URI("sftp://deneme:random2@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil2.txt;));
> Files.copy(sourceFile, targetFile, 
> StandardCopyOption.REPLACE_EXISTING);
> }
> }
> {noformat}
>  
> is this expected behaviour? I guess URI in _Paths.get_ matches only 
> host:port:user with URI in _FileSystems.newFileSystem_
> Thanks in advance!
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Commented] (DIRMINA-1158) CVE-2022-23302/23305/23307 In log4j(1.x)

2022-01-24 Thread Jira


[ 
https://issues.apache.org/jira/browse/DIRMINA-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17481244#comment-17481244
 ] 

Emmanuel Lécharny commented on DIRMINA-1158:


Also note that MINA is a library, and does *NOT* use Log4j *AT ALL* except for 
tests.

It uses slf4j which is a facade, you can use whatever log system you like.

> CVE-2022-23302/23305/23307  In log4j(1.x) 
> --
>
> Key: DIRMINA-1158
> URL: https://issues.apache.org/jira/browse/DIRMINA-1158
> Project: MINA
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: 2.1.4, 2.1.5
>Reporter: DONG LI
>Priority: Critical
>
> Hi
> Recently,three vulnerabilities have been discovered 
> :CVE-2022-23302/23305/23307  In log4j(1.x) 。
> The module “mina-core” depend on log4j 1.2.17 ,
> So do we have any plans to  deal with these vulnerabilities?
> Thanks :)
> [https://www.cvedetails.com/cve/CVE-2022-23302]
> [https://nvd.nist.gov/vuln/detail/CVE-2022-23305]
> [https://nvd.nist.gov/vuln/detail/CVE-2022-23307]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Commented] (DIRMINA-1158) CVE-2022-23302/23305/23307 In log4j(1.x)

2022-01-24 Thread Jira


[ 
https://issues.apache.org/jira/browse/DIRMINA-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17481239#comment-17481239
 ] 

Emmanuel Lécharny commented on DIRMINA-1158:


In the short term, no.

Those vulnerability require:
- an access to the configuration file
- the addition of a JMSAppender to this configuration file

We are currently waiting for a new version of log4j1.2 to be released, or may 
be we will switch to https://reload4j.qos.ch/

> CVE-2022-23302/23305/23307  In log4j(1.x) 
> --
>
> Key: DIRMINA-1158
> URL: https://issues.apache.org/jira/browse/DIRMINA-1158
> Project: MINA
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: 2.1.4, 2.1.5
>Reporter: DONG LI
>Priority: Critical
>
> Hi
> Recently,three vulnerabilities have been discovered 
> :CVE-2022-23302/23305/23307  In log4j(1.x) 。
> The module “mina-core” depend on log4j 1.2.17 ,
> So do we have any plans to  deal with these vulnerabilities?
> Thanks :)
> [https://www.cvedetails.com/cve/CVE-2022-23302]
> [https://nvd.nist.gov/vuln/detail/CVE-2022-23305]
> [https://nvd.nist.gov/vuln/detail/CVE-2022-23307]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Commented] (SSHD-1240) Wrong password in URI works

2022-01-24 Thread Guillaume Nodet (Jira)


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

Guillaume Nodet commented on SSHD-1240:
---

The expectation is that the password are ignored when matching file systems, 
only the user is actually checked. This sounds reasonable because a given user 
should not be able to log with two different passwords.

I would suggest not putting the password in the URIs at all.

> Wrong password in URI works
> ---
>
> Key: SSHD-1240
> URL: https://issues.apache.org/jira/browse/SSHD-1240
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
> Environment: Java SE 8, Apache NetBeans IDE 12.5
>Reporter: dgü
>Priority: Major
>
> Hello!
> This is another question encountered in SSHD-1238.
>  I created URI instances with wrong passwords. But, It worked. The code:
> {noformat}
>  */
> public static void main(String[] args) throws IOException, 
> URISyntaxException {
> // Correct user info
> URI uri = new URI("sftp://deneme:deneme123@127.0.0.1:22;);
> try (FileSystem fs = FileSystems.newFileSystem(uri, 
> Collections.emptyMap())) {
> // Wrong password
> Path sourceFile = Paths.get(new 
> URI("sftp://deneme:random1@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil1.txt;));
> // Wrong password
> Path targetFile = Paths.get(new 
> URI("sftp://deneme:random2@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil2.txt;));
> Files.copy(sourceFile, targetFile, 
> StandardCopyOption.REPLACE_EXISTING);
> }
> }
> {noformat}
>  
> is this expected behaviour? I guess URI in _Paths.get_ matches only 
> host:port:user with URI in _FileSystems.newFileSystem_
> Thanks in advance!
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] (SSHD-1240) Wrong password in URI works

2022-01-24 Thread Jira


[ https://issues.apache.org/jira/browse/SSHD-1240 ]


dgü deleted comment on SSHD-1240:
---

was (Author: JIRAUSER284065):
Hello!

This is another question encountered in SSHD-1238.

 I created URI instances with wrong passwords. But, It worked. The code:

{noformat}
 */
public static void main(String[] args) throws IOException, 
URISyntaxException {

// Correct user info
URI uri = new URI("sftp://deneme:deneme123@127.0.0.1:22;);
try (FileSystem fs = FileSystems.newFileSystem(uri, 
Collections.emptyMap())) {
// Wrong password
Path sourceFile = Paths.get(new 
URI("sftp://deneme:random1@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil1.txt;));
// Wrong password
Path targetFile = Paths.get(new 
URI("sftp://deneme:random2@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil2.txt;));

Files.copy(sourceFile, targetFile, 
StandardCopyOption.REPLACE_EXISTING);
}
}
{noformat}

 
is this expected behaviour? I guess URI in _Paths.get_ matches only 
host:port:user with URI in  _FileSystems.newFileSystem_

Thanks in advance!
 

> Wrong password in URI works
> ---
>
> Key: SSHD-1240
> URL: https://issues.apache.org/jira/browse/SSHD-1240
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
>Reporter: dgü
>Priority: Major
>
> Hello!
> This is another question encountered in SSHD-1238.
>  I created URI instances with wrong passwords. But, It worked. The code:
> {noformat}
>  */
> public static void main(String[] args) throws IOException, 
> URISyntaxException {
> // Correct user info
> URI uri = new URI("sftp://deneme:deneme123@127.0.0.1:22;);
> try (FileSystem fs = FileSystems.newFileSystem(uri, 
> Collections.emptyMap())) {
> // Wrong password
> Path sourceFile = Paths.get(new 
> URI("sftp://deneme:random1@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil1.txt;));
> // Wrong password
> Path targetFile = Paths.get(new 
> URI("sftp://deneme:random2@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil2.txt;));
> Files.copy(sourceFile, targetFile, 
> StandardCopyOption.REPLACE_EXISTING);
> }
> }
> {noformat}
>  
> is this expected behaviour? I guess URI in _Paths.get_ matches only 
> host:port:user with URI in _FileSystems.newFileSystem_
> Thanks in advance!
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Updated] (SSHD-1240) Wrong password in URI works

2022-01-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/SSHD-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dgü updated SSHD-1240:
--
Environment: Java SE 8, Apache NetBeans IDE 12.5

> Wrong password in URI works
> ---
>
> Key: SSHD-1240
> URL: https://issues.apache.org/jira/browse/SSHD-1240
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
> Environment: Java SE 8, Apache NetBeans IDE 12.5
>Reporter: dgü
>Priority: Major
>
> Hello!
> This is another question encountered in SSHD-1238.
>  I created URI instances with wrong passwords. But, It worked. The code:
> {noformat}
>  */
> public static void main(String[] args) throws IOException, 
> URISyntaxException {
> // Correct user info
> URI uri = new URI("sftp://deneme:deneme123@127.0.0.1:22;);
> try (FileSystem fs = FileSystems.newFileSystem(uri, 
> Collections.emptyMap())) {
> // Wrong password
> Path sourceFile = Paths.get(new 
> URI("sftp://deneme:random1@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil1.txt;));
> // Wrong password
> Path targetFile = Paths.get(new 
> URI("sftp://deneme:random2@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil2.txt;));
> Files.copy(sourceFile, targetFile, 
> StandardCopyOption.REPLACE_EXISTING);
> }
> }
> {noformat}
>  
> is this expected behaviour? I guess URI in _Paths.get_ matches only 
> host:port:user with URI in _FileSystems.newFileSystem_
> Thanks in advance!
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Updated] (SSHD-1240) Wrong password in URI works

2022-01-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/SSHD-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dgü updated SSHD-1240:
--
Affects Version/s: 2.8.0

> Wrong password in URI works
> ---
>
> Key: SSHD-1240
> URL: https://issues.apache.org/jira/browse/SSHD-1240
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
>Reporter: dgü
>Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Updated] (SSHD-1240) Wrong password in URI works

2022-01-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/SSHD-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dgü updated SSHD-1240:
--
Description: 
Hello!

This is another question encountered in SSHD-1238.

 I created URI instances with wrong passwords. But, It worked. The code:
{noformat}
 */
public static void main(String[] args) throws IOException, 
URISyntaxException {

// Correct user info
URI uri = new URI("sftp://deneme:deneme123@127.0.0.1:22;);
try (FileSystem fs = FileSystems.newFileSystem(uri, 
Collections.emptyMap())) {
// Wrong password
Path sourceFile = Paths.get(new 
URI("sftp://deneme:random1@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil1.txt;));
// Wrong password
Path targetFile = Paths.get(new 
URI("sftp://deneme:random2@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil2.txt;));

Files.copy(sourceFile, targetFile, 
StandardCopyOption.REPLACE_EXISTING);
}
}
{noformat}
 
is this expected behaviour? I guess URI in _Paths.get_ matches only 
host:port:user with URI in _FileSystems.newFileSystem_

Thanks in advance!
 

> Wrong password in URI works
> ---
>
> Key: SSHD-1240
> URL: https://issues.apache.org/jira/browse/SSHD-1240
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
>Reporter: dgü
>Priority: Major
>
> Hello!
> This is another question encountered in SSHD-1238.
>  I created URI instances with wrong passwords. But, It worked. The code:
> {noformat}
>  */
> public static void main(String[] args) throws IOException, 
> URISyntaxException {
> // Correct user info
> URI uri = new URI("sftp://deneme:deneme123@127.0.0.1:22;);
> try (FileSystem fs = FileSystems.newFileSystem(uri, 
> Collections.emptyMap())) {
> // Wrong password
> Path sourceFile = Paths.get(new 
> URI("sftp://deneme:random1@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil1.txt;));
> // Wrong password
> Path targetFile = Paths.get(new 
> URI("sftp://deneme:random2@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil2.txt;));
> Files.copy(sourceFile, targetFile, 
> StandardCopyOption.REPLACE_EXISTING);
> }
> }
> {noformat}
>  
> is this expected behaviour? I guess URI in _Paths.get_ matches only 
> host:port:user with URI in _FileSystems.newFileSystem_
> Thanks in advance!
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Commented] (SSHD-1240) Wrong password in URI works

2022-01-24 Thread Jira


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

dgü commented on SSHD-1240:
---

Hello!

This is another question encountered in SSHD-1238.

 I created URI instances with wrong passwords. But, It worked. The code:

{noformat}
 */
public static void main(String[] args) throws IOException, 
URISyntaxException {

// Correct user info
URI uri = new URI("sftp://deneme:deneme123@127.0.0.1:22;);
try (FileSystem fs = FileSystems.newFileSystem(uri, 
Collections.emptyMap())) {
// Wrong password
Path sourceFile = Paths.get(new 
URI("sftp://deneme:random1@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil1.txt;));
// Wrong password
Path targetFile = Paths.get(new 
URI("sftp://deneme:random2@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil2.txt;));

Files.copy(sourceFile, targetFile, 
StandardCopyOption.REPLACE_EXISTING);
}
}
{noformat}

 
is this expected behaviour? I guess URI in _Paths.get_ matches only 
host:port:user with URI in  _FileSystems.newFileSystem_

Thanks in advance!
 

> Wrong password in URI works
> ---
>
> Key: SSHD-1240
> URL: https://issues.apache.org/jira/browse/SSHD-1240
> Project: MINA SSHD
>  Issue Type: Request
>Reporter: dgü
>Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Created] (SSHD-1240) Wrong password in URI works

2022-01-24 Thread Jira
dgü created SSHD-1240:
-

 Summary: Wrong password in URI works
 Key: SSHD-1240
 URL: https://issues.apache.org/jira/browse/SSHD-1240
 Project: MINA SSHD
  Issue Type: Request
Reporter: dgü






--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Commented] (SSHD-1238) java.nio.file.FileSystemNotFoundException by SftpFileSystemProvider.getFileSystem

2022-01-24 Thread Jira


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

dgü commented on SSHD-1238:
---

Since I'm trying to use SFTP as Java SPI, I created a 
_java.nio.file.FileSystem_ instance first instead of provider specific API and 
it worked.

{noformat}
URI uri = new URI("sftp://deneme:deneme123@127.0.0.1:22;);
try (FileSystem fs = FileSystems.newFileSystem(uri, 
Collections.emptyMap())) {
Path sourceFile = Paths.get(new 
URI("sftp://deneme:randomXYZ@127.0.0.1:22/C:/Users/XXX/Desktop/sil/sftp/sil.txt;));
}
{noformat}

Thanks!

> java.nio.file.FileSystemNotFoundException by 
> SftpFileSystemProvider.getFileSystem
> -
>
> Key: SSHD-1238
> URL: https://issues.apache.org/jira/browse/SSHD-1238
> Project: MINA SSHD
>  Issue Type: Request
>Affects Versions: 2.8.0
> Environment: Java SE 8, Apache NetBeans IDE 12.5
>Reporter: dgü
>Assignee: Guillaume Nodet
>Priority: Major
>
> Hello!
> The following code runs successfully:
> {noformat}
> public static void main(String[] args) throws IOException  {
> URI uri = SftpFileSystemProvider.createFileSystemURI("127.0.0.1", 22, 
> "deneme", "deneme123");
> try (FileSystem fs = FileSystems.newFileSystem(uri, 
> Collections.emptyMap())) {
> Path localPath = 
> fs.getPath("C:/Users/XXX/Desktop/sil/sftp/sil1.txt");
> Path targetPath = 
> fs.getPath("C:/Users/XXX/Desktop/sil/sftp/sil2.txt");
> Files.copy(localPath, targetPath, 
> StandardCopyOption.REPLACE_EXISTING);
> }
> }
> {noformat}
> The following code fails:
> {noformat}
> public static void main(String[] args) throws URISyntaxException  {
> Path sourceFile = Paths.get(new 
> URI("sftp://deneme:deneme123@127.0.0.1/C:/Users/XXX/Desktop/sil/sftp/sil.txt;));
> }
> {noformat}
> The exeption is:
> {noformat}
> Exception in thread "main" java.nio.file.FileSystemNotFoundException: 
> 127.0.0.1:22:deneme
>   at 
> org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.getFileSystem(SftpFileSystemProvider.java:451)
>   at 
> org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.getPath(SftpFileSystemProvider.java:492)
>   at java.nio.file.Paths.get(Paths.java:143)
>   at com.ubtools.ubutils.UBTest.main(UBTest.java:30)
> {noformat}
>  
> How can I solve this problem ?
> Thanks!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[jira] [Created] (SSHD-1239) PtyChannelConfiguration only support PtyType("xterm")?

2022-01-24 Thread g3g4x5x6 (Jira)
g3g4x5x6 created SSHD-1239:
--

 Summary: PtyChannelConfiguration only support PtyType("xterm")?
 Key: SSHD-1239
 URL: https://issues.apache.org/jira/browse/SSHD-1239
 Project: MINA SSHD
  Issue Type: Question
Reporter: g3g4x5x6


PtyChannelConfiguration only support PtyType "{color:#FF}_*xterm*_{color}"?

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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



[GitHub] [mina-ftpserver] 120011676 opened a new issue #10: ftp url UTF-8 not supported (Chinese)

2022-01-24 Thread GitBox


120011676 opened a new issue #10:
URL: https://github.com/apache/mina-ftpserver/issues/10


   ftp url UTF-8 not supported (Chinese)
   
   Upload file name UTF-8 not supported (Chinese)
   Create folder UTF-8 not supported (Chinese)


-- 
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

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



[GitHub] [mina-ftpserver] 120011676 opened a new issue #9: ftp url UTF-8 not supported (Chinese)

2022-01-24 Thread GitBox


120011676 opened a new issue #9:
URL: https://github.com/apache/mina-ftpserver/issues/9


   ftp url UTF-8 not supported (Chinese)
   
   Upload file name UTF-8 not supported (Chinese)
   Create folder UTF-8 not supported (Chinese)


-- 
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

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



Coming release of 2.0 and 2.1 branches

2022-01-24 Thread Emmanuel Lécharny

Hi!

I'm going to cut a release of MINA 2.0.23 and 2.1.6, with a few fixes.

This is needed for FtpServer, but bottome line, those fixes are useful 
anyway.


Thanks !
--
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecha...@busit.com https://www.busit.com/

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



[GitHub] [mina-ftpserver] elecharny commented on issue #8: TLS protocol is not enabled correctly, also only one can be set

2022-01-24 Thread GitBox


elecharny commented on issue #8:
URL: https://github.com/apache/mina-ftpserver/issues/8#issuecomment-1019814256


   hi Marcel,
   
   I was expecting to get a MINA 2.2 released soon, but it seems it's going to 
be moved to later, so I guess I will cut a MINA 2.1.6 and a MINA 2.0.23 asap...


-- 
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

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