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

rgw: fix regression with handling double underscore #10939

Merged
merged 1 commit into from Sep 23, 2016

Conversation

oritwas
Copy link
Member

@oritwas oritwas commented Aug 31, 2016

Fixes: http://tracker.ceph.com/issues/16856
Signed-off-by: Orit Wasserman owasserm@redhat.com

Fixes: http://tracker.ceph.com/issues/16856
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
@theanalyst
Copy link
Member

tested this on master and the patch seems to work as intended, also solves all the other issues we ran int. haven't tested on jewel yet.

@@ -308,7 +308,8 @@ static int read_policy(RGWRados *store,
obj.init_ns(bucket, oid, mp_ns);
obj.set_in_extra_data(true);
} else {
obj = rgw_obj(bucket, object);
obj = rgw_obj(bucket, object.name);
obj.set_instance(s->object.instance);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oritwas while this might fix the issue, I'm having trouble understanding what's going on and why it should or shouldn't work. Sounds like there's a deeper problem that we should be fixing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oritwas reading the code further, I now understand the issue. We should get this fix in, and then rework rgw_obj and rgw_obj_key for future versions.

@oritwas
Copy link
Member Author

oritwas commented Sep 20, 2016

@yehudasa ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants