if (mode == DAV_MODE_WRITE_SEEKABLE) {
throw new DAVException("Resource body writes cannot use ranges [at this time].", HttpServletResponse.SC_NOT_IMPLEMENTED, 0);
}
String path = resource.getResourceURI().getPath();
FSRoot root = resource.getRoot();
FSFS fsfs = resource.getFSFS();
FSTransactionInfo txn = resource.getTxnInfo();
FSCommitter committer = getCommitter(fsfs, root, txn, resource.getLockTokens(), resource.getUserName());
SVNNodeKind kind = DAVServletUtil.checkPath(resource.getRoot(), resource.getResourceURI().getPath());
if (kind == SVNNodeKind.NONE) {
try {
committer.makeFile(path);
} catch (SVNException svne) {
throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
"Could not create file within the repository.", null);
}
}
if (resource.isAutoCheckedOut() && myRequest.getContentType() != null) {
SVNProperties props = null;
try {
props = fsfs.getProperties(root.getRevisionNode(path));
} catch (SVNException svne) {
throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
"Error fetching mime-type property.", null);
}