Re: garbage collection with azure blob store

2021-11-19 Thread Marco Piovesana
the segment node store does. Did I misunderstood the meaning of that section? Marco. On Fri, Nov 19, 2021 at 10:47 AM Marcel Reutegger wrote: > Hi, > > On 18.11.21, 11:18, "Marco Piovesana" wrote: > > the documentation states that the blob garbage collection is not

garbage collection with azure blob store

2021-11-18 Thread Marco Piovesana
Hi all, the documentation states that the blob garbage collection is not applicable when using a document node store with an azure blob store, while it is applicable when using a segment node store with an azure blob store. So what happens to the deleted binaries with the document+azure

Re: trunk compile fails

2021-10-29 Thread Marco Piovesana
it makes sense for the > segment teams to take a look. > > Kind regards > Angela > ________ > From: Marco Piovesana > Sent: Thursday, October 28, 2021 5:51 PM > To: oak-dev@jackrabbit.apache.org > Subject: trunk compile fails > > Hi all, > I cl

trunk compile fails

2021-10-28 Thread Marco Piovesana
Hi all, I cloned the Oak repo today (28th of october) and, if I run the build command (*mvn clean install*), I have the following failing test: *PersistentDiskCacheTest.cleanupTest:126 Segment(s) not cleaned up in cache expected:<0> but was:<2>* if I run again the build it will eventually

Re: node versioning and branching documentation

2021-03-17 Thread Marco Piovesana
thanks Julian, didn't know it was implementation-specific and I was looking in the main doc. Marco. On Wed, Mar 17, 2021 at 1:46 PM Julian Reschke wrote: > Am 17.03.2021 um 12:46 schrieb Marco Piovesana: > > Hi all, > > I'm looking for the details of how the versioning and

node versioning and branching documentation

2021-03-17 Thread Marco Piovesana
Hi all, I'm looking for the details of how the versioning and branching works, how version names are generated (e.g. "1.1", "1.2.1") etc.. I remember I saw it somewhere but I can't find it anymore. Marco.

Re: changelog

2020-10-23 Thread Marco Piovesana
here's a real lack of code showing how to do > GC without using the default osgi configuration. > > On Fri, 23 Oct 2020 at 19:08, Marco Piovesana > wrote: > > > > We use Oak alone so we handle the garbage collection, we used a specific > > contractor for the *

Re: changelog

2020-10-23 Thread Marco Piovesana
10:22 schrieb Marco Piovesana: > > Right, didn't think of jira for that, thanks Julian. Would that work also > > for breaking changes? Do you guys have a convention for the jira issues > to > > highlight it? > > I'm updating from the 1.14 to the latest stable 1.32, and th

Re: changelog

2020-10-23 Thread Marco Piovesana
at 9:37 AM Julian Reschke wrote: > Am 23.10.2020 um 09:09 schrieb Marco Piovesana: > > Hi all, > > there's a way to see all features, breaking changes, and fug fixings > from a > > starting version to a destination version? I can see the release notes > for > >

changelog

2020-10-23 Thread Marco Piovesana
Hi all, there's a way to see all features, breaking changes, and fug fixings from a starting version to a destination version? I can see the release notes for the latest releases, but I find it hard to find the ones in between. Marco.

corrupted data recovery

2020-04-15 Thread Marco Piovesana
Hi all, I have an installation of oak with a SegmentNodeStore, something bad happened (still don't know what) and I think the garbage collector deleted a series of used binaries. In the log file I first have a sequence of this: [org.apache.jackrabbit.oak.segment.file.FileStoreUtil] (default

Re: blob garbage collector does not delete blobs

2020-04-15 Thread Marco Piovesana
r that to be effective it should estimate enough garbage to proceed. > So, that is why the blob gc test first creates enough garbage. > > Thanks > Amit > > On Wed, Apr 15, 2020 at 2:32 PM Marco Piovesana > wrote: > > > Hi Amit, > > reading the test I saw that t

Re: blob garbage collector does not delete blobs

2020-04-15 Thread Marco Piovesana
/blob/trunk/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java#L218-L221 > > On Wed, Apr 15, 2020 at 12:06 AM Marco Piovesana > wrote: > > > Hi all, > > I'm running some tests with the MarkSweepGarbageCollector to run a > garbage &g

blob garbage collector does not delete blobs

2020-04-14 Thread Marco Piovesana
Hi all, I'm running some tests with the MarkSweepGarbageCollector to run a garbage collection on a local file store. I'm running it with the maxLastModifiedInterval set to 0, so I expected the garbage collector to remove the binary right after I delete the file. What happens, however, is that the

garbage collection implementation

2020-03-28 Thread Marco Piovesana
Hi all, I was looking at the oak garbage collection implementation, and I was wondering why I can get a *Runnable* to execute the segment node store garbage collection (*FileStore.getGCRunner()*), but I don't have the same thing for the blob node store, where I need to create my instance of

Re: custom authentication module

2020-03-11 Thread Marco Piovesana
lease let me know. > > Kind regards > Angela > ------ > *From:* Marco Piovesana > *Sent:* Tuesday, March 10, 2020 9:40 AM > *To:* Angela Schreiber > *Cc:* oak-dev@jackrabbit.apache.org > *Subject:* Re: custom authentication module >

Re: add ACE containing restrictions throws exception

2020-03-10 Thread Marco Piovesana
> the rep:restriction child node def should also have OPV IGNORED and then > it should not raise the exception. > > Kind regards > Angela > -- > *From:* Marco Piovesana > *Sent:* Tuesday, March 10, 2020 9:34 AM > *To:* oak-dev@jackrabbit.apac

Re: custom authentication module

2020-03-10 Thread Marco Piovesana
gt; > Kind regards > Angela > ------ > *From:* Marco Piovesana > *Sent:* Monday, March 9, 2020 3:23 PM > *To:* oak-dev@jackrabbit.apache.org > *Subject:* Re: custom authentication module > > Hi Angela, > I defined a custom configuration as you s

Re: add ACE containing restrictions throws exception

2020-03-10 Thread Marco Piovesana
le. > So, you first need to call checkout in order to modify it. > > Kind regards > Angela > ________ > From: Marco Piovesana > Sent: Thursday, March 5, 2020 12:38 PM > To: oak-dev@jackrabbit.apache.org > Subject: add ACE containing restrictions thro

Re: custom authentication module

2020-03-09 Thread Marco Piovesana
other resources (e.g. jms) and this solution overrides that configuration. How can define the login modules for a specific application (in my case "jackrabbit.oak") without having to redefine the whole Configuration? Marco. On Thu, Feb 27, 2020 at 1:49 PM Marco Piovesana wrote: >

add ACE containing restrictions throws exception

2020-03-05 Thread Marco Piovesana
Hi all, I'm trying to add an ACE with a custom restriction to a versioned node, but when I save the session I get the error: *OakVersion0001: Cannot add property jcr:primaryType on checked in node* If I add the same ACE without the restriction I don't get any error. Is it a bug or there is

compare properties of two nodes in sql2 query

2020-03-04 Thread Marco Piovesana
Hi all, I'm trying to write a query to get the list of files having different creators compared to their parents. The query looks like this: SELECT child.* FROM [custom:file] AS child INNER JOIN [custom:folder] AS parent ON ISCHILDNODE(child,parent) WHERE ISDESCENDANTNODE(child,

Re: custom authentication module

2020-02-27 Thread Marco Piovesana
gt; You can see an example on how this is done in a non-OSGi setup in > org.apache.jackrabbit.oak.AbstractSecurityTest that is located in oak-core. > From there yo can also find those derived tests that in fact defined a > different configuration... there should a few of those floating around in > Oak. > > Hope that

custom authentication module

2020-02-27 Thread Marco Piovesana
Hi all, I'm trying to define a custom LoginModule that extends the AbstractLoginModule in a NON-OSGi setup. Reading the documentation here at the section "Pluggability" I think I understood that I have to options to do it:

Re: custom restrictions on ACEs

2020-02-26 Thread Marco Piovesana
a insight. Others may not necessarily have > that insight such as I am likely shortsighted or ignorant in other areas >  > > Hope that helps > Angela > -- > *From:* Marco Piovesana > *Sent:* Wednesday, February 26, 2020 11:51 AM > *To:* oak-dev@jackr

Re: custom restrictions on ACEs

2020-02-26 Thread Marco Piovesana
odule also provides a few exercise lessons for > restrictions and how to write a custom restriction provider. Obviously > that's a lot easier that writing a custom authorization model. > > Hope that helps > Angela > > From: Marco Piovesana

custom restrictions on ACEs

2020-02-26 Thread Marco Piovesana
Hi all, I have an application where the ACEs (Access Control Entries) are applied to a node by users and by the system itself. By the user when she/he wants to share the node with some other users, by the system when the node has to be available to some users in automatic, under specific

Re: CachingFileDataStore vs DataStoreBlobStore

2020-02-24 Thread Marco Piovesana
, 2020 at 11:52 AM Amit Jain wrote: > Hi, > > OakFileDataStore is an extension of the JR2 FileDataStore and implements > required methods to work in Oak to support DSGC etc. So, in Oak > OakFileDataStore should only be used. > > Thanks > Amit > > On Tue, Feb 25, 2

Re: CachingFileDataStore vs DataStoreBlobStore

2020-02-24 Thread Marco Piovesana
Hi guys, what's the difference between the FileDataStore and the OakFileDataStore? I've seen that the one is an extension of the other and it implements the SharedDataStore interface, but I did not found other documentation on it. Is it just the oak implementation of the same storage? Or there are

Re: Versionable node deletion

2020-02-24 Thread Marco Piovesana
Hi Jorge, I'm not an expert, but I think it might be related to OAK-804 . The root version should be automatically removed when removing the last version. But since it isn't, there is still one node that references the binary, so (the binary) is not

Re: repository migration (sidegrade)

2020-02-18 Thread Marco Piovesana
the Mongo NodeStore? Is there a way to sidegrade the repository putting the binary store also in Mongo? Marco. On Tue, Feb 18, 2020 at 5:21 PM Marco Piovesana wrote: > Hi all, > I'm trying to sidegrade my repository from a SegmentNodeStore to a > DocumentNodeStore using the oak-upgrade mod

repository migration (sidegrade)

2020-02-18 Thread Marco Piovesana
Hi all, I'm trying to sidegrade my repository from a SegmentNodeStore to a DocumentNodeStore using the oak-upgrade module. At first, I couldn't run it because of OAK-5591 . Then I put all segment files within a folder called "*segmentstore*" and it

Re: online backup of segment store repository

2020-01-11 Thread Marco Piovesana
Can someone confirm that the backup is expected to fail when the process is executed while the repository is running? Marco. On Sun, Jan 5, 2020 at 11:37 AM Marco Piovesana wrote: > Hi all, > I'm using Oak with a Segment node store and I'm trying to create a backup > without havin

online backup of segment store repository

2020-01-05 Thread Marco Piovesana
Hi all, I'm using Oak with a Segment node store and I'm trying to create a backup without having to stop the repository. I tried to follow the documentation , but when I run the backup with oak-run I get the error:

Re: OAK-8048 (VersionHistory not removed when removing node and all its versions), was: propose a fix as non-contributor

2019-04-23 Thread Marco Piovesana
Thanks Julian, I wasn't sure I followed the right procedure! Marco. On Tue, Apr 23, 2019 at 10:34 AM Julian Reschke wrote: > On 23.04.2019 10:13, Marco Piovesana wrote: > > Hi all, > > a few month ago I reported a bug (OAK-8048), later on i tried to fix it > > my

propose a fix as non-contributor

2019-04-23 Thread Marco Piovesana
Hi all, a few month ago I reported a bug (OAK-8048), later on i tried to fix it myself adding the patch to the jira issue, to see if that was an acceptable solution. I didn't get any replay so far, and I was wondering if that is not the right way to propose a solution from somebody that is not a

Re: ACL on versioned node

2018-11-02 Thread Marco Piovesana
tation detail. See also > http://jackrabbit.apache.org/oak/docs/security/permission/differences.html > for details on how access to the version storage is evaluated. > > Kind regards > Angela > ____ > From: Marco Piovesana > Sent: Friday, Novemb

Re: ACL on versioned node

2018-11-02 Thread Marco Piovesana
f a new version and > which imformation also makes it in which form to the version storage > (IGNORE: not copied to version storage at all). It also has an impact on > restore. You will find all the details in the specification. > > Kind regards > Angela > ____

Re: ACL on versioned node

2018-10-31 Thread Marco Piovesana
) should be enforced. > > May I ask you to create a JIRA ticket for that? > Thanks > Angela > > > From: Marco Piovesana > Sent: Tuesday, October 30, 2018 7:05 PM > To: oak-dev@jackrabbit.apache.org > Subject: ACL on versione

ACL on versioned node

2018-10-30 Thread Marco Piovesana
Hi all, I'm using Oak 1.8.1 and I don't think I fully understand how permissions are handled in versioned nodes. If I create the first version of a node *after* adding an ACE to it, then I can add or remove other ACE without having to checkout the node. If I create the first version of the node

Re: run repository garbage collector for segment store

2018-07-12 Thread Marco Piovesana
? The only method I found is *getStats* but returns something only if the repository is shared.. Marco. On Mon, Jul 9, 2018 at 3:30 PM Marco Piovesana wrote: > Hi all, > I have a standalone Oak repository based on a SegmentNodeStore: > > File repositoryFile = new File(rootDir, "rep

run repository garbage collector for segment store

2018-07-09 Thread Marco Piovesana
Hi all, I have a standalone Oak repository based on a SegmentNodeStore: File repositoryFile = new File(rootDir, "repository"); File dataStoreFile = new File(rootDir, "datastore"); BlobStore blobStore = new FileBlobStore(dataStoreFile.getAbsolutePath()); FileStore fileStore =

Re: change node ownership

2018-02-14 Thread Marco Piovesana
e oak-exercise module which comes > with quite some training material for the default authorisation model. > > Hope that helps > Angela > > > On 13/02/18 18:36, "Marco Piovesana" <pioves...@esteco.com> wrote: > > >Hi all, > >is it possible to ch

Re: modify the content of a NodeStore using the API

2018-01-10 Thread Marco Piovesana
, but it did not work. It fails inside NodeDelegate.isProtected when checking if is a protected type. Did I do something wrong? Marco. On Wed, Jan 10, 2018 at 8:56 AM Marcel Reutegger <mreut...@adobe.com.invalid> wrote: > Hi, > > On 09/01/18 15:19, Marco Piovesana wrote: >

run garbage collector through RepositoryManagementMBean

2018-01-10 Thread Marco Piovesana
I have an Oak repository connected to a Mongo DocumentNodeStore. When I try to run the garbage collector through the RepositoryManagementMBean I get the message "Cannot perform operation: no service of type RevisionGCMBean found". Here is how I create the repository: DB db = new

Re: modify the content of a NodeStore using the API

2018-01-09 Thread Marco Piovesana
or even some Oak > internals. You are responsible for passing in the required CommitHook > with editors and validators to ensure integrity depending on the changes > you make. E.g. if you change an indexed property, you will have to > ensure that index update editors are present in the commit

Re: modify the content of a NodeStore using the API

2018-01-09 Thread Marco Piovesana
es().iterator().next(); } Marco. On Tue, Jan 9, 2018 at 8:46 AM Marcel Reutegger <mreut...@adobe.com.invalid> wrote: > Hi, > > can you please provide a link to the upgrade script you have? > > Regards > Marcel > > On 08/01/18 18:24, Marco Piovesana wrote:

modify the content of a NodeStore using the API

2018-01-08 Thread Marco Piovesana
Hi all, I'm trying to modify a frozen node property in a custom upgrade script. I was following this post and I tried to use the NodeStore API to do so. I am able to get

garbage collector in mongo document node store

2017-11-05 Thread Marco Piovesana
Hi all, I'm setting up an Oak (1.6.6) repository with a DocumentNodeStore connected to MongoDB. I have a question about the garbage collector. In the documentation about the Oak Document storage (here ) is

Re: start oak with file system storage

2017-10-07 Thread Marco Piovesana
have to migrate it to be able to use it with this new configuration? Marco. On Thu, Oct 5, 2017 at 5:31 PM, Matt Ryan <o...@mvryan.org> wrote: > Hi Marco, > > I’d probably use data store classes instead (e.g. FileDataStore) and wrap > them inside DataStoreBlobStore. > > -MR &

start oak with file system storage

2017-10-05 Thread Marco Piovesana
Hi all, I'm using Oak 1.6.1 with a file system storage (no migration from a previous version of the data). I think I kinda got lost between the options available to create the repository. I'm currently using a FileBlobStore with the following configuration: File repositoryFolder = new

Re: frozen node modifications

2017-09-17 Thread Marco Piovesana
re API directly. But then you would > need to be careful and understand how versioned data is stored > > Chetan Mehrotra > -- marco piovesanA Enterprise Application *ESTECO* | EXPLORE DESIGN PERFECTION AREA Science Park, Padriciano 99 - 34149 Trieste - ITALY Phone: +39 040 3755548 -

Re: frozen node modifications

2017-08-07 Thread Marco Piovesana
aning to it. > > while this approach forces you to properly design not only your > application but also your content model, it helps you explicitly > establishing a contract for your application. > > hope that helps > angela > > > On 24/07/17 11:19, "Marco Piovesana&q

Re: frozen node modifications

2017-08-04 Thread Marco Piovesana
definition. However do create new nodetype (or > mixins) to mark the domain objects in your application content. > > Chetan Mehrotra > -- marco piovesanA Enterprise Application *ESTECO* | EXPLORE DESIGN PERFECTION AREA Science Park, Padriciano 99 - 34149 Trieste - ITALY Phone:

Re: frozen node modifications

2017-08-02 Thread Marco Piovesana
ns, so pls > take the above as a reflection of what has worked well for me (but your > circimstances might be different) > > Cheers > Michael > > > > On 24/07/17 11:19, "Marco Piovesana" <pioves...@esteco.com> wrote: > > >Hi all, > >I'm worki

frozen node modifications

2017-07-24 Thread Marco Piovesana
Hi all, I'm working on the upgrade module for my application based on Oak. The module modifies the custom node types to reflect the modifications in the application. Some of those modifications may be adding new properties to custom nodes, and implicitly to all versions of that node. Since frozen

Re: upgrade repository structure with backward-incompatible changes

2017-05-23 Thread Marco Piovesana
not aware of a pure JCR toolkit that helps with this, so you may > >just need to write something yourself. > > > >Regards > >Julian > > > > > > > >On Fri, May 19, 2017 at 5:00 PM, Marco Piovesana <pioves...@esteco.com> > wrote: > >> Hi

Re: upgrade repository structure with backward-incompatible changes

2017-05-19 Thread Marco Piovesana
Hi Julian, I meant I'm using Oak not Sing. Yes I'm using JCR API. Marco. On Fri, May 19, 2017 at 2:22 PM, Julian Sedding <jsedd...@gmail.com> wrote: > Hi Marco > > On Fri, May 19, 2017 at 2:10 PM, Marco Piovesana <pioves...@esteco.com> > wrote: > > Hi Julian, Micha

Re: upgrade repository structure with backward-incompatible changes

2017-05-19 Thread Marco Piovesana
enforce any JCR > semantics. So if you were to go down that route, you would need to be > very careful not to change the content structure in a way that > essentially corrupts JCR semantics. > > Regards > Julian > > > On Tue, May 16, 2017 at 6:33 PM, Marco Piovesana <

Re: upgrade repository structure with backward-incompatible changes

2017-05-16 Thread Marco Piovesana
ism [2]. > > Regards, > Tomek > > [1] http://jackrabbit.apache.org/oak/docs/architecture/ > nodestate.html#The_commit_hook_mechanism > [2] https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html > > -- > Tomek Rękawek | Adobe Research | www.adobe.com > reka...@adobe.com &

upgrade repository structure with backward-incompatible changes

2017-05-14 Thread Marco Piovesana
Hi all, I'm trying to deal with backward-incompatible changes on my repository structure. I was looking at the oak-upgrade module but, as far as I could understand, I can't really make modifications that require some logic (e.g. remove a property and add a new mandatory property with a value based

Re: import elements from external system preserving creation date

2017-04-19 Thread Marco Piovesana
then i guess the safest way is to create the custom property. Thanks Davide! On Wed, Apr 19, 2017 at 10:59 AM, Davide Giannella <dav...@apache.org> wrote: > On 10/04/2017 09:11, Marco Piovesana wrote: > > Hi all, > > I'm trying to migrate data from an external sys

import elements from external system preserving creation date

2017-04-10 Thread Marco Piovesana
Hi all, I'm trying to migrate data from an external system to Oak preserving the creation date of each element. I tried to set the JCR:creationDate but that is not allowed since the property is protected. I saw that the ImportContentHandler has methods to push SAX events in the repository. Is that

Discrepancy between addAccessControlEntry and clear on versioned node

2017-03-23 Thread Marco Piovesana
Hi all, I was trying to change the permissions on a *versioned* node and i found two things that I don't quite understand: 1) If i try to do an AccessControlUtils.addAccessControlEntry(...) i got an error if the node in not checked-out (and this seems consistent with what written on JCR-1639

modify node type definition

2016-12-02 Thread Marco Piovesana
Hi all, i have a running oak installation with custom node types defined in the customCND file. What i want to do now is change the definition of one of this node types. I did set tu *true* the reregisterExisting property doing this: CndImporter.registerNodeTypes(customCNDStream, session, true);

unregister custom privilege

2016-08-15 Thread Marco Piovesana
dear all, I'm working with custom privileges, I did register a custom privilege doing this: PrivilegeManager privilegeManager = ((JackrabbitWorkspace) session.getWorkspace()).getPrivilegeManager(); Privilege privilege = privilegeManager.registerPrivilege("custom:mycustomprivilege", false, new