Skip to content
Snippets Groups Projects
Commit f16df612 authored by Michael Davis's avatar Michael Davis
Browse files

[frontend] Fixes "Bad response from nameserver" in "cta-admin tf ls"

File IDs were being converted from string to int using strtoul instead
of strtoull
parent ab5ba1db
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ std::string cta::grpc::Endpoint::getPath(const std::string &diskFileId) const {
// diskFileId is sent to CTA as a uint64_t, but we store it as a decimal string, cf.:
// XrdSsiCtaRequestMessage.cpp: request.diskFileID = std::to_string(notification.file().fid());
// Here we convert it back to make the namespace query:
uint64_t id = strtoul(diskFileId.c_str(), NULL, 0);
uint64_t id = strtoull(diskFileId.c_str(), NULL, 0);
if(id == 0) return ("Invalid disk ID");
auto response = m_grpcClient->GetMD(eos::rpc::FILE, id, "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment