Closed adhioutlined closed 10 years ago
Thank you for your report. I've checked this issue and reproduced it. So I'll fix it soon. In addition, we'll add new test cases in leofs_client_test.
notes this issue only happen in LeoFSv1.1.1.
After we fixed #219 , this issue happen.
sorry how to change on existing system ? did I have to git clone, make deps, edit the deps/leo_commons/src/leo_http.erl and make & make release ?
You can succeed in building latest LeoFS with using git_checkout .
$ rm deps/leo_commons
$ rm deps/leo_gateway
$ ./rebar get-deps
$ sh ./git_checkout develop
$ make
still got error when create folder using "[ ]" , this error on leo_gateway when I create folder "test [folder]"
[E] gateway_0@192.168.24.80 2014-08-29 07:14:17.9816 +0700 1409271257 leo_s3_auth:authenticate_3/1 403 <<"h8i5pSZxne5iWTddopxczPMuNAQ=">>
[E] gateway_0@192.168.24.80 2014-08-29 07:14:17.11263 +0700 1409271257 null:null 0 ** Cowboy handler leo_gateway_s3_api terminating in handle/2
for the reason error:{badmatch,{ok,{http_req,{sslsocket,{gen_tcp,#Port<0.2096>,tls_connection},<0.5904.0>},ranch_ssl,keepalive,<0.5905.0>,<<"PUT">>,'HTTP/1.1',{{192,168,24,21},56557},<<"kalala.tomica.jcamp.net">>,undefined,443,<<"/kd%20ksd/test%20%5Bfolder%5D/">>,undefined,<<>>,[],[],[{<<"host">>,<<"kalala.tomica.jcamp.net">>},{<<"date">>,<<"Mon, 01 Sep 2014 06:55:52 GMT">>},{<<"authorization">>,<<"AWS c489f9da4beac12fbcae:lNamjNEe452Us6a7fLOYVD6uHbU=">>},{<<"connection">>,<<"Keep-Alive">>},{<<"user-agent">>,<<"DragonDisk 1.05 ( http://www.dragondisk.com )">>},{<<"content-length">>,<<"0">>}],[{<<"connection">>,[<<"keep-alive">>]}],undefined,[],waiting,undefined,<<>>,false,done,[],<<>>,undefined}}}
** Handler state was [{1,64},true,{http_options,leo_gateway_s3_api,8080,8443,"./etc/server_cert.pem","./etc/server_key.pem",128,4096,inner,16,1073741824,524288000,1048576,"./cache/data","./cache/journal",300,1048576,[],[],1000,5242880000,5242880,5242880,5767168}]
** Request was [{socket,{sslsocket,{gen_tcp,#Port<0.2096>,tls_connection},<0.5904.0>}},{transport,ranch_ssl},{connection,keepalive},{pid,<0.5905.0>},{method,<<"PUT">>},{version,'HTTP/1.1'},{peer,{{192,168,24,21},56557}},{host,<<"kalala.tomica.jcamp.net">>},{host_info,undefined},{port,443},{path,<<"/kd%20ksd/test%20%5Bfolder%5D/">>},{path_info,undefined},{qs,<<>>},{qs_vals,undefined},{bindings,[]},{headers,[{<<"host">>,<<"kalala.tomica.jcamp.net">>},{<<"date">>,<<"Mon, 01 Sep 2014 06:55:52 GMT">>},{<<"authorization">>,<<"AWS c489f9da4beac12fbcae:lNamjNEe452Us6a7fLOYVD6uHbU=">>},{<<"connection">>,<<"Keep-Alive">>},{<<"user-agent">>,<<"DragonDisk 1.05 ( http://www.dragondisk.com )">>},{<<"content-length">>,<<"0">>}]},{p_headers,[{<<"connection">>,[<<"keep-alive">>]}]},{cookies,undefined},{meta,[]},{body_state,waiting},{multipart,undefined},{buffer,<<>>},{resp_compress,false},{resp_state,waiting},{resp_headers,[]},{resp_body,<<>>},{onresponse,undefined}]
** Stacktrace: [{leo_gateway_s3_api,handle_2,6,[{file,"src/leo_gateway_s3_api.erl"},{line,452}]},{cowboy_handler,handler_handle,4,[{file,"src/cowboy_handler.erl"},{line,119}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,523}]}]
I've fixed the above issue as follows: https://github.com/leo-project/leo_gateway/commit/57812806cd7a30b28c4e3c1d60f5e0a764ca4732
So you're able to check with the latest develop branch. Thank you for your report.
got error like this :
while upload file name with space using dragon disk , its normal when I just upload file using name like "leofs.mp3"
and this error while upload long name folder
this is my cluster info