Skip to content

Commit

Permalink
MGM: don't do local redirect for shared filesystem if we are contacte…
Browse files Browse the repository at this point in the history
…d via HTTP or from a FUSE client - fixes GITLAB #12
  • Loading branch information
apeters1971 committed Dec 20, 2024
1 parent 7a3a0ac commit 0547c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mgm/XrdMgmOfsFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1632,8 +1632,8 @@ XrdMgmOfsFile::open(eos::common::VirtualIdentity* invid,
ioprio, iotype, isRW, true, &atimeage);
COMMONTIMING("Policy::end", &tm);

// do a local redirect here if there is only one replica attached
if (!isRW && !isPio && (fmd->getNumLocation() == 1) &&
// do a local redirect here if there is only one replica attached and this is not an HTTPS request
if (vid.prot != "https" && !isRW && !isFuse && !isPio && (fmd->getNumLocation() == 1) &&
Policy::RedirectLocal(path, attrmap, vid, layoutId, space, *openOpaque)) {
XrdCl::URL url(std::string("root://localhost//") + std::string(
path ? path : "/dummy/") + std::string("?") + std::string(
Expand Down

0 comments on commit 0547c11

Please sign in to comment.