]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: generate version ids that don't change when urldecoded
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 23 Jan 2015 01:29:45 +0000 (17:29 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 23 Jan 2015 01:29:45 +0000 (17:29 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc

index 609bec9f03907bd778a5c528ecf73e4e544875d9..6c92a09ce71ef43899c13cc80586de550f4e4e81 100644 (file)
@@ -6232,7 +6232,7 @@ void RGWRados::gen_rand_obj_instance_name(rgw_obj *target_obj)
 #define OBJ_INSTANCE_LEN 32
   char buf[OBJ_INSTANCE_LEN + 1];
 
-  gen_rand_base64(cct, buf, OBJ_INSTANCE_LEN);
+  gen_rand_alphanumeric(cct, buf, OBJ_INSTANCE_LEN); /* don't want it to get url escaped */
 
   target_obj->set_instance(buf);
 }