jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1508479 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
Date Tue, 30 Jul 2013 14:58:50 GMT
Author: mduerig
Date: Tue Jul 30 14:58:50 2013
New Revision: 1508479

URL: http://svn.apache.org/r1508479
Log:
OAK-803: Backwards compatibility of long-lived sessions
OAK-935: Implement JackrabbitRepository
- throw RepositoryException on duplicate occurrence of the refresh-interval attribute name

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java?rev=1508479&r1=1508478&r2=1508479&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
Tue Jul 30 14:58:50 2013
@@ -196,6 +196,10 @@ public class RepositoryImpl implements J
             Long refreshInterval = getRefreshInterval(credentials);
             if (refreshInterval == null) {
                 refreshInterval = getLong(attributes, REFRESH_INTERVAL);
+            } else {
+                if (attributes.containsKey(REFRESH_INTERVAL)) {
+                    throw new RepositoryException("Duplicate attribute '" + REFRESH_INTERVAL
+ "'.");
+                }
             }
             if (refreshInterval == null) {
                 refreshInterval = DEFAULT_REFRESH_INTERVAL;



Mime
View raw message