Skip to content

Commit

Permalink
Required changes to make production vostools work
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Damian authored and Adrian Damian committed Feb 13, 2024
1 parent c5a468a commit adbc699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ private Subject getRootOwner(MultiValuedProperties mvp, IdentityManager im) {

@Override
public Views getViews() {
throw new UnsupportedOperationException();
return new Views();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,9 @@ private List<Protocol> handleDataNode(DataNode node, String filename, Transfer t
Transfer artifactTrans = new Transfer(node.storageID, trans.getDirection());
for (Protocol p : trans.getProtocols()) {
log.debug("requested protocol: " + p);
URI secM = p.getSecurityMethod();
if (secM == null || secM.equals(Standards.SECURITY_METHOD_ANON)) {
artifactTrans.getProtocols().add(p);
log.debug("allow protocol: " + p);
}
p.setSecurityMethod(Standards.SECURITY_METHOD_ANON);
artifactTrans.getProtocols().add(p);
log.debug("allow only anon method for " + p);
}

try {
Expand Down

0 comments on commit adbc699

Please sign in to comment.