#343 Uploading Multi-Byte filename name body gets erased.

Latest_version
open
nobody
5
2012-11-27
2012-02-06
Anonymous
No

Simple Groupware version: 0.743
Simple Groupware language: Japanese (my original)
PHP Version: e.g. PHP 5.3.3
Database + Version: e.g. MySQL 5.0.77
Server OS: CentOS 5
Webserver: Apache 2.2.3
Used + Version: Firefox 10.0
Your role:Developer

My problem is ...
File name body get erased when uploading files named with multi-byte characters.

It can be reproduced on a new installation by doing ...
1. Create file \"あ.txt\"
2. Drag the file icon to \"Drag and drop files or URLs here.\" area.
3. While transfering filename looks correct.
4. After uploading, only\".txt\" appears left to trash can, file name body \"あ\" is erased.

Additionally, with firebug I can see filename is alive until
\"ajax_binary(\"upload_file\", file, [file.name], callback, function(event) {”
command.
I don\'t know much about debugging features in SGS and just feel but filename is lost during generating SQL query.

I\'ve expected it to work like this:
See correct filename left to trash can icon after uploading progress gets 100%.

Discussion

  • Thomas Bley
    Thomas Bley
    2012-02-06

    Hello,

    can you try a unmodified version of Simple Groupware with a default installation? (English as language)
    Have you checked if mbstring is active as a php module? (see phpinfo on administration overview page within Simple Groupware)

    bye
    Thomas

     

  • Anonymous
    2012-02-07

    Hi.

    I tried with default installation (English / ver7.4.2) and behavior was the same.
    mbstring is installed,
    mbstring section in phpinfo() is like follwing
    --------------
    mbstring
    Multibyte Support enabled
    Multibyte string engine libmbfl
    HTTP input encoding translation disabled

    mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

    Multibyte (japanese) regex support enabled
    Multibyte regex (oniguruma) backtrack check On
    Multibyte regex (oniguruma) version 4.7.1

    Directive Local Value Master Value
    mbstring.detect_order no value no value
    mbstring.encoding_translation Off Off
    mbstring.func_overload 0 0
    mbstring.http_input pass pass
    mbstring.http_output pass pass
    mbstring.http_output_conv_mimetypes ^(text/|application/xhtml\+xml) ^(text/|application/xhtml\+xml)
    mbstring.internal_encoding no value no value
    mbstring.language neutral neutral
    mbstring.strict_detection Off Off
    mbstring.substitute_character no value no value
    ---------

    thanks.
    Kayo