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

Include a Server HTTP response header with details of StoRM-WebDAV #78

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

paulmillar
Copy link
Contributor

Motivation:

The Server HTTP response header allows the server software to provide the client with information about itself in a somewhat standardised fashion.

We would like the client to know the version of the server, along with some identifier that describes a specific instance of that server. The latter is to allow the client to identify whether the server has been restarted.

Modification:

Include an additional Servlet Filter that includes the Server HTTP response header. The header value includes the StoRM-WebDAV version and an instance identifier.

The StoRM version is taken from the Implementation-Version attribute from the StoRM-WebDAV jar's MANIFEST file, which (in turn) is derived from the version in maven pom.xml file.

The instance identifier is calculated based on the start time of StoRM WebDAV (in milliseconds) truncated to yield 24-bits of entropy.

Result:

StoRM WebDAV HTTP responses now have a Server header that describes the StoRM-WebDAV version and provides a simple instance ID.

Motivation:

The `Server` HTTP response header allows the server software to provide
the client with information about itself in a somewhat standardised
fashion.

We would like the client to know the version of the server, along with
some identifier that describes a specific instance of that server.  The
latter is to allow the client to identify whether the server has been
restarted.

Modification:

Include an additional Servlet Filter that includes the `Server` HTTP
response header.  The header value includes the StoRM-WebDAV version and
an instance identifier.

The StoRM version is taken from the `Implementation-Version` attribute
from the StoRM-WebDAV jar's MANIFEST file, which (in turn) is derived
from the version in maven pom.xml file.

The instance identifier is calculated based on the start time of StoRM
WebDAV (in milliseconds) truncated to yield 24-bits of entropy.

Result:

StoRM WebDAV HTTP responses now have a `Server` header that describes
the StoRM-WebDAV version and provides a simple instance ID.
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

Successfully merging this pull request may close these issues.

1 participant