Antonio Gioia | 3 Apr 2013 17:04
Picon

WebDav Jackrabbit retrieve remote file content by URL

Hi to all,

I'm using jackrabbit webapp to access to the repository via webdav. I stored
my document/files adding nt:file and nt:resource nodes, so when I try to
list the content of my repository via webdav it works fine. I mean, I look
my files and folder using a browser or a general webdav client and I can
download the content of the files.

Now I'd like to add some "link" to files stored in a remote storage, I don't
wont import the files present in this remote storage in my jackrabbit
repository. So, I was thinking still to use a subtype of nt:resource node
adding a property to store the URL (a simple string) for the remote files,
but in this way what I can retrieve the content of the remote files? 

I know that I have to integrate my client to retrieve the external content
given a URL in some part of the webapp servlets ....no ? .... but where ?  

Someone can help me? I hope I was clear...Thanks.

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/WebDav-Jackrabbit-retrieve-remote-file-content-by-URL-tp4658135.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Yusuf Aaji | 30 Mar 2013 10:27
Picon

Multiapps using the same repository

Hi,

I have multiple spring applications hosted on tomcat7 which uses jackrabbit
as a content repository, the apps content is not related to each other.
Which is the best option to access jackrabbit in terms of resources
utilization (memory and cpu), safety (repository data corruption or slow
down) and performance :

   1. Access a single repository using a shared tomcat resource
   2. Access a single repository remotely using RMI
   3. Access separate repository for each app directly as a spring bean

Those apps are developed in house so monitoring for correct memory usage
and profiling is also a requirement, so which option better suits my
requirements.

--
*BR,
Yusuf
* <http://www.gso.org.sa>
David Buchmann | 27 Mar 2013 02:42
Picon
Favicon
Gravatar

cnd and multiple


hi,

while writing the cnd parser for phpcr, i stumbled over a strange
problem. after it seemed to work, i tried to parse the jackrabbit
builtin_nodetypes.cnd [1] because it is big so i hoped to find bugs. i
found some and fixed them, but now i am stuck.

there is this definition for rep:Group that has a "multiple"
declaration for a rep:members child node. and the same issue on
rep:Members.
from the cnd documentation and also reading the jackrabbit reader [2]
i don't see how this can be valid. is this a bug? is this file never
parsed by jackrabbit? or do you use a different parser that adds this
behaviour?

the nodes look like this:

[rep:Group] > rep:Authorizable
  + rep:members (rep:Members) = rep:Members multiple protected VERSION
  - rep:members (WEAKREFERENCE) protected multiple < 'rep:Authorizable'

(this is also an example of having a child node and a property with
the same name, btw.)

[rep:Members]
  orderable
  + * (rep:Members) = rep:Members protected multiple
  - * (WEAKREFERENCE) protected < 'rep:Authorizable'

(Continue reading)

Ati Rosselet | 26 Mar 2013 23:25
Picon

sorting with join...

Hi,
I'm having a bit of trouble setting up an SQL2 query for sorting that
uses a join.
Basically I have 2 types of Objects, Company and Contact that are
joined with Company.manager = Contact.[jcr:uuid].  The type of the
node is specified by the crm_type attribute.
My Current query looks like this:

SELECT crm.* FROM [nt:unstructured] AS crm  LEFT OUTER JOIN
[nt:unstructured] AS Contact ON crm.[manager] = Contact.[jcr:uuid]
WHERE ISDESCENDANTNODE(crm,'/1/') AND  crm.isActive = true AND
crm.crm_type = 'Organization'  AND (ISDESCENDANTNODE(Contact,'/1/')
AND Contact.isActive = true AND Contact.crm_type = 'Contact' )  ORDER
BY Contact.name ASC

where the restriction of ISDESCENDENTNODE limits to searching within
user#1's path.
Now this works.. but I only get rows where I have both objects, where
I ideally want to get all Organizations and only order by the manager
contact's name if is is defined, otherwise have that as null.
What is wrong with my query? or am I doing something fundamentally
wrong? The results I am getting seem to be what I would expect from an
INNER JOIN...

I am using jackrabbit 2.4.1.   If this is a known bug or something, I
can upgrade easily to 2.4.3 or 2.6...

Thanks
Ati

(Continue reading)

Daniel Hobi | 26 Mar 2013 11:17
Favicon

Garbage collection progress in %

Hi there

I would like to implement a progress bar for Jackrabbits garbage collection.
Counting the nodes which have already been scanned can be easily done by using the garbage collectors
setMarkEvenetListener method.

But: Is there a (easy and resource-efficient) way to get the total amount of nodes in Jackrabbit 2.2.x?

All I have seen so far are solutions where the underlying PersistenceManager is called (with the help of the
reflection api) to getAllNodeIds.

Thanks
Daniel

p.s. I noticed that there was a property "jcr.repository.stats.nodes.count" in Jackrabbit 1.x. once
which held approximately the amount of nodes.
Unfortunately, this property does no longer exist in Jackrabbit 2.x
Daniel Hobi | 26 Mar 2013 11:18
Picon
Picon
Gravatar

Garbage collection progress in %

Hi there

I would like to implement a progress bar for Jackrabbits garbage collection.

Counting the nodes which have already been scanned can be easily done by
using the garbage collectors setMarkEvenetListener method.

But: Is there a (easy and resource-efficient) way to get the total amount of
nodes in Jackrabbit 2.2.x?

All I have seen so far are solutions where the underlying PersistenceManager
is called (with the help of the reflection api) to getAllNodeIds.

Thanks

Daniel

p.s. I noticed that there was a property "jcr.repository.stats.nodes.count"
in Jackrabbit 1.x. once which held approximately the amount of nodes.

Unfortunately, this property does no longer exist in Jackrabbit 2.x

Anu Madan | 25 Mar 2013 09:04

Need help: Jackrabbit file deletion doesnot free disk space.

Hi,

We are using Jackrabbit with Derby database as file system.
We are deleting nodes using the jcr api and the nodes are deleted successfully. Since we get
an ItemNotFoundException when we fetch them thereafter.

But if we check the disk space, it still shows the same amount of space occupied.
We are facing space issues on our server and are trying to delete old files to overcome the
issue.

Please advice on the way, the space can be recovered on file deletion from jackrabbit.
Also, please share how the deletion mechanism works, for knowledge purposes.

Thanks.

Regards,
Anu Madan | Team Lead
Email:
anu.madan <at> techmahindra.com<mailto:anu.madan <at> techmahindra.com>

============================================================================================================================Disclaimer:
 This message and the information contained herein is proprietary and confidential and subject to the
Tech Mahindra policy statement, you may review the policy at <a
href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a>
externally and <a
href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a>
internally within Tech Mahindra.============================================================================================================================
Malzer Ferdinand OSP sIT | 25 Mar 2013 07:49
Picon

strange behaviour of Jackrabbit using

Hello,
We have the following problem. 
We use a  JcrConstants.MIX_VERSIONABLE node N which has a property A defined with defintion propDef.setOnParentVersion(OnParentVersionAction.IGNORE).

When we try to change this property we got the following exception:
	javax.jcr.version.VersionException: Unable to perform operation. Node is checked-in.

In the JCR 2.0 spec we could find the following information:

15.2.2 Read-Only on Check-In
When a versionable node is checked in, it and its subgraph become read-only.
The effect of read-only status on a node depends on the on-parent-version (OPV)
status of each of its child items.
When a node N becomes read-only:
* No property of N can be added, removed or have its value changed unless
it has an on-parent-version setting of IGNORE.

According the spec we would expect, that we could change the property A of N without explicitly check-out
the node.
Does somebody knows what goes wrong and how to change a property defined as OnParentVersionAction.IGNORE
without creating a new version?

Thx in advance.
:-) ferry malzer

dbac | 23 Mar 2013 17:56
Favicon

why??strange problem,please help me

function fnOpenFolderView(){
	var
o=oDAV.navigateFrame("http://dbac-pc:8081/zsk/repository/default/","_self");
}

when  click, the send request header :

PROPFIND http://dbac-pc:8081/ HTTP/1.1
User-Agent: Microsoft-WebDAV-MiniRedir/6.1.7600
Depth: 0
translate: f
Connection: Keep-Alive
Content-Length: 0
Host: dbac-pc:8081
Authorization: Basic YWRtaW46YWRtaW4=

why PROPFIND http://dbac-pc:8081/ ???? why not
http://dbac-pc:8081/zsk/repository/default/???

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/why-strange-problem-please-help-me-tp4658007.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Lars Janssen | 22 Mar 2013 16:44

Preview workflow based on workspace clone/node update

Hi all,

Does anyone have any experience of using Workspace->clone() and
Node->update() to implement a preview capability? I'm looking at the
feasibility of establishing the following workflow for a CMS using
Jackrabbit:

1. Two workspaces, e.g. "preview" and "published".
2. Users make all their edits in the "preview" workspace.
3. To publish a new document, the node is cloned to the "published"
workspace.
4. To change a document, user first edits in the "preview" workspace. To
publish the change, we call the Node->update() method on that document's
node.

So far, so good, but the documents don't exist in isolation. We have two
types of document, "page" and "block" (both using node type nt:unstructured
at the moment).

A page can contain blocks OR pages, a block can only contain other blocks.
Here is the simplest possible example, showing the node paths:

/page1/
/page1/block1
/page1/subpage1

In our user interface, we will allow the user to edit page1 and block1
together (e.g. page1 might include the page title, and block 1 a block of
text for the page body).

(Continue reading)

raaz438 | 21 Mar 2013 07:48
Picon

How to create out own users and how to give permission to that user

Hi There,

    I am trying to create users in jackrabbit repository and give
permissions to that users.but am enable to achieve that one.please if u have
any idea about create user and give permission(all permission) to that
user.Reply me as soon as possible.

  Actually am trying with code am adding user successfully but am not able
to add permission to that user.

   i want single user &create group of user and giving permission to  those
user.

  note :please open the document in wordpad.

  JackRabbit.rtf
<http://jackrabbit.510166.n4.nabble.com/file/n4657978/JackRabbit.rtf>  

Thanks and Regards,
 Rajasekhar

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/How-to-create-out-own-users-and-how-to-give-permission-to-that-user-tp4657978.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Gmane