Re: Initial work for the specification of a remote API

2015-02-11 Thread Francesco Mari
In an offline meeting today, it was noted that the specified handling of binaries should be revised. Currently, any user is able to create binary objects, even if those objects are never assigned as a value to binary properties. This may open the (unwanted) possibility for the repository to be

baseline plugin (Re: [VOTE] Release Apache Jackrabbit Oak 1.1.6)

2015-02-11 Thread Davide Giannella
On 11/02/2015 12:19, Robert Munteanu wrote: We could probably raise an enhancement request which allows restricting the versions considered, such as 'no qualifiers', or a regexp-based validation or ... Robert We could enhance the `comparisonVersion` to actually be a regex. Which in our

Re: Copy a node from oak run console?

2015-02-11 Thread Andrei Dulvac
Hi Chetan, Just how I thought. But I hoped there would be a way to get a JCR Session. What I was trying to do is copy a node (NodeState) with all its properties and children. Using the oak API, I had to roll my own and recursively call copy. Not a biggie, but it's odd that doesn't exist on the

Re: svn commit: r1658983 - in /jackrabbit/oak/trunk: oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndex.java oak-solr-core/src/main/java/org/apache/jackrabbit/

2015-02-11 Thread Chetan Mehrotra
Hi Tommaso, On Wed, Feb 11, 2015 at 8:42 PM, tomm...@apache.org wrote: if (filter.isAccessible(retrievedDoc.get(FieldNames.PATH))) { +suggestedWords.add({term= + suggestion.key + ,weight= + suggestion.value + }); +

Re: Copy a node from oak run console?

2015-02-11 Thread Chetan Mehrotra
On Wed, Feb 11, 2015 at 8:59 PM, Andrei Dulvac andrei.dul...@gmail.com wrote: Not a biggie, but it's odd that doesn't exist on the NodeBuilder or something. NodeBuilder API was meant to model the Tree access and has just the required set of operations to enable our usecases and was not meant to

Re: svn commit: r1659155 - in /jackrabbit/oak/trunk: oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/ oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/blob/ds/

2015-02-11 Thread Chetan Mehrotra
Hi Amit, On Thu, Feb 12, 2015 at 12:13 PM, am...@apache.org wrote: -FileUtils.deleteDirectory(new File(DataStoreUtils.PATH)); +FileUtils.deleteDirectory(new File(DataStoreUtils.getHomeDir())); You can also possibly use the TemporaryFolder rule [1] which can take care of

Re: svn commit: r1658618 - in /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins: document/MongoBlobGCTest.java segment/SegmentDataStoreBlobGCTest.java

2015-02-11 Thread Amit Jain
Hi Julian, I am not able to create a reproducible setup, I'll ping you to see what the trouble is. It might be some timing issue which needs to be addressed. Thanks Amit On Tue, Feb 10, 2015 at 9:48 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2015-02-10 06:15, am...@apache.org wrote:

Re: svn commit: r1658618 - in /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins: document/MongoBlobGCTest.java segment/SegmentDataStoreBlobGCTest.java

2015-02-11 Thread Julian Reschke
On 2015-02-11 09:22, Amit Jain wrote: Hi Julian, I am not able to create a reproducible setup, I'll ping you to see what the trouble is. It might be some timing issue which needs to be addressed. Thanks Amit I'm getting:

Copy a node from oak run console?

2015-02-11 Thread Andrei Dulvac
Hi devs, I'm curious of the easiest way to copy a jcr node using the oak run groovy console. I know that's easily achievable from the workspace by using the path and using the jcr Session: session.getWorkspace().copy(/path/src, /path/dst/); But from the oak run groovy console, all I have to

Re: svn commit: r1658618 - in /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins: document/MongoBlobGCTest.java segment/SegmentDataStoreBlobGCTest.java

2015-02-11 Thread Julian Reschke
On 2015-02-11 09:22, Amit Jain wrote: Hi Julian, I am not able to create a reproducible setup, I'll ping you to see what the trouble is. It might be some timing issue which needs to be addressed. Thanks Amit I'm getting:

Re: Copy a node from oak run console?

2015-02-11 Thread Chetan Mehrotra
oak-run console is only meant to initialize a Oak ContentSession (which differs from a JCR Session!) and does not initializes a full feldged JCR session. So you cannot perform operations via JCR API. The console is mostly meant to perform low level debugging and manipulation of data. What are you

Re: [VOTE] Release Apache Jackrabbit Oak 1.1.6

2015-02-11 Thread Robert Munteanu
On Fri, Feb 6, 2015 at 10:52 AM, Michael Dürig mdue...@apache.org wrote: On 4.2.15 10:39 , Robert Munteanu wrote: On Wed, Feb 4, 2015 at 11:37 PM, Michael Dürig mdue...@apache.org wrote: This is from outside out corporate network so referencing an internal release does not work. However