On 01/07/2013 12:04 PM, Sylvain Munaut wrote:
Ok, I tracked this down ... I'm using lighttpd as a FastCGI front end and it doesn't set SCRIPT_URI environment. So the line 1123 in rgw/rgw_rest.cc : s->script_uri = s->env->get("SCRIPT_URI"); Tries to assign NULL to s->script_uri which crashes with the particularly unhelpful stack trace I pasted above ...
As far as I know relying on SCRIPT_URI is rather dangerous since it's not always there.
There better should be an if/else-satement surrounding that code having it defaulting to something else if SCRIPT_URI isn't available.
That's what I still remember from my PHP-days where SCRIPT_URI was always a hit-and-miss.
Wido
Cheers, Sylvain -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
-- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html