jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1185086 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfigurationParser.java
Date Mon, 17 Oct 2011 10:14:32 GMT
Author: thomasm
Date: Mon Oct 17 10:14:32 2011
New Revision: 1185086

URL: http://svn.apache.org/viewvc?rev=1185086&view=rev
Log:
JCR-3116 Cluster Node ID should be trimmed

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfigurationParser.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfigurationParser.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfigurationParser.java?rev=1185086&r1=1185085&r2=1185086&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfigurationParser.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfigurationParser.java
Mon Oct 17 10:14:32 2011
@@ -830,7 +830,7 @@ public class RepositoryConfigurationPars
                     File file = new File(home, CLUSTER_NODE_ID_FILE);
                     try {
                         if (file.exists() && file.canRead()) {
-                            id = FileUtils.readFileToString(file);
+                            id = FileUtils.readFileToString(file).trim();
                         } else {
                             id = UUID.randomUUID().toString();
                             FileUtils.writeStringToFile(file, id);



Mime
View raw message