commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VFS-491) Default port is not configurable
Date Wed, 23 Sep 2015 21:41:04 GMT

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

Bernd Eckenfels updated VFS-491:
--------------------------------
    Priority: Minor  (was: Major)

> Default port is not configurable
> --------------------------------
>
>                 Key: VFS-491
>                 URL: https://issues.apache.org/jira/browse/VFS-491
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Gediminas Siutilas
>            Priority: Minor
>
> {code}
> String targetURI = "ftp://moocow/";
> String expectedURI = "ftp://moocow:22/";
> URI uri = URI.create(targetURI);
> FileName fileName = new URLFileName(uri.getScheme(), uri.getHost(),
>                 uri.getPort(), 22, null, null, null, null, null);
> assertEquals(expectedURI,fileName.getURI());
> {code}
> Expected :ftp://moocow:22/
> Actual   :ftp://moocow/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message