You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@apache.org on 2001/06/27 01:25:16 UTC
cvs commit: jakarta-slide/src/stores/slidestore/reference JDBCContentStore.java
remm 01/06/26 16:25:16
Modified: src/stores/slidestore/reference JDBCContentStore.java
Log:
- Tentative fix for this problem when using the JDBC content store :
java.io.IOException: The system cannot find the path specified
at java.io.Win32FileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1159)
Bug reported by Rajkumar Kothapa <kothapa at intalio.com> (as well as others before)
Patch submitted by Valeriy Podkolzin <vpodkolzin at atg.com>
Revision Changes Path
1.6 +5 -4 jakarta-slide/src/stores/slidestore/reference/JDBCContentStore.java
Index: JDBCContentStore.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/stores/slidestore/reference/JDBCContentStore.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- JDBCContentStore.java 2001/04/17 02:49:31 1.5
+++ JDBCContentStore.java 2001/06/26 23:25:15 1.6
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/stores/slidestore/reference/JDBCContentStore.java,v 1.5 2001/04/17 02:49:31 remm Exp $
- * $Revision: 1.5 $
- * $Date: 2001/04/17 02:49:31 $
+ * $Header: /home/cvs/jakarta-slide/src/stores/slidestore/reference/JDBCContentStore.java,v 1.6 2001/06/26 23:25:15 remm Exp $
+ * $Revision: 1.6 $
+ * $Date: 2001/06/26 23:25:15 $
*
* ====================================================================
*
@@ -89,7 +89,7 @@
* JDBC 2.0 compliant implementation of ContentStore.
*
* @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class JDBCContentStore extends AbstractSimpleService
implements ContentStore {
@@ -579,6 +579,7 @@
// If content length is unspecified, we have to buffer
// to a temp file.
String tempFileName = revisionUri + "-" + revisionNumber;
+ tempFileName = tempFileName.replace('/', '.');
int tempFileNameLength = tempFileName.length();
if (tempFileNameLength > 200)
tempFileName = tempFileName.substring