forked from PelicanPlatform/pelican
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add director min version detection capability
According to issue PelicanPlatform#21, users have encountered issues with stashcp getting confusing error messages from the Director. While this PR doesn't necessarily handle old stashcp clients that don't set user-agent headers when querying the director, it makes things more robust moving forward. Each service that queries the director now sets a User-Agent header of the form "pelican-<service>/<version>", eg "pelican-client/7.0.0". The director checks if the UA string matches the form, and if it doesn't it continues (this is to allow unknonwn UAs to continue working, for example if someone wants to curl the director). If the UA matches the expected form, it will parse both the service and the version and make sure that it believes it can serve a service with that version. For now, I set those minimum versions to 7.0.0 for both the client and the origin.
- Loading branch information
1 parent
af47067
commit 361c354
Showing
6 changed files
with
173 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters