Skip to content

Commit

Permalink
Merge pull request #7436 from alrossi/fix/9.2/frnt-nmsp-policy-undefi…
Browse files Browse the repository at this point in the history
…ned-bug

dcache-frontend:  check for defined arguments with namespace qos
  • Loading branch information
svemeyer authored Nov 29, 2023
2 parents 83beb88 + 1b10c15 commit fc02003
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,12 @@ public Response cmrResources(
pnfsHandler.renameEntry(path.toString(), target.toString(), true);
break;
case "qos":
String targetQos = reqPayload.getString("target");
String qosPolicy = reqPayload.getString("policy");
Integer qosState = (Integer)reqPayload.get("state");
String targetQos =
reqPayload.has("target") ? reqPayload.getString("target") : null;
String qosPolicy =
reqPayload.has("policy") ? reqPayload.getString("policy") : null;
Integer qosState =
reqPayload.has("state") ? (Integer) reqPayload.get("state") : null;
Subject subject = RequestUser.getSubject();
if (!useQosService) {
new QoSTransitionEngine(poolmanager,
Expand Down

0 comments on commit fc02003

Please sign in to comment.