Skip to content

Conversation

Ankurk99
Copy link

@Ankurk99 Ankurk99 commented May 7, 2024

The current logic only checks the region and returns if it's empty; however, we are not validating the regionEndpoint parameter. Therefore, if the user provides only the regionEndpoint without any region, this will not be evaluated.

With the current logic we only verifies the region and return if it's
empty; we were not validating the regionEndpoint parameter.

Signed-off-by: Ankur Kothiwal <ankur.kothiwal@cern.com>
@milosgajdos
Copy link
Member

Can you point me to some docs that say the region endpoint does have a preference over setting just the region.

I've hacked up a quick test and it seems to be the case, but it'd be great to point users in some direction in case this gets brought up in the future

@Ankurk99
Copy link
Author

Ankurk99 commented May 8, 2024

I couldn't find the doc saying that the region endpoint is preferred over setting the region, but if we see here, it mentions that we have to specify an endpoint even if region is applied. This I believe is due to the logic that we check the regionName parameter before the regionEndpoint value.
Am I missing anything here?

@milosgajdos milosgajdos requested a review from corhere May 8, 2024 16:26
@milosgajdos milosgajdos requested a review from squizzi May 20, 2024 14:44
@milosgajdos milosgajdos requested review from Jamstah and thaJeztah May 27, 2024 20:57
@milosgajdos
Copy link
Member

@milosgajdos milosgajdos requested a review from wy65701436 July 6, 2024 19:42
@milosgajdos milosgajdos merged commit 2526198 into distribution:main Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants