Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-2348

Missing explicit error message when enriching/publishing a CBA

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Medium Medium
    • Kohn Release
    • Frankfurt Release
    • cds

      No error is raised when you try to enrich a CBA when missing the expected model-types.

      We should at least get an error message into CDS logs.

      How to reproduce :

      1. Emptied your MODEL_TYPE table
      2. Enrich the CBA attached to this issue
          -> you'll find out that your enriched archive is invalid because you're missing the model-type "component-resource-resolution"
      3. you'll still be able to download the invalid enriched CBA
      4. try to publish the enriched CBA, you should get the error as follows :

       

      {"code":503,"status":"IO_FILE_INTERRUPT","timestamp":"2020-04-28T18:01:03.323Z","message":"Cause: Error in Upload CBA: Archive is not a ZIP archive \n Action : Please reload your file and make sure it is in the right format.","debugMessage":"java.util.zip.ZipException: Archive is not a ZIP archive\n\tat org.apache.commons.compress.archivers.zip.ZipFile.positionAtEndOfCentralDirectoryRecord(ZipFile.java:1141)\n\tat org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:1021)\n\tat org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:702)\n\tat org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:371)\n\tat org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:256)\n\tat org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:225)\n\tat org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:208)\n\tat org.onap.ccsdk.cds.controllerblueprints.core.utils.BluePrintArchiveUtils$Companion.deCompress(BluePrintArchiveUtils.kt:175)\n\tat org.onap.ccsdk.cds.controllerblueprints.core.utils.BluePrintArchiveUtils$Companion.deCompress$default(BluePrintArchiveUtils.kt:172)\n\tat org.onap.ccsdk.cds.controllerblueprints.core.FileExtensionFunctionsKt.deCompress(FileExtensionFunctions.kt:67)\n\tat org.onap.ccsdk.cds.controllerblueprints.core.FileExtensionFunctionsKt.deCompress(FileExtensionFunctions.kt:60)\n\tat org.onap.ccsdk.cds.blueprintsprocessor.db.primary.service.BlueprintCatalogServiceImpl.saveToDatabase$suspendImpl(BlueprintCatalogServiceImpl.kt:63)\n\tat org.onap.ccsdk.cds.blueprintsprocessor.db.primary.service.BlueprintCatalogServiceImpl.saveToDatabase(BlueprintCatalogServiceImpl.kt)\n\tat org.onap.ccsdk.cds.blueprintsprocessor.designer.api.handler.BluePrintModelHandler.upload$suspendImpl(BluePrintModelHandler.kt:476)\n\tat org.onap.ccsdk.cds.blueprintsprocessor.designer.api.handler.BluePrintModelHandler$upload$1.invokeSuspend(BluePrintModelHandler.kt)\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\n\tat kotlinx.coroutines.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:313)\n\tat kotlinx.coroutines.DispatchedCoroutine.afterResume(Builders.common.kt:254)\n\tat kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:113)\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)\n\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)\n\tat kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:561)\n\tat kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:727)\n\tat kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:667)\n\tat kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:655)\n","logLevel":"ERROR","subErrors":[{"domainId":"org.onap.ccsdk.cds.blueprintsprocessor.designer.api","message":"Error in Upload CBA: Archive is not a ZIP archive","cause":"ZipException: Archive is not a ZIP archive"},{"domainId":"org.onap.ccsdk.cds.blueprintsprocessor.designer.api","message":"Error in Publishing CBA.","cause":"Wrong CBA provided, please verify and enrich your CBA."}]}%
      

       

       

        1. cba.zip
          2 kB
        2. doEnhancement.png
          doEnhancement.png
          100 kB

            jfontaine49 jfontaine49
            jfontaine49 jfontaine49
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: