area515 / Photonic3D

Control software for resin 3D printers
http://photonic3d.com
GNU General Public License v3.0
131 stars 115 forks source link

CWS files upload and then fail to populate Printables #297

Closed WGAndrew closed 7 years ago

WGAndrew commented 7 years ago

Attempting to upload a CWS file results in nothing being added to the Printables tab in Photonic. 2016-11-28 15:15:29,724 ERROR o.a.r.j.CreationWorkshopSceneFileProcessor [qtp32195482-14] Unable to open uploaded zip file java.util.zip.ZipException: zip file is empty at java.util.zip.ZipFile.open(Native Method) ~[?:1.8.0_65] at java.util.zip.ZipFile.<init>(ZipFile.java:219) ~[?:1.8.0_65] at java.util.zip.ZipFile.<init>(ZipFile.java:273) ~[?:1.8.0_65] at org.area515.resinprinter.job.CreationWorkshopSceneFileProcessor.zipHasGCode(CreationWorkshopSceneFileProcessor.java:314) [photonic3d.jar:?] at org.area515.resinprinter.job.CreationWorkshopSceneFileProcessor.acceptsFile(CreationWorkshopSceneFileProcessor.java:49) [photonic3d.jar:?]

Present in v1.0.14

Testing files and log file attached

WGAndrew commented 7 years ago

photonic bug.zip

WesGilster commented 7 years ago

This is a bad file(no attached gcode). No print file processor is willing to take responsibility for attempting to print it. Here is the response the browser is getting from the PrintableService when you attempt to upload. I fixed the content type of the return type since it isn't being sent properly, but the response is being ignored anyway.

image

WesGilster commented 7 years ago

Latest version shows error messages coming back from uploads

WesGilster commented 7 years ago

Here's an example: image