Petals BC FTP

DIR Operation does not recognize special characters

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.2, 3.2.1, 3.3
  • Fix Version/s: 3.4
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    A file, named (by my own brain memory), سزعذ.xml when accessing the server with firefox, is listed as ????.xml in a DIR Operation.

    Well, meaning they are special caracters.

    <tns:dirResponse xmlns:tns="http://petals.ow2.org/components/ftp/version-3">
    <tns:filename>test1.xml</tns:filename>
    <tns:filename>test2.xml</tns:filename>
    <tns:filename>test3.xml</tns:filename>
    <tns:filename>titi.txt</tns:filename>
    <tns:filename>toto.xml</tns:filename>
    <tns:filename>????.xml</tns:filename>
    </tns:dirResponse>

    Show
    A file, named (by my own brain memory), سزعذ.xml when accessing the server with firefox, is listed as ????.xml in a DIR Operation. Well, meaning they are special caracters. <tns:dirResponse xmlns:tns="http://petals.ow2.org/components/ftp/version-3"> <tns:filename>test1.xml</tns:filename> <tns:filename>test2.xml</tns:filename> <tns:filename>test3.xml</tns:filename> <tns:filename>titi.txt</tns:filename> <tns:filename>toto.xml</tns:filename> <tns:filename>????.xml</tns:filename> </tns:dirResponse>
  • Environment:
    Windows 7 32 bit, Petals 3.1, Studio 1.1.1, Webconsole 2.0.3, Firefox 3.6.9

Activity

Hide
Mathieu Carrolle added a comment - Tue, 14 Sep 2010 - 16:17:02 +0200

Added a parameter encoding

Show
Mathieu Carrolle added a comment - Tue, 14 Sep 2010 - 16:17:02 +0200 Added a parameter encoding
Hide
Christophe DENEUX added a comment - Fri, 24 Sep 2010 - 12:39:39 +0200

Why a new parameter is needed ?

Show
Christophe DENEUX added a comment - Fri, 24 Sep 2010 - 12:39:39 +0200 Why a new parameter is needed ?
Hide
Mathieu Carrolle added a comment - Fri, 24 Sep 2010 - 13:51:45 +0200

A new parameter is needed to set the encoding.
Otherwise, how can i know the encoding to use for the name of the file ?

Show
Mathieu Carrolle added a comment - Fri, 24 Sep 2010 - 13:51:45 +0200 A new parameter is needed to set the encoding. Otherwise, how can i know the encoding to use for the name of the file ?
Hide
Christophe DENEUX added a comment - Fri, 24 Sep 2010 - 15:11:05 +0200

You use the API setControlEncoding to define the encoding that will be used with the FTP server.
I think it's not needed to add a parameter to set this value. If you set it to a fixed value (as the local one), and reading correctly data from the XML (with the encoding that has been fixed) that should be good.

Show
Christophe DENEUX added a comment - Fri, 24 Sep 2010 - 15:11:05 +0200 You use the API setControlEncoding to define the encoding that will be used with the FTP server. I think it's not needed to add a parameter to set this value. If you set it to a fixed value (as the local one), and reading correctly data from the XML (with the encoding that has been fixed) that should be good.

People

Dates

  • Created:
    Tue, 14 Sep 2010 - 16:14:18 +0200
    Updated:
    Fri, 24 Sep 2010 - 15:11:05 +0200
    Resolved:
    Tue, 14 Sep 2010 - 16:17:02 +0200