jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r414175 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/util/FileSystemBLOBStore.java
Date Wed, 14 Jun 2006 10:21:55 GMT
Author: stefan
Date: Wed Jun 14 03:21:55 2006
New Revision: 414175

URL: http://svn.apache.org/viewvc?rev=414175&view=rev
Log:
JCR-457: Path returned by FileSystemBLOBStore.createId() is not absolute

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/util/FileSystemBLOBStore.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/util/FileSystemBLOBStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/util/FileSystemBLOBStore.java?rev=414175&r1=414174&r2=414175&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/util/FileSystemBLOBStore.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/util/FileSystemBLOBStore.java
Wed Jun 14 03:21:55 2006
@@ -50,8 +50,9 @@
      * {@inheritDoc}
      */
     public String createId(PropertyId id, int index) {
-        // the blobId is a file system path
+        // the blobId is an absolute file system path
         StringBuffer sb = new StringBuffer();
+        sb.append(FileSystem.SEPARATOR_CHAR);
         char[] chars = id.getParentId().getUUID().toString().toCharArray();
         int cnt = 0;
         for (int i = 0; i < chars.length; i++) {
@@ -85,7 +86,7 @@
      */
     public void put(String blobId, InputStream in, long size) throws Exception {
         OutputStream out = null;
-        // the blobId is a file system path
+        // the blobId is an absolute file system path
         FileSystemResource internalBlobFile = new FileSystemResource(fs, blobId);
         internalBlobFile.makeParentDirs();
         try {
@@ -106,6 +107,7 @@
      * {@inheritDoc}
      */
     public boolean remove(String blobId) throws Exception {
+        // the blobId is an absolute file system path
         FileSystemResource res = new FileSystemResource(fs, blobId);
         if (!res.exists()) {
             return false;
@@ -121,6 +123,7 @@
      */
     public FileSystemResource getResource(String blobId)
             throws Exception {
+        // the blobId is an absolute file system path
         return new FileSystemResource(fs, blobId);
     }
 }



Mime
View raw message