"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/webdav/resource/MailResource.java" between
OpenKM-document-management-system-6.3.10.tar.gz and OpenKM-document-management-system-6.3.11.tar.gz

About: OpenKM (Knowledge Management) is a document management system that allows easy management of documents, users, roles and finding your enterprise documents and records. Community version (source code).

MailResource.java  (OpenKM-document-management-system-6.3.10):MailResource.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 34 skipping to change at line 34
import com.bradmcevoy.http.*; import com.bradmcevoy.http.*;
import com.bradmcevoy.http.Request.Method; import com.bradmcevoy.http.Request.Method;
import com.bradmcevoy.http.exceptions.BadRequestException; import com.bradmcevoy.http.exceptions.BadRequestException;
import com.bradmcevoy.http.exceptions.ConflictException; import com.bradmcevoy.http.exceptions.ConflictException;
import com.bradmcevoy.http.exceptions.NotAuthorizedException; import com.bradmcevoy.http.exceptions.NotAuthorizedException;
import com.bradmcevoy.http.webdav.PropPatchHandler.Fields; import com.bradmcevoy.http.webdav.PropPatchHandler.Fields;
import com.openkm.api.OKMMail; import com.openkm.api.OKMMail;
import com.openkm.bean.Mail; import com.openkm.bean.Mail;
import com.openkm.core.AccessDeniedException; import com.openkm.core.AccessDeniedException;
import com.openkm.core.DatabaseException; import com.openkm.core.DatabaseException;
import com.openkm.core.LockException;
import com.openkm.core.PathNotFoundException; import com.openkm.core.PathNotFoundException;
import com.openkm.core.RepositoryException; import com.openkm.core.RepositoryException;
import com.openkm.util.MailUtils; import com.openkm.util.MailUtils;
import com.openkm.util.PathUtils; import com.openkm.util.PathUtils;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import javax.mail.MessagingException; import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMessage;
skipping to change at line 151 skipping to change at line 152
throw new RuntimeException("Failed to update content: " + mail.getPath()); throw new RuntimeException("Failed to update content: " + mail.getPath());
} catch (RepositoryException e) { } catch (RepositoryException e) {
log.error("RepositoryException: " + e.getMessage(), e); log.error("RepositoryException: " + e.getMessage(), e);
throw new RuntimeException("Failed to update content: " + mail.getPath()); throw new RuntimeException("Failed to update content: " + mail.getPath());
} catch (DatabaseException e) { } catch (DatabaseException e) {
log.error("DatabaseException: " + e.getMessage(), e); log.error("DatabaseException: " + e.getMessage(), e);
throw new RuntimeException("Failed to update content: " + mail.getPath()); throw new RuntimeException("Failed to update content: " + mail.getPath());
} catch (MessagingException e) { } catch (MessagingException e) {
log.error("MessagingException: " + e.getMessage(), e); log.error("MessagingException: " + e.getMessage(), e);
throw new RuntimeException("Failed to update content: " + mail.getPath()); throw new RuntimeException("Failed to update content: " + mail.getPath());
} } catch (LockException e) {
log.error("LockException: " + e.getMessage(), e);
throw new RuntimeException("Failed to update content: " + mail.getPa
th());
}
} }
@Override @Override
public void delete() throws NotAuthorizedException, ConflictException, Ba dRequestException { public void delete() throws NotAuthorizedException, ConflictException, Ba dRequestException {
log.debug("delete()"); log.debug("delete()");
try { try {
String fixedMailPath = ResourceUtils.fixRepositoryPath(ma il.getPath()); String fixedMailPath = ResourceUtils.fixRepositoryPath(ma il.getPath());
OKMMail.getInstance().delete(null, fixedMailPath); OKMMail.getInstance().delete(null, fixedMailPath);
} catch (Exception e) { } catch (Exception e) {
 End of changes. 2 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)