Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32493

AsperaCompleteWork: ignore empty files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2021, 2023.x
    • Fix Version/s: 2021.x, 2023.x
    • Component/s: Aspera Connector

      Description

      A client is asking for a small change to be made to the work method of the AsperaCompleteWork class:

      diff --git a/nuxeo-aspera-core/src/main/java/com/nuxeo/aspera/connector/service/AsperaCompleteWork.java b/nuxeo-aspera-core/src/main/java/com/nuxeo/aspera/connector/service/AsperaCompleteWork.java
      index c6530d7b..1fbba42d 100644
      --- a/nuxeo-aspera-core/src/main/java/com/nuxeo/aspera/connector/service/AsperaCompleteWork.java
      +++ b/nuxeo-aspera-core/src/main/java/com/nuxeo/aspera/connector/service/AsperaCompleteWork.java
      @@ -92,6 +92,10 @@ public class AsperaCompleteWork extends AbstractWork {
                   newTransaction(TRANSACTION_TIMEOUT);
       
                   Object docFile = bmExecute();
      +            if (docFile == null) {
      +                //ignore;
      +                return;
      +            }
       
                   if (!(docFile instanceof DocumentModel)) {
                       throw new NuxeoException(
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hbrown Harlan Brown
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: