We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In XrdClXRootDResponses.hh, method XRootDStatus::ToStr() :
XrdClXRootDResponses.hh
XRootDStatus::ToStr()
The std::string returned by this method includes an extra NULL character at the end.
std::string
This causes problems with code such as the following:
os << status.ToStr() << " code:" << status.code << " errNo:" << status.errNo << " status:" << status.status;
which gives output:
[ERROR] Server responded with an error: [3007] Unable to read file - wrong file checksum fn= /fst/00000000/0000003e; input/output error\u0000\n code:400 errNo:3007 status:1
(note the extra \u0000 after "input/output error", which causes the output to be truncated).
\u0000
Please remove this unwanted NULL from the end of ToStr(), thanks!
ToStr()
The text was updated successfully, but these errors were encountered:
Hi @slithy, thanks for reporting the problem! I think it has been already fixed in 22d308a
Sorry, something went wrong.
Thanks, I have implemented a workaround which will do the job until we upgrade to XRootD v5, so I'll close the ticket.
No branches or pull requests
In
XrdClXRootDResponses.hh
, methodXRootDStatus::ToStr()
:The
std::string
returned by this method includes an extra NULL character at the end.This causes problems with code such as the following:
which gives output:
(note the extra
\u0000
after "input/output error", which causes the output to be truncated).Please remove this unwanted NULL from the end of
ToStr()
, thanks!The text was updated successfully, but these errors were encountered: