Bug #20112
closedUse boost::regex instead of std::regex for rgw_iam_policy.cc and rgw_role.cc
0%
Description
src/rgw/rgw_iam_policy.cc and src/rgw/rgw_role.cc include code that uses the std::regex header.
Per https://bugzilla.redhat.com/show_bug.cgi?id=1180035#c1 and other resources <regex> is not implemented in gcc 4.8 and rhel7/CentOS7 and this code will likely not work as expected.
The code should be changed to work with boost::regex which should be more universally available.
Updated by Greg Farnum almost 7 years ago
please dont just do a search-and-replace. Put a regex in the ceph:: namespace so we can map it to the right thing depending on our environment. this worked really well for smart pointers!
Updated by Kefu Chai almost 7 years ago
i confirm this issue. i also found that that gcc 4.8's regex implementation was buggy and incomplete the hard way.
couple weeks ago, i was trying to replace the boost::regex with std::regex, but some rbd tests just failed. after some researching, i had the same finding as Brad.
Updated by Brad Hubbard almost 7 years ago
I only found it because it bit me too. Seems like it's a big club :)
Updated by Kefu Chai almost 7 years ago
- Status changed from New to Fix Under Review
- Assignee set to Adam Emerson
Updated by Adam Emerson almost 7 years ago
- Status changed from Fix Under Review to Resolved
Updated by John Spray over 6 years ago
- Project changed from Ceph to rgw
- Category deleted (
22)
Bulk reassign of radosgw category to RGW project.