Skip to content

Commit

Permalink
Added new Mime-Type external/redirect
Browse files Browse the repository at this point in the history
Added new Mime-Type external/redirect
  • Loading branch information
SaipradeepR authored Jul 11, 2024
1 parent 4e4af6c commit c8c5a3f
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,15 @@ private boolean isAllRequiredFieldsAvailable(Node node) {
else
isValid = true;
break;
case "external/redirect":
if (StringUtils.isBlank(
(String) node.getMetadata().get(ContentWorkflowPipelineParams.artifactUrl.name())))
throw new ClientException(ContentErrorCodes.INVALID_ARTIFACT.name(),
ContentErrorMessageConstants.INVALID_URL,
" | [Invalid or 'null' operation.] Publish Operation Failed");
else
isValid = true;
break;

case "application/pdf":
if (StringUtils.isNotBlank(
Expand Down Expand Up @@ -537,4 +546,4 @@ public Boolean exceptionChecks(String mimeType, File file) {
}
return false;
}
}
}

0 comments on commit c8c5a3f

Please sign in to comment.