Red Hat Bugzilla – Bug 830896
candlepin prints a non-helpful message to catalina.out when manifest is corrupt
Last modified: 2015-05-14 11:18:17 EDT
Description of problem:
If you attempt to upload something that's not a zip file to candlepin, you'll get this error:
Jun 11 10:18:32 [http-8443-2] INFO org.candlepin.sync.Importer - Extracting archive to: /var/cache/candlepin/sync/import5147580043996834060237220625044442
Jun 11 10:18:32 [http-8443-2] ERROR org.candlepin.sync.Importer - Exception caught importing archive
java.io.FileNotFoundException: /var/cache/candlepin/sync/import5147580043996834060237220625044442/consumer_export.zip (No such file or directory)
at java.io.FileInputStream.open(Native Method)
It would be better if candlepin verified that the uploaded file was in fact a zip file, and then printed an error if the file was not parsable for whatever reason. Throwing a FileNotFoundException can lead a sysadmin down the wrong path, checking file permissions and such.
This is available in release 0.7.21 and later. If you are still having issues, pelase feel free to reopen this bug.