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 rgw crash when client post object with null conditions #11573

Closed
wants to merge 1 commit into from
Closed

rgw: fix rgw crash when client post object with null conditions #11573

wants to merge 1 commit into from

Conversation

diluga
Copy link
Contributor

@diluga diluga commented Oct 20, 2016

@tchaikov
Copy link
Contributor

@diluga next time, you can git push -f to your remote branch to update the pull request. no need to post a new PR to address the reviewer's comment. =)

@@ -276,6 +276,10 @@ int RGWPolicy::from_json(bufferlist& bl, string& err_msg)
int i;
for (i = 0; !citer.end() && i < 3; ++citer, ++i) {
JSONObj *o = *citer;
const string condition_data = o->get_data();
Copy link
Member

Choose a reason for hiding this comment

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

@diluga make it const string&

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thx!i have chage the code,push it again!

@yehudasa
Copy link
Member

@diluga does that fix it for you? Please see my fix here: https://github.com/yehudasa/ceph/tree/wip-11573-hammer

@yehudasa
Copy link
Member

@diluga
Copy link
Contributor Author

diluga commented Oct 21, 2016

@yehudasa https://github.com/yehudasa/ceph/tree/wip-17635-hammer i have test it,it worked!

@oritwas
Copy link
Member

oritwas commented Oct 24, 2016

fixed in #11581

@oritwas oritwas closed this Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants