@bbockelm requested changes on this pull request.
Small changes requested to match coding conventions (should be able to merge them via the GitHub UI).
As a bigger picture issue though, this breaks the ABI for external handlers (I confirmed plugins built against 4.8.x crash with this applied).
I think this is OK -- it's in the xrootd/private
header namespace -- but we should bump the minimum API version for external handlers in order to have server refuse to start instead of crashing.
I'm not sure I know how to do that. @abh3 - do you?
In src/XrdHttp/XrdHttpExtHandler.cc:
> @@ -67,6 +68,9 @@ XrdHttpExtReq::XrdHttpExtReq(XrdHttpReq *req, XrdHttpProtocol *pr): prot(pr), verb(req->requestverb), headers(req->allheaders) { // Here we fill the request summary with all the fields we can resource = req->resource.c_str(); + int envlen=0; + + query = req->opaque?req->opaque->Env(envlen):"";⬇️ Suggested change
- query = req->opaque?req->opaque->Env(envlen):""; + query = req->opaque ? req->opaque->Env(envlen) : "";
In src/XrdHttp/XrdHttpExtHandler.cc:
> @@ -67,6 +68,9 @@ XrdHttpExtReq::XrdHttpExtReq(XrdHttpReq *req, XrdHttpProtocol *pr): prot(pr), verb(req->requestverb), headers(req->allheaders) { // Here we fill the request summary with all the fields we can resource = req->resource.c_str(); + int envlen=0;⬇️ Suggested change
- int envlen=0; + int envlen = 0;
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1