diff --git a/dotCMS/src/main/java/com/dotcms/rest/api/v1/contentImport/ContentImportForm.java b/dotCMS/src/main/java/com/dotcms/rest/api/v1/contentImport/ContentImportForm.java index 219f68ee63cc..57f397b203cb 100644 --- a/dotCMS/src/main/java/com/dotcms/rest/api/v1/contentImport/ContentImportForm.java +++ b/dotCMS/src/main/java/com/dotcms/rest/api/v1/contentImport/ContentImportForm.java @@ -12,12 +12,12 @@ */ public class ContentImportForm extends Validated { - @NotNull(message = "Content Type is required") + @NotNull(message = "A Content Type id or variable is required") private final String contentType; private final String language; - @NotNull(message = "Workflow Action ID is required") + @NotNull(message = "A Workflow Action id is required") private final String workflowActionId; private final List fields; @@ -33,6 +33,7 @@ public ContentImportForm( this.language = language; this.workflowActionId = workflowActionId; this.fields = fields; + this.checkValid(); } public String getContentType() { diff --git a/dotCMS/src/main/java/com/dotcms/rest/api/v1/contentImport/ContentImportHelper.java b/dotCMS/src/main/java/com/dotcms/rest/api/v1/contentImport/ContentImportHelper.java index aeb46c602b4b..79ef8dd4723a 100644 --- a/dotCMS/src/main/java/com/dotcms/rest/api/v1/contentImport/ContentImportHelper.java +++ b/dotCMS/src/main/java/com/dotcms/rest/api/v1/contentImport/ContentImportHelper.java @@ -68,7 +68,6 @@ public String createJob( final HttpServletRequest request) throws DotDataException, JsonProcessingException { params.checkValid(); - params.getForm().checkValid(); final Map jobParameters = createJobParameters(command, params, user, request); processFileUpload(params, jobParameters, request);