checkModuleDescriptor(md);
LOGGER.debug("ModuleDescriptor successfully checked");
// check if user has right to publish at given visibility
if (uak.getPublishVisibilityRight().getId() < md.getVisibility().getId()) {
LOGGER.error("Impossible to publish to visibility: "+md.getVisibility()+" for user: " +uak.getUserName());
throw new UnauthorizedException(uak, "publish to visibility "+md.getVisibility());
}
ModuleDescriptorDao dao = WOJServer.getInstance().getDataService().getModuleDescriptorDao();
ModuleDescriptor dbmd = dao.getModuleDescriptor(md.getOrganisation(), md.getModule(), md.getRevision(), uak.getUserId(), uak.getGroups(), md.getVisibility());
long size = computeModuleSize(zip);