Skip to content

Commit

Permalink
vault: improve server header info for files endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pdowler committed Mar 28, 2024
1 parent 419ef83 commit 15b86dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vault/src/main/java/org/opencadc/vault/files/HeadAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
import ca.nrc.cadc.net.ResourceNotFoundException;
import ca.nrc.cadc.rest.InlineContentHandler;
import ca.nrc.cadc.rest.RestAction;
import ca.nrc.cadc.rest.Version;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Date;
Expand Down Expand Up @@ -107,6 +108,13 @@ protected final InlineContentHandler getInlineContentHandler() {
return null;
}

@Override
protected String getServerImpl() {
// no null version checking because fail to build correctly can't get past basic testing
Version v = getVersionFromResource();
return "storage-inventory/vault-" + v.getMajorMinor();
}

@Override
public void initAction() throws Exception {
String jndiNodePersistence = super.appName + "-" + NodePersistence.class.getName();
Expand Down

0 comments on commit 15b86dd

Please sign in to comment.