Issue Details (XML | Word | Printable)

Key: NET-206
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Bohdan Bobylak
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

Turkish 'i' problem and ParserInitializationException: Unknown parser type: Windows_NT

Created: 17/Mar/08 12:47 PM   Updated: 16/May/08 09:20 AM
Return to search
Component/s: None
Affects Version/s: 1.4
Fix Version/s: 2.0, 1.5

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works DefaultFTPFileEntryParserFactory.patch 2008-03-17 12:51 PM Bohdan Bobylak 0.7 kB
Environment: Linux, JRE1.5

Resolution Date: 16/May/08 09:20 AM


 Description  « Hide
When default locale of a JVM is set to tr_TR with the UTF-8 encoding the following error is seen when connecting to windows ftp server:
...
at org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: Windows_NT
at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:118)
at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2358)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2188)
...

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Bohdan Bobylak added a comment - 17/Mar/08 12:51 PM
Patch that fixies the issue.

Sebb added a comment - 17/Mar/08 01:22 PM
This will also affect the 2.0 code.

Are there any other Locale-dependent calls which assume an English Locale? e.g. toLowerCase()

It looks like String.equalsIgnoreCase() does not use Locales.


Sebb added a comment - 06/Apr/08 10:38 PM