Closing resources for deleted repository

2021-03-05 Thread jorgeeflorez
Hello, when I am deleting a repository (that uses a file data store and Lucene indexes are stored in the file system). I first delete content nodes and nodetypes so the repository is "empty". After that, I call RepositoryImpl.shutdown() and DocumentNodeStore.dispose(). The final step of my process

Re: User created date property

2021-02-16 Thread jorgeeflorez
endencies are properly registered. > > Hope that helps > Angela > > > From: jorgeeflorez > Sent: Thursday, February 11, 2021 8:37 PM > To: oak-dev@jackrabbit.apache.org > Subject: User created date property > > Hi, > I need to put and use additional prope

Re: Lucene index not working correctly

2021-02-12 Thread jorgeeflorez
Hi, I am not an Oak Developer, but maybe I can help you (maybe :) ) can you please provide information about the node types, their properties and how do they relate? Can you please attach an example of those nodes (and their properties) that also come in the search results? Thanks. Jorge El

User created date property

2021-02-11 Thread jorgeeflorez
Hi, I need to put and use additional properties on users and so far no problems with those properties. I could even add a mixin to the node that represents the user! (I am not sure if this is allowed). It seems that the "jcr:created" property cannot be seen using Authorizable.getProperty method.

Re: Mongo DB name max length

2021-02-06 Thread jorgeeflorez
50 characters, it is long enough I believe. Regards. Jorge Flórez El vie, 5 feb 2021 a las 4:37, Marcel Reutegger () escribió: > Hi, > > On 03.02.21, 18:17, "jorgeeflorez" wrote: > > My question is: is there another way to "create" the database having 64 > > ch

Mongo DB name max length

2021-02-03 Thread jorgeeflorez
Hi all, I hope you are all doing well... According to the documentation , in MongoDB I can create a database whose name is up to 64 characters. When I try to connect to a repository (Oak 1.12.0) that does not exist and use a db name with 64

Property in node type

2020-11-03 Thread jorgeeflorez
Hi all, I hope you are doing well... I am not sure if this has been asked before. Is it possible to define/set a property in the node type's node, so I can check its value? (I don't want a property for nodes I create of that type, just to be clear). Regards. Jorge

Listening for changes made by other back-ends

2020-10-06 Thread jorgeeflorez
Hi all, I am not sure if this has been answered before or there is online documentation. If I have 3 Oak instances for the same repository, how can an instance be informed about the children that have been added/removed to some node by the other instances? How can an instance be "notified" about

Re: Multiple property definition for same property

2020-06-23 Thread jorgeeflorez .
> some low level operations like e.g. the tools in oak-run. > > Is there any chance you could provide a patch to fix the bug you reported? > That might help getting it addressed. > > wdyt? > > Kind regards > Angela > > From: jorgeeflorez . > S

Re: Multiple property definition for same property

2020-06-18 Thread jorgeeflorez .
Jorge El mié., 18 mar. 2020 a las 11:19, jorgeeflorez . (< jorgeeduardoflo...@gmail.com>) escribió: > Hi Angela, > thank you for your help. I created > https://issues.apache.org/jira/browse/OAK-8961. > > Regards. > > Jorge > > El mié., 18 mar. 2020 a las 10:09,

Re: Getting Repository Statistics

2020-05-20 Thread jorgeeflorez .
Hi, is it possible to have access to metrics like the ones in https://jackrabbit.apache.org/oak/docs/nodestore/document/metrics.html in a non osgi environment? Should I create a StatisticsProvider and use getCounterStats? Jorge El dom., 17 may. 2020 a las 10:00, jorgeeflorez . (< jorgeeduardo

Re: Query ordered by node name

2020-05-19 Thread jorgeeflorez .
om/generate/index > > > > FWIW, in the "name" property node it sets [name = ":name"] instead of > > [function = "fn:name"]. I don't know if that makes a difference and > > which is better, if any. > > > > Regards > > Julian > >

Query ordered by node name

2020-05-18 Thread jorgeeflorez .
Hello, with the following query I am able to get file nodes ordered by name: SELECT * FROM [nt:file] AS s WHERE ISCHILDNODE(s, [/repo1/pruebaJF1]) ORDER BY NAME([s]) DESC unfortunately, because I do not have an index, on a big repository I have warnings like: WARN

Getting Repository Statistics

2020-05-17 Thread jorgeeflorez .
Hi all, I would like to know some statistics from a repository (a rather large repository): 1. Node count from each node type. 2. Total node count (from user created node types). 3. Total file size (maybe including/excluding version files). 4. How many files are stored for a specific extension. 5.

Re: Edit group

2020-05-13 Thread jorgeeflorez .
authorizable you can use: UserManager um = session.getUserManager(); Authorizable authorizable = um.getAuthorizable(group.getId()); Value[] propertyValues = authorizable.getProperty("color"); String color = null; if (propertyValues != null) { color = propertyValues[0].getString(); } Jor

Edit group

2020-05-07 Thread jorgeeflorez .
Hi all, I was wondering, is it possible to change the name of a group? I am not sure about it and I want to confirm it, please. Thanks. Best Regards. Jorge

Extract text and reindex a specific node

2020-04-22 Thread jorgeeflorez .
Hi all, I know the process of text extraction using Tika (so it can be added to an index) is asynchronous and it is performed when adding a file node, or updating the file in a file node. I have a question: I configured a Tika parser that performs OCR over png files. I would like to know if there

Re: Custom FileDataStore

2020-04-14 Thread jorgeeflorez .
t; requirement on an Oak level. > > Jörg > > Am Di., 14. Apr. 2020 um 14:35 Uhr schrieb jorgeeflorez . < > jorgeeduardoflo...@gmail.com>: > > > Hi all, > > I have been tasked to store repository files in file system, but not like > > it is handled by OakFile

Custom FileDataStore

2020-04-14 Thread jorgeeflorez .
Hi all, I have been tasked to store repository files in file system, but not like it is handled by OakFileDataStore which uses a single directory. Instead, the customer wants to define one or more directories that can be on different hard disks, so that "in theory" disk space will never be a

Re: Multiple property definition for same property

2020-03-18 Thread jorgeeflorez .
h welcome. > > Kind regards > Angela > ____ > From: jorgeeflorez . > Sent: Wednesday, March 18, 2020 3:57 PM > To: oak-dev@jackrabbit.apache.org > Subject: Multiple property definition for same property > > Hi all, > using the following code, I

Multiple property definition for same property

2020-03-18 Thread jorgeeflorez .
Hi all, using the following code, I am able to update an existing node type by inserting a new property: NodeTypeManager nodeTypeManager = session.getWorkspace().getNodeTypeManager(); NodeType repositoryType = nodeTypeManager.getNodeType("testType"); NodeTypeTemplate repositoryTypeTemplate =

Re: Lucene index in filesystem

2020-03-05 Thread jorgeeflorez .
Hi, I guess nobody has ever tried this. I will try to setup an environment and test, to see if this is possible. I will write on this thread what I find (problems for me probably XD). El lun., 24 feb. 2020 a las 10:32, jorgeeflorez . (< jorgeeduardoflo...@gmail.com>) escribió: > Hi,

Re: Cluster Info problem

2020-03-03 Thread jorgeeflorez .
For now, if I use setLeaseCheckMode(LeaseCheckMode.DISABLED) in the document store, I should stop seeing that error, right? El mar., 3 mar. 2020 a las 12:38, jorgeeflorez . (< jorgeeduardoflo...@gmail.com>) escribió: > It is done: https://issues.apache.org/jira/browse/OAK-8935 > >

Re: Cluster Info problem

2020-03-03 Thread jorgeeflorez .
It is done: https://issues.apache.org/jira/browse/OAK-8935 El mar., 3 mar. 2020 a las 10:06, Julian Reschke () escribió: > On 03.03.2020 15:48, jorgeeflorez . wrote: > >> > >> First step would be to upgrade to 1.24.0 > >> > > We just upgraded from 1.5 las

Re: Cluster Info problem

2020-03-03 Thread jorgeeflorez .
ollisions:0 txqueuelen:1000 RX bytes:81477 (79.5 KiB) TX bytes:81477 (79.5 KiB) El mar., 3 mar. 2020 a las 9:29, Julian Reschke () escribió: > On 03.03.2020 15:15, jorgeeflorez . wrote: > > Hi Julian, thanks for your reply, > > > > a) I am using version 1.12.0.

Re: Cluster Info problem

2020-03-03 Thread jorgeeflorez .
uster info. Jorge El mar., 3 mar. 2020 a las 8:16, Julian Reschke () escribió: > On 03.03.2020 13:45, jorgeeflorez . wrote: > > Hi, > > I am having some problems starting a node store in a server. I am > getting: > > DocumentStoreException: Configured cluster node id 123

Cluster Info problem

2020-03-03 Thread jorgeeflorez .
Hi, I am having some problems starting a node store in a server. I am getting: DocumentStoreException: Configured cluster node id 123 already in use: needs recovery and machineId/instanceId do not match: mac:02421b0c73d3//home/ec2-user != mac:0242a5c0c5e5//home/ec2-user I read the code from class

Re: Versionable node deletion

2020-02-24 Thread jorgeeflorez .
that exists. Jorge El lun., 24 feb. 2020 a las 9:17, Marco Piovesana () escribió: > Hi Jorge, > I'm not an expert, but I think it might be related to OAK-804 > <https://issues.apache.org/jira/browse/OAK-8048>. The root version should > be automatically removed when removin

Re: Versionable node deletion

2020-02-24 Thread jorgeeflorez .
t that did not happen... Any help is appreciated. Jorge El vie., 21 feb. 2020 a las 15:12, jorgeeflorez . (< jorgeeduardoflo...@gmail.com>) escribió: > Hi, > when I delete a node that has version history, using node.remove() and > then session.save(), should all version

Re: CachingFileDataStore vs DataStoreBlobStore

2020-02-22 Thread jorgeeflorez .
online documentation). Best Regards. Jorge El vie., 21 feb. 2020 a las 18:57, Matt Ryan () escribió: > Hi Jorge, > > On Fri, Feb 21, 2020 at 3:40 PM jorgeeflorez . < > jorgeeduardoflo...@gmail.com> > wrote: > > > Hi Matt, thanks a lot for your answer. &

Re: CachingFileDataStore vs DataStoreBlobStore

2020-02-21 Thread jorgeeflorez .
like this: >DataStore ds = new OakFileDataStore(); // or whatever DataStore type you > choose >ds.init(dataStoreHomeDirectory); >BlobStore blobStore = new DataStoreBlobStore(ds); > Then you would use the blobStore to create the FileStore that your node > store requ

Re: CachingFileDataStore vs DataStoreBlobStore

2020-02-21 Thread jorgeeflorez .
Ok, I meant DataStoreBlobStore wrapping a FileDataStore and DataStoreBlobStore wrapping a CachingFileDataStore (I am still confused I guess)... El vie., 21 feb. 2020 a las 16:03, jorgeeflorez . (< jorgeeduardoflo...@gmail.com>) escribió: > Hi, > I am trying to pick on

CachingFileDataStore vs DataStoreBlobStore

2020-02-21 Thread jorgeeflorez .
Hi, I am trying to pick one data store with the purpose of avoiding binary storage in MongoDB blobs collection. I would like to know which should I choose to be used in production. I have explored a bit (1.12 version) and my guess is that DataStoreBlobStore should be used when you want to store

Versionable node deletion

2020-02-21 Thread jorgeeflorez .
Hi, when I delete a node that has version history, using node.remove() and then session.save(), should all version info related to that node be deleted automatically? what about the files in that version history? After deleting, I print all nodes of the repository and I keep seeing those version

Fwd: Import problem

2020-01-21 Thread jorgeeflorez .
ect I had. I can't remember why I included jackrabbit core there :( Thanks. El mar., 21 ene. 2020 a las 1:10, Julian Reschke () escribió: > On 21.01.2020 02:15, jorgeeflorez . wrote: > > Hi Marcel, > > thank you for your reply. These are the dependencies I declared

Re: Import problem

2020-01-20 Thread jorgeeflorez .
ion 21 [0]. > I assume there must be a more recent Guava version than 15 on your > classpath. > > Regards > Marcel > > [0] https://github.com/google/guava/wiki/Release21#commonutilconcurrent > > On 18.01.20, 22:22, "jorgeeflorez ." > wrote: > > H

Import problem

2020-01-18 Thread jorgeeflorez .
Hello all, I am trying to build a standalone application that will use Jackrabbit and Oak (a Gradle project). I am having problems when the node store is being built. This is the stack trace: Exception in thread "main" java.lang.NoSuchMethodError:

Regarding DocumentStore and BlobStore

2020-01-12 Thread jorgeeflorez .
Hi all, I am starting a personal project and I plan to use Oak and Jackrabbit. I have read documentation about node storage a couple times and I think I understand (I guess). Here are my questions: If I use MongoDB as document store will I be able to set as blob store one of the six available,

Re: Alphabetical node name ordering

2019-12-13 Thread jorgeeflorez .
r by lower() or upper() functions. > > Best regards, > Piotr > > > On 11.12.2019 13:10, jorgeeflorez . wrote: > > Hi all, > > > > I am just wondering, because the customer will probably ask me. Is it > > possible or is there a way to have node name alphabet

Alphabetical node name ordering

2019-12-11 Thread jorgeeflorez .
Hi all, I am just wondering, because the customer will probably ask me. Is it possible or is there a way to have node name alphabetical ordering? when I execute for example: SELECT * FROM [nt:file] AS s WHERE ISCHILDNODE(s, [/repo4/Carpeta 72224012]) ORDER BY NAME([s]) ASC So instead of getting

Re: Versioning of files

2019-12-09 Thread jorgeeflorez .
Hi Tanvi, I know I am not part of developers team, but perhaps my little knowledge can be of help :) In our case we are versioning the file nodes i.e. the parent node of jcr:content and so far, all is ok. Have you tried using "mix:versionable" instead of NodeType.MIX_VERSIONABLE? Regards.

Re: SQL - Ordering by node name

2019-12-05 Thread jorgeeflorez .
r > > > On 05.12.2019 13:17, jorgeeflorez . wrote: > > Hello again, > > when I execute the following queries (Oak 1.12.0, with no indexes created > > by me): > > > > > > > > > > > > *SELECT * FROM [nt:file] AS s WHERE ISCHILDNODE(s, [/repo

SQL - Ordering by node name

2019-12-05 Thread jorgeeflorez .
Hello again, when I execute the following queries (Oak 1.12.0, with no indexes created by me): *SELECT * FROM [nt:file] AS s WHERE ISCHILDNODE(s, [/repo4]) ORDER BY [NAME()] DESCSELECT * FROM [nt:file] AS s WHERE ISCHILDNODE(s, [/repo4]) ORDER BY [NAME()] ASC* I am getting the nodes in the

Searching by node name

2019-12-03 Thread jorgeeflorez .
Hi all, in Oak's lucene index web page I find queries like *select [jcr:path] from [nt:base] where NAME() LIKE ‘kite%’* to search nodes based on their name. Is it possible to search by node name using function contains()? Thanks. Jorge

Use Lucene Index for all property types?

2019-11-29 Thread jorgeeflorez .
Hi, I apologize in advance if this email is too long to read. I am trying to create one Lucene index that includes all user defined properties and excludes some other "not visible" properties. Should I include in my Lucene index, properties of type LONG, DOUBLE, DATE? would it speed up numbers

Re: Lucene Index property Definitions

2019-11-29 Thread jorgeeflorez .
Hi Vikas, I created OAK-8811 . Thanks for your help. Best Regards. Jorge El jue., 28 nov. 2019 a las 14:06, Vikas Saurabh () escribió: > > I am searching using SQL-2 to create > queries, those examples don't look familiar to me. > > //element(*,

Re: Lucene Index property Definitions

2019-11-28 Thread jorgeeflorez .
Jorge El jue., 28 nov. 2019 a las 13:30, Vikas Saurabh () escribió: > On Thu, 28 Nov, 2019, 23:54 jorgeeflorez ., > wrote: > > > from the reference > < > > https://jackrabbit.apache.org/oak/docs/query/lucene.html#property-definitions > >, > it is not cle

Lucene Index property Definitions

2019-11-28 Thread jorgeeflorez .
Hi all, from the reference , it is not clear to me the difference between the fields analyzed, nodeScopeIndex, both says that should be set when using *contains* in queries. But it is not clear the difference or the

Solr Index

2019-10-04 Thread jorgeeflorez .
Hi all, I have been reading/learning about Solr for some implementation I need to do (basically, index information contained in a jcr repository). I have also read about how Solr is used by Oak and I am a bit confused. I would like to

Re: Repository data encryption

2019-09-30 Thread jorgeeflorez .
egards. Jorge El lun., 30 sept. 2019 a las 5:52, Marcel Reutegger () escribió: > Hi, > > On 27.09.19, 14:39, "jorgeeflorez ." > wrote: > > thank you for your reply. Yes, it seems pretty much impossible to do > > that. Now I am trying something "simpler

Re: Repository data encryption

2019-09-27 Thread jorgeeflorez .
; at rest. > > Regards > Marcel > > On 26.09.19, 14:42, "jorgeeflorez ." > wrote: > > Hi, > I am sorry if the following questions are vague: is it possible to > encrypt > all repository content so data that is stored in MongoDB cannot be >

Repository data encryption

2019-09-26 Thread jorgeeflorez .
Hi, I am sorry if the following questions are vague: is it possible to encrypt all repository content so data that is stored in MongoDB cannot be read? I mean, if I don't want to use MongoDB encryption can I store all nodes and their properties encrypted, will everything still working in

Re: Lucene Index Extraction

2019-09-05 Thread jorgeeflorez .
> > On Thu, 5 Sep, 2019, 01:23 jorgeeflorez ., > wrote: > > > Hello, > > > > I am trying to extract a Lucene index from a Repository stored in > MongoDB. > > I tried to use oak-run (1.12.0) as depicted in > > https://jackrabbit.apache.org/oak/docs/query/luc

Lucene Index Extraction

2019-09-04 Thread jorgeeflorez .
Hello, I am trying to extract a Lucene index from a Repository stored in MongoDB. I tried to use oak-run (1.12.0) as depicted in https://jackrabbit.apache.org/oak/docs/query/lucene.html#luke (I downloaded the jar) but no luck so far. This is what I get when I try to get index info:

Re: About text extraction for index

2019-08-23 Thread jorgeeflorez .
don't know if that affects). I will try again with oak.extraction.inCallerThread=true to see what happens. Regards, Jorge Flórez El vie., 23 ago. 2019 a las 7:13, jorgeeflorez . (< jorgeeduardoflo...@gmail.com>) escribió: > Hi Vikas, > > thank you for your reply. I will try

Re: About text extraction for index

2019-08-23 Thread jorgeeflorez .
Hi Vikas, thank you for your reply. I will try to change those parameters and see what happens. To answer one of my questions, I found that text is extracted only from pdf if I add application/pdf to DefaultParser in the index Tika config file. Regards. Jorge Flórez El jue., 22 ago. 2019 a las

About text extraction for index

2019-08-22 Thread jorgeeflorez .
Hi all, I have a question regarding text extraction when nt:file nodes are indexed (I am using oak 1.12.0 and tika-parsers 1.20). Is the text contained in a pdf file I attach to a file node extracted and included in the index by default (when using the default tika config)? Or should I explicitly

Re: Node name limit

2019-06-13 Thread jorgeeflorez .
ue., 13 jun. 2019 a las 9:13, Julian Reschke () escribió: > On 13.06.2019 15:50, jorgeeflorez . wrote: > > Hi all, > > > > I have a question regarding the maximum length of a node name. > > http://jackrabbit.apache.org/oak/docs/differences.html says that a node > > name has

Node name limit

2019-06-13 Thread jorgeeflorez .
Hi all, I have a question regarding the maximum length of a node name. http://jackrabbit.apache.org/oak/docs/differences.html says that a node name has a limit of 150 bytes. I checked https://issues.apache.org/jira/browse/OAK-2644 and it seems this is because some restriction on MongoDB. I tried

Re: ldap user permission

2019-06-05 Thread jorgeeflorez .
at > http://jackrabbit.apache.org/oak/docs/security/user/authorizableaction.html > > there should be tests available in oak-core that illustrate the behavior > if you wanted to see it in action. > > hope that helps > angela > > > From: jorgeeflorez

ldap user permission

2019-05-31 Thread jorgeeflorez .
Hello, I am currently implementing user login using a ldap server. So far so good. I am able enter to the repositories and when the user that is logging in doesn't exist in the repository, it is automatically created. I am seeing that the created users have no privileges (which makes sense).

Re: Users, groups and permissions

2019-05-24 Thread jorgeeflorez .
rity setup obviously > depends both on the authentication setup and how the set of principals is > computed therein and the authorization mechanism i.e. how permissions for > these principals are collected/weighted/ordered/evaluated. > > Hope that helps > Angela > > __

Re: Users, groups and permissions

2019-05-24 Thread jorgeeflorez .
gt; inherits the permissions granted/denied to that group. > similarly, if you remove that permission entry again and persist the > change, the test group and all of it's members will no longer get that > permission granted/denied (assuming there is no other entry that has the > same effect

Users, groups and permissions

2019-05-23 Thread jorgeeflorez .
Hello, I have been reading regarding Jackrabbit and Oak security and I think I understand. but I would like to confirm before implementing something... When I create a group and assign a permission (e.g. rep:write) to that group over a node path. If I assign an user to that group then the user

Creating repository

2019-05-22 Thread jorgeeflorez .
Hello, I am switching the web application I am working on from oak 1.5.14 to 1.12.0, I had this code: oak = new Oak(docStore); LuceneIndexProvider provider = new LuceneIndexProvider(); Jcr jcr = new Jcr(oak) .with(new LuceneIndexEditorProvider())

Re: Retrieving permissions for user

2019-04-25 Thread jorgeeflorez
Hi Julian, thank you. Some days ago, I proposed changing to a more recent version. Hopefully, they will approve it... Best Regards, Jorge El vie., 26 de abr. de 2019 12:02 a. m., Julian Reschke < julian.resc...@gmx.de> escribió: > On 25.04.2019 16:39, jorgeeflorez wrote: > > Hello

Re: Retrieving permissions for user

2019-04-25 Thread jorgeeflorez
gt; Angela > > > > > From: jorgeeflorez > Sent: Thursday, April 25, 2019 4:39 PM > To: oak-dev@jackrabbit.apache.org > Subject: Retrieving permissions for user > > Hello all, > > I am giving maintenance to an application

Retrieving permissions for user

2019-04-25 Thread jorgeeflorez
Hello all, I am giving maintenance to an application that uses Jackrabbit and Oak (1.5.14). In that software someone wrote the following code to get all permissions given to an user: List authPaths = new ArrayList<>(); permissionParent = "/jcr:system/rep:permissionStore/default/" +