Uploaded image for project: 'mod-data-import'
  1. mod-data-import
  2. MODDATAIMP-397

Uploaded EDIFACT file with no file extension errors

    XMLWordPrintable

    Details

    • Template:
    • Story Points:
      0
    • Development Team:
      Folijet

      Description

      Overview: EDIFACT file without a file extension errors during import. A MARC file without a file extension does not error during import.

      Current workaround: add file extension .edi to the file before importing

      Steps to Reproduce:

      1. Log into Folijet Rancher environment
      2. Go to Data Import
      3. Import each of the attached files
        • First the MARC file with .mrc file extension, using the the Default - Create instance and SRS MARC Bib job profile
        • Second the MARC file without a file extension, using the Default - Create instance and SRS MARC Bib job profile
        • Third the EDI file with a .edi file extension, using the Load Harrassowitz Serial invoices NO adjustments job profile
        • Fourth the EDI file without a file extension, using the Load Harrassowitz Serial invoices NO adjustments job profile

      Expected Results:

      • Import 1: Only the MARC job profiles show on the choose job screen, and the file imports successfully
      • Import 2: All the MARC and EDIFACT job profiles show on the choose job screen, and the file imports successfully
      • Import 3: Only the EDIFACT job profiles show on the choose job screen, and the file imports successfully
      • Import 4: All the MARC and EDIFACT job profiles show on the choose job screen, and the file imports successfully

      Actual Results:

      • Imports 1-3 are successfult
      • Import 4 (EDI file without a file extension) fails

      Additional Information: See attached files. See also UIDATIMP-118 for the file extension behavior

      Log info for no file extension: (for EDIFACT files; MARC files are OK)
      SEVERE: Unhandled exception
      java.lang.UnsupportedOperationException: Unsupported file format
      at org.folio.service.processing.reader.SourceReaderBuilder.lambda$0(SourceReaderBuilder.java:43)
      at java.base/java.util.Optional.orElseThrow(Optional.java:408)
      at org.folio.service.processing.reader.SourceReaderBuilder.build(SourceReaderBuilder.java:43)
      at org.folio.service.processing.ParallelFileChunkingProcessor.processFile(ParallelFileChunkingProcessor.java:139)
      at org.folio.service.processing.ParallelFileChunkingProcessor.lambda$5(ParallelFileChunkingProcessor.java:105)
      at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:96)
      at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:59)
      at io.vertx.core.impl.EventLoopContext.lambda$runOnContext$0(EventLoopContext.java:40)
      at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
      at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
      at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:497)
      at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
      at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
      at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      at java.base/java.lang.Thread.run(Thread.java:834)

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                abreaux Ann-Marie Breaux
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases