Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for unicode files and directories names #18

Closed
wizzard opened this issue Apr 24, 2013 · 3 comments
Closed

Support for unicode files and directories names #18

wizzard opened this issue Apr 24, 2013 · 3 comments
Assignees
Labels

Comments

@wizzard
Copy link
Member

wizzard commented Apr 24, 2013

Add support for unicode files and directories names.
Add a few tests which operate with unicode files and directories.

This issue is related to #15

Current behavior:

touch тест.пхп

11:57:00 [con] (http_connection_make_request http_connection.c:561) [0x12d4120] PUT bucket: skoobe-test-s3ffs path: /aaa/тест.пхп host: skoobe-test-s3ffs.s3.amazonaws.com
11:57:00 [con] (http_connection_on_responce_cb http_connection.c:328) Got HTTP response from server! (435msec)
11:57:00 [con]  (http_connection_on_responce_cb http_connection.c:413) Server returned HTTP error: 403 !
11:57:00 [con] (http_connection_on_responce_cb http_connection.c:414) Error str: Forbidden
11:57:00 [con] (http_connection_on_responce_cb http_connection.c:421) Error msg: >>
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><StringToSignBytes>50 55 54 0a 31 42 32 4d 32 59 38 41 73 67 54 70 67 41 6d 59 37 50 68 43 66 67 3d 3d 0a 0a 57 65 64 2c 20 32 34 20 41 70 72 20 32 30 31 33 20 31 31 3a 35 37 3a 30 30 20 47 4d 54 0a 2f 73 6b 6f 6f 62 65 2d 74 65 73 74 2d 73 33 66 66 73 2f 61 61 61 2f c3 91 c2 82 c3 90 c2 b5 c3 91 c2 81 c3 91 c2 82 2e c3 90 c2 bf c3 91 c2 85 c3 90 c2 bf</StringToSignBytes><RequestId>1240EEE32C239C64</RequestId><HostId>CCelF9yA9DUgDZ6Wz7w51MOl5r/2A2WAWEunaUS9Vqu/m7ohYXYFGY5gGn3mOxsA</HostId><SignatureProvided>HQ1OCK1mU/eF/y6huoCw+r6WBNI=</SignatureProvided><StringToSign>PUT
1B2M2Y8AsgTpgAmY7PhCfg==

Wed, 24 Apr 2013 11:57:00 GMT
/skoobe-test-s3ffs/aaa/�е��.п�п</StringToSign><AWSAccessKeyId>AKIAJ7FYHWJ3NYYCXBXA</AWSAccessKeyId></Error><<
11:57:00 [fio]  (fileio_release_on_part_sent_cb file_io_ops.c:282) Failed to send bufer to server !
@wizzard
Copy link
Member Author

wizzard commented Apr 25, 2013

Should be fixed now.

~/riofs/src/mnt/aaa$ ls -lat
total 0
drwxr-xr-x 1 root root     0 Apr 25 02:52 тест директория
drwxr-xr-x 1 root root     0 Apr 25 02:51 bbb
drwxr-xr-x 1 root root     0 Apr 25 02:51 test dir here
drwxr-xr-x 1 root root     0 Apr 25 02:51 .
drwxr-xr-x 1 root root     0 Apr 25 02:51 ..
-rw-r--r-- 1 root root 23282 Apr 25 01:04 zzz.txt
-rw-r--r-- 1 root root 23282 Apr 25 01:03 тест.файл.xxx
-rw-r--r-- 1 root root     0 Apr 25 01:02 ффф
-rw-r--r-- 1 root root     4 Apr 25 00:58 aaa

@wizzard wizzard closed this as completed Apr 25, 2013
@henningpeters
Copy link
Contributor

Directory listing works now, but opening/writing to a file that contains unicode characters causes still a problem: it hangs.

@henningpeters henningpeters reopened this Apr 25, 2013
@ghost ghost assigned wizzard Apr 28, 2013
@wizzard
Copy link
Member Author

wizzard commented Jul 16, 2013

Tested write / read files with non-ascii characters and spaces in names, works fine.
Right now file name is url-encoded before sending a request to S3 server.

echo "123" > "aaa bbb ccc"
cat aaa\ bbb\ ccc 
123

@wizzard wizzard closed this as completed Jul 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants