code: private boolean isUpdatingActionStatusAllowed(final JpaAction action, final JpaActionStatus actionStatus) {
  
          final boolean isIntermediateFeedback = !FINISHED.equals(actionStatus.getStatus())
                  && !Status.ERROR.equals(actionStatus.getStatus());
  
          final boolean isAllowedByRepositoryConfiguration = !repositoryProperties.isRejectActionStatusForClosedAction()
                  && isIntermediateFeedback;
  
          final boolean isAllowedForDownloadOnlyActions = isDownloadOnly(action) && !isIntermediateFeedback;
  
          return action.isActive() || isAllowedByRepositoryConfiguration || isAllowedForDownloadOnlyActions;
      }
docs: ActionStatus updates are allowed mainly if the action is active. If the
  action is not active we accept further status updates if permitted so
  by repository configuration. In this case, only the values: Status.ERROR
  and Status.FINISHED are allowed. In the case of a DOWNLOAD_ONLY action,
  we accept status updates only once.