Skip to content
New issue

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

[HTTP] XrdCmsClient::Locate isn't handed a correct XrdOucEnv *EnvInfo in case of HTTP #1233

Closed
panik4 opened this issue Jul 1, 2020 · 4 comments

Comments

@panik4
Copy link
Contributor

panik4 commented Jul 1, 2020

Hi,

to give some context, I am currently adding redirect to local filesystem functionality to XRootd-HTTP.

The current plug-in for redirectToLocal XrdCmsRedirLocal is working for the root-protocol, but not for http.

This is due to the fact that EnvInfo->secEnv()->addrInfo; is accessed in the Locate method, to make the necessary checks to see, if a redirect to local is allowed. Source

However, when using HTTP to access the redirector, the addrInfo is null.

Is this by design? Was it simply not required?
Is there a possibility to get the addrInfo added for HTTP?

Cheers,
Paul

@abh3
Copy link
Member

abh3 commented Jul 1, 2020 via email

@abh3
Copy link
Member

abh3 commented Jul 2, 2020

Indeed, this is fixed in R5. A back port is relatively messy. OK, if you get that starting in R5?

@panik4
Copy link
Contributor Author

panik4 commented Jul 2, 2020

I think we will be fine with R5.
I will get back to you soon with a pull-request.

So far, the changes seem to be minor.

Thanks,
Paul

@panik4
Copy link
Contributor Author

panik4 commented Jul 3, 2020

I have created the pull-request, closing this as the underlying bug was fixed for R5

@panik4 panik4 closed this as completed Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants