After doing the Highlight scan for an application the user tried to upload the zipped results to the portal using --uploadZipFile in CLI however, it resulted in the below failure.
Details
2020-12-24 01:03:18,836 INFO console: Start upload zip result
2020-12-24 01:03:18,836 INFO console: Preparing upload Zip...
2020-12-24 01:03:18,915 INFO console: Preparation stage completed.
2020-12-24 01:03:20,586 INFO highlight: Upload start
2020-12-24 01:03:23,462 ERROR highlight: Incorrect zip file contain subdirectory
2020-12-24 01:03:34,806 ERROR AnalysisPipeline: Upload failed
com.castsoftware.highlight.RTExceptionWithStatus: Failed to upload submission for application result id='XXXXXX' with company [name='XXX',id='XXXX'] and application [name='XXX',id=XXXXX] message: 400 highlight.server.client.campaignApplication.update.NoAnalysis
Workaround or Action Plan
1. This error occurred because the result folder contained directories. The user had zipped a whole Result folder containing the result CSVs while one should ZIP only the content of the Result folder.
However, this command expects only CSV files when you open the zip. Typically the zip file should have the same structure of the ZIP file produced by the local agent (only the result CSVs, no directory).
Re-launch the upload upon making the above suggested changes and the upload will go through successfully.
2. Check if there are any errors No header can be extracted to patch framework files and/orERROR highlight: No header can be extracted to patch framework files(if all the code is not properly encoded) related to encoding which was not readable by Highlight. Please refer CAST HIGHLIGHT - Results Upload - CLI - UTF-8 "\xE7" does not map to Unicode at perl/FileList.pm line xx
Zendesk Ticket Number
# 27271, 36849
Additional Resources
CAST Highlight Troubleshooting Guides
CAST Highlight Product Documentation
Related Articles
CAST HIGHLIGHT - CLI - Error Codes
CAST HIGHLIGHT - CLI - ERROR: Failed to fetch company with id when using --basicAuth
Comments