Skip to content

Commit

Permalink
Cleanup manually
Browse files Browse the repository at this point in the history
  • Loading branch information
rubendel committed Nov 10, 2017
1 parent fad5180 commit 4b95e2c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions BimServer/src/org/bimserver/servlets/BulkUploadServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,20 @@ public void service(HttpServletRequest request, HttpServletResponse response) th

SProject project = getOrCreatePath(service, mainProject, mainProject, path);
SDeserializerPluginConfiguration deserializer = service.getSuggestedDeserializerForExtension(extension, project.getOid());

service.checkin(project.getOid(), comment, deserializer.getOid(), -1L, filename, ifcFile, false, true);

long topicId = -1;
try {
topicId = service.checkin(project.getOid(), comment, deserializer.getOid(), -1L, filename, ifcFile, false, true);
} finally {
if (topicId != -1) {
service.cleanupLongAction(topicId);
}
}
}
} else {
if (!nextEntry.isDirectory()) {
LOGGER.info("Unknown fileextenstion " + fullfilename);
}
} else {
LOGGER.info("Unknown fileextenstion " + fullfilename);
}
nextEntry = zipInputStream.getNextEntry();
}
Expand Down

0 comments on commit 4b95e2c

Please sign in to comment.