Slide, Dasl and pdf

2005-04-12 Thread Bertrand Tignon

hello !
I'm working on a document library with Slide and Dasl.

I'm trying to do plain-text search with a basic DASL search inside .doc and 
.pdf files.
I've noticed that if I search a word with more than 2 characters it doesn't 
return any results. For instance I have a PDF document about XML, when I search 
the word xm it says xm was found in this PDF, but when I search the word 
xml it doesn't work !
Do u understand that ?
Please help me.

I've also noticed that DASL like search is not working with Slide. Is it 
normal ? Is it gonna be fixed ?

Thanx a lot for your help.

Bertrand.

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


Question about the putMethods

2005-04-12 Thread Mark Breitner
background : I want to send an email with attachments throught exchange by
using slide / webdav.

Therefore I have to put the attachment to an already existing email, like
this mail would be a folder.

---
my Question therefore is :

When using the method :

public boolean putMethod(java.lang.String path, byte[] data) :

What exactly happens here 
Does this method store the data within the specified path ???


Bye and thanks in advance

Mark Breitner

-- 
+++ NEU: GMX DSL_Flatrate! Schon ab 14,99 EUR/Monat! +++

GMX Garantie: Surfen ohne Tempo-Limit! http://www.gmx.net/de/go/dsl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to send emails with attachment throught exchange by using slide : my solution

2005-04-12 Thread Mark Breitner
Hello you all,

finally I found out how to deal with this exchange-monster. I thought I just
tell you all about this, because I got a lot of friendly and helpful emails
from all of you.

1) Create your email (like any other item). There seems to be a Conflict
when you want to create your email in a Folder which has german Umlaute
(like Entwürfe). even if you escape the Umlaute correctly, you still
cannot attach the attachment.

2) Patch all the properties to your email (esp. the to field)

3) Create an attachment by putting it to .../mail.eml/attachment.ending and
giving the binary data.

4) Move the email to the Microsoft Exchange Mail Submission URI.

Thats it.
Bye,

Mark breitner

-- 
+++ GMX - Die erste Adresse für Mail, Message, More +++

1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



webdav and OSX resource files

2005-04-12 Thread Upayavira
Hi,
I'm being a little naughty, as this question relates to webdav, but not 
to slide.

I have a webdav implementation that works on all OSes other than OS X. 
On OS X, if you open a resource, e.g. foo.doc, immediately afterwards it 
tries to load ._foo.doc (or something like that), which is the files 
resource fork. It fails, as the resource isn't there, and retries 50 
times, meanwhile the process of loading the file hangs for an 
uncomfortable amount of time.

Has anyone seen this before? Does anyone have a way to resolve it?
Thanks in advance, and apologies if this is off-topic.
Regards, Upayavira
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: webdav and OSX resource files

2005-04-12 Thread Martin Kaln
Upayavira wrote:
I'm being a little naughty, as this question relates to webdav, but not 
to slide.

I have a webdav implementation that works on all OSes other than OS X. 
On OS X, if you open a resource, e.g. foo.doc, immediately afterwards it 
tries to load ._foo.doc (or something like that), which is the files 
resource fork. It fails, as the resource isn't there, and retries 50 
times, meanwhile the process of loading the file hangs for an 
uncomfortable amount of time.
Does that not relate to MacOS filesystem handling rather than WebDAV
itself?
A random though is to try to control MacOS to not do resource fork
retrieval for a specific filesystem or mount.
If that can be done at all and if so in system settings or in Java,
I take the liberty to leave to the Mac experts...
I have also seen MacOS (pre-X) mounting UNIX filesystemes with keeping
of all resources in a separate .AppleDouble-directory at the root of
the mount. Maybe that's one small step further as you in your
implementation could separate Mac-specific resource fork requests
(all for the /.AppleDouble tree) from real requests.
Regards,
 Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Slide, Dasl and pdf

2005-04-12 Thread Edmund Urbani
Bertrand Tignon wrote:
hello !
I'm working on a document library with Slide and Dasl.
I'm trying to do plain-text search with a basic DASL search inside .doc and 
.pdf files.
I've noticed that if I search a word with more than 2 characters it doesn't return any results. For instance 
I have a PDF document about XML, when I search the word xm it says xm was found in 
this PDF, but when I search the word xml it doesn't work !
Do u understand that ?
Please help me.
I've also noticed that DASL like search is not working with Slide. Is it 
normal ? Is it gonna be fixed ?
Thanx a lot for your help.
Bertrand.
This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.
Are you using Slide 2.1 or the current CVS version?
Content search should work better with Slide 2.2 and the lucene based indexer.
There's a howto in the Wiki at 
http://wiki.apache.org/jakarta-slide/DaslConfiguration.
However I am currently struggling myself to get this to work right. I'm not sure
whether that Wiki page really includes all you need.
In my setup slide creates the store store/index/content dir with a 20-byte
sized file called segments in it, but it does not ever react to changes
in the repository and update the index. do I need to setup a listener and/or 
extractors
as well for this to work?
Looks like this is not a big help for you, Bertrand. but maybe someone will 
come along
and help us both with our DASL problems.
 Edmund
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Slide, Dasl and pdf

2005-04-12 Thread Bertrand Tignon

Thank u for replying Edmund.
Well, I'm using Slide 2.1
I didn't manage to get the Slide 2.2 via cvs. I read the how-to but I
don't see the 2.2 version, is it called Slide_HEAD_PRE_MERGE, or
SLIDE_HEAD_AFTER_EVENTS or something like that ?

About the wiki DASL Configuration, I don't know how to get the lucene
library needed (package org.apache.slide.index.*).

thanx for your help

Bertrand.


- Original Message - 
From: Edmund Urbani [EMAIL PROTECTED]
To: Slide Users Mailing List slide-user@jakarta.apache.org
Sent: Tuesday, April 12, 2005 2:47 PM
Subject: Re: Slide, Dasl and pdf


 Bertrand Tignon wrote:
  hello !
  I'm working on a document library with Slide and Dasl.
 
  I'm trying to do plain-text search with a basic DASL search inside .doc
and .pdf files.
  I've noticed that if I search a word with more than 2 characters it
doesn't return any results. For instance I have a PDF document about XML,
when I search the word xm it says xm was found in this PDF, but when I
search the word xml it doesn't work !
  Do u understand that ?
  Please help me.
 
  I've also noticed that DASL like search is not working with Slide. Is
it normal ? Is it gonna be fixed ?
 
  Thanx a lot for your help.
 
  Bertrand.
 
  This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.
 

 Are you using Slide 2.1 or the current CVS version?
 Content search should work better with Slide 2.2 and the lucene based
indexer.
 There's a howto in the Wiki at
http://wiki.apache.org/jakarta-slide/DaslConfiguration.

 However I am currently struggling myself to get this to work right. I'm
not sure
 whether that Wiki page really includes all you need.
 In my setup slide creates the store store/index/content dir with a 20-byte
 sized file called segments in it, but it does not ever react to changes
 in the repository and update the index. do I need to setup a listener
and/or extractors
 as well for this to work?

 Looks like this is not a big help for you, Bertrand. but maybe someone
will come along
 and help us both with our DASL problems.

   Edmund

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Slide, Dasl and pdf

2005-04-12 Thread Edmund Urbani
Bertrand Tignon wrote:
Thank u for replying Edmund.
Well, I'm using Slide 2.1
I didn't manage to get the Slide 2.2 via cvs. I read the how-to but I
don't see the 2.2 version, is it called Slide_HEAD_PRE_MERGE, or
SLIDE_HEAD_AFTER_EVENTS or something like that ?
About the wiki DASL Configuration, I don't know how to get the lucene
library needed (package org.apache.slide.index.*).
thanx for your help
Bertrand.
There is no 2.2 release, yet. The closest you get to 2.2 is the current
CVS HEAD.
That org.apache.slide.index package is in slide-stores-2.x.jar. It's there
even in 2.1, even though it appearantly does not work.
Maybe I should ask a different question on this list:
Does the LuceneIndexer that is currently in CVS HEAD work?
 Edmund
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Errors when creating a new node

2005-04-12 Thread Brusic, Ivan
Andrey,

Thanks for following up.  Martin Kalén posted the same solution back on
Friday (thread called Problem creating Objects), but I did not have a
chance to test it out yet.   Reading his description, it appeared that
his solution would work, and I am glad you came to the same conclusion.
I also noticed the changes in the store method of StructureImpl, but I
did not want to undo and modifications.

Thanks again for the help.

Ivan

-Original Message-
From: Andrey Shulinsky [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 11, 2005 8:41 PM
To: 'Slide Users Mailing List'
Subject: RE: Errors when creating a new node


Hi, Ivan!

Well, I've got the same error and fortunately found an easy way to fix
it. Here's the explanation if you're still interested.

First of all, the error that the system gives you isn't quite accurate.
When Slide tries to create a new node it calls the following methods of
the org.apache.slide.structure.StructureImpl class:

public void create(SlideToken token, ObjectNode object,String strUri)
public void store(SlideToken token, ObjectNode object) protected void
store(SlideToken token, ObjectNode object, boolean
setModificationDate)

and the last one tries to check if the active user has the appropriate
access rights (write, in fact) to the object that is being created. So
it calls the method

public void checkCredentials(SlideToken token, ObjectNode object,
ActionNode
action)

of the org.apache.slide.security.SecurityImpl class which, in turn,
tries to find the object:

ObjectNode realObject = objectUri.getStore().retrieveObject(objectUri);

And this very call failed for me throwing up the
ObjectNotFoundException. This exception is caught in the same method,
swallowed and the familiar AccessDeniedException is thrown instead.
Imho, it's a wrong way of handling this exception, it should be at least
logged.

And now about the reason of having this ObjectNotFoundException. It's
actually quite simple. The SlideToken I was using didn't have its store
enlistment flag mutator set to true. As a result the retrieveObject
method failed to find the object - the creation transaction hadn't
been committed at that moment. So I just set this flag to true:

slideToken.setForceStoreEnlistment(true);

and the problem was solved. I hope it'll work for you as well. And why
did it worked in the 2.0 release? I have noticed certain changes in the
store method in the org.apache.slide.structure.StructureImpl class that
might have caused this error but I haven't looked into them.

Yours sincerely,
Andrey.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Errors when creating a new node

2005-04-12 Thread Julien Viet
I solved the same issue. Took me a while to understand that by tracing 
the code.

Has anybody worked on a wrapper for the Slide API (that does not use 
webdav) in order to simplify it and make it look like a  filesystem usage ?

Brusic, Ivan wrote:
Andrey,
Thanks for following up.  Martin Kalén posted the same solution back on
Friday (thread called Problem creating Objects), but I did not have a
chance to test it out yet.   Reading his description, it appeared that
his solution would work, and I am glad you came to the same conclusion.
I also noticed the changes in the store method of StructureImpl, but I
did not want to undo and modifications.
Thanks again for the help.
Ivan
-Original Message-
From: Andrey Shulinsky [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 11, 2005 8:41 PM
To: 'Slide Users Mailing List'
Subject: RE: Errors when creating a new node

Hi, Ivan!
Well, I've got the same error and fortunately found an easy way to fix
it. Here's the explanation if you're still interested.
First of all, the error that the system gives you isn't quite accurate.
When Slide tries to create a new node it calls the following methods of
the org.apache.slide.structure.StructureImpl class:
public void create(SlideToken token, ObjectNode object,String strUri)
public void store(SlideToken token, ObjectNode object) protected void
store(SlideToken token, ObjectNode object, boolean
setModificationDate)
and the last one tries to check if the active user has the appropriate
access rights (write, in fact) to the object that is being created. So
it calls the method
public void checkCredentials(SlideToken token, ObjectNode object,
ActionNode
action)
of the org.apache.slide.security.SecurityImpl class which, in turn,
tries to find the object:
ObjectNode realObject = objectUri.getStore().retrieveObject(objectUri);
And this very call failed for me throwing up the
ObjectNotFoundException. This exception is caught in the same method,
swallowed and the familiar AccessDeniedException is thrown instead.
Imho, it's a wrong way of handling this exception, it should be at least
logged.
And now about the reason of having this ObjectNotFoundException. It's
actually quite simple. The SlideToken I was using didn't have its store
enlistment flag mutator set to true. As a result the retrieveObject
method failed to find the object - the creation transaction hadn't
been committed at that moment. So I just set this flag to true:
slideToken.setForceStoreEnlistment(true);
and the problem was solved. I hope it'll work for you as well. And why
did it worked in the 2.0 release? I have noticed certain changes in the
store method in the org.apache.slide.structure.StructureImpl class that
might have caused this error but I haven't looked into them.
Yours sincerely,
Andrey.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


--
Julien Viet
JBoss Portal Lead Developer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Bind question ( Bound to be a file ? ;) )

2005-04-12 Thread Paul Hussein
Hi,
Was wondering if there was a quick way to know if a file/collection is 
real collection/file or a link ( bind ) item.

Cheers
Paul.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Errors when creating a new node

2005-04-12 Thread Andrey Shulinsky
Hello! 

 Has anybody worked on a wrapper for the Slide API (that does not use
 webdav) in order to simplify it and make it look like a  
 filesystem usage ?

We have developed such a wrapper layer, it's not complete (implements jut
the basic methods and versioning) and somewhat specific to our needs though.
And the more I work on it the less comfortable I feel - especially when
upgrading Slide. This time I've noticed that in Slide 2.1 certain core
classes do now require certain data from the webdav layer (see the
org.apache.slide.search package, SlideUri class for instance). Therefore it
becomes increasingly difficult to adapt our wrapper... 

Yours sincerely,
Andrey.

 
 Brusic, Ivan wrote:
 
 Andrey,
 
 Thanks for following up.  Martin Kalén posted the same 
 solution back on 
 Friday (thread called Problem creating Objects), but I did 
 not have a
 chance to test it out yet.   Reading his description, it 
 appeared that
 his solution would work, and I am glad you came to the same 
 conclusion.
 I also noticed the changes in the store method of 
 StructureImpl, but I 
 did not want to undo and modifications.
 
 Thanks again for the help.
 
 Ivan
 
 -Original Message-
 From: Andrey Shulinsky [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 11, 2005 8:41 PM
 To: 'Slide Users Mailing List'
 Subject: RE: Errors when creating a new node
 
 
 Hi, Ivan!
 
 Well, I've got the same error and fortunately found an easy 
 way to fix 
 it. Here's the explanation if you're still interested.
 
 First of all, the error that the system gives you isn't 
 quite accurate.
 When Slide tries to create a new node it calls the following 
 methods of 
 the org.apache.slide.structure.StructureImpl class:
 
 public void create(SlideToken token, ObjectNode 
 object,String strUri) 
 public void store(SlideToken token, ObjectNode object) 
 protected void 
 store(SlideToken token, ObjectNode object, boolean
 setModificationDate)
 
 and the last one tries to check if the active user has the 
 appropriate 
 access rights (write, in fact) to the object that is being 
 created. So 
 it calls the method
 
 public void checkCredentials(SlideToken token, ObjectNode object, 
 ActionNode
 action)
 
 of the org.apache.slide.security.SecurityImpl class which, in turn, 
 tries to find the object:
 
 ObjectNode realObject = 
 objectUri.getStore().retrieveObject(objectUri);
 
 And this very call failed for me throwing up the 
 ObjectNotFoundException. This exception is caught in the 
 same method, 
 swallowed and the familiar AccessDeniedException is thrown instead.
 Imho, it's a wrong way of handling this exception, it should be at 
 least logged.
 
 And now about the reason of having this 
 ObjectNotFoundException. It's 
 actually quite simple. The SlideToken I was using didn't 
 have its store 
 enlistment flag mutator set to true. As a result the retrieveObject 
 method failed to find the object - the creation transaction hadn't 
 been committed at that moment. So I just set this flag to true:
 
 slideToken.setForceStoreEnlistment(true);
 
 and the problem was solved. I hope it'll work for you as 
 well. And why 
 did it worked in the 2.0 release? I have noticed certain 
 changes in the 
 store method in the org.apache.slide.structure.StructureImpl 
 class that 
 might have caused this error but I haven't looked into them.
 
 Yours sincerely,
 Andrey.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 --
 Julien Viet
 JBoss Portal Lead Developer
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bind question ( Bound to be a file ? ;) )

2005-04-12 Thread Julian Reschke
Paul Hussein wrote:
Hi,
Was wondering if there was a quick way to know if a file/collection is 
real collection/file or a link ( bind ) item.
As far as the BIND spec is concerned, there is no difference.
Best regards, Julian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Slide, Dasl and pdf

2005-04-12 Thread Eirikur Hrafnsson
On 12.4.2005, at 13:19, Edmund Urbani wrote:
Bertrand Tignon wrote:
Thank u for replying Edmund.
Well, I'm using Slide 2.1
I didn't manage to get the Slide 2.2 via cvs. I read the how-to but 
I
don't see the 2.2 version, is it called Slide_HEAD_PRE_MERGE, or
SLIDE_HEAD_AFTER_EVENTS or something like that ?
About the wiki DASL Configuration, I don't know how to get the 
lucene
library needed (package org.apache.slide.index.*).
thanx for your help
Bertrand.
There is no 2.2 release, yet. The closest you get to 2.2 is the current
CVS HEAD.
That org.apache.slide.index package is in slide-stores-2.x.jar. It's 
there
even in 2.1, even though it appearantly does not work.

Maybe I should ask a different question on this list:
Does the LuceneIndexer that is currently in CVS HEAD work?
It does, the version in 2.1 does not.
-Eiki

 Edmund
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Best Regards
Eirikur S. Hrafnsson, [EMAIL PROTECTED]
Chief Software Engineer
Idega Software
http://www.idega.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Bind question ( Bound to be a file ? ;) )

2005-04-12 Thread Miguel Figueiredo
Hello,

 From my experience with the bind store, the first DAV:parent child in a
DAV:parent-set element is the 'real' or original resource. If a bind is
created to this same resource, a second DAV:parent child is added, but no
difference is made between them exists, witch is the justification of
Reschke statement. That's even worse: if you erase the ‘original’, only the
‘bind’ resource is left, so it becames the ‘original’ resource :P

 In my project we solved this problem by making a propatch before making a
bind of a resource, where we would store the original resource URI in the
resource to be binded. Since the properties are shared by all binds, that
means we can distinguish what is a bind and the original resource.

Hope this helps,
Miguel Figueiredo

___

-Original Message-
From: Julian Reschke [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 12 de Abril de 2005 17:13
To: Slide Users Mailing List
Subject: Re: Bind question ( Bound to be a file ? ;) )

Paul Hussein wrote:
 Hi,
 
 Was wondering if there was a quick way to know if a file/collection is 
 real collection/file or a link ( bind ) item.

As far as the BIND spec is concerned, there is no difference.


Best regards, Julian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Bind question ( Bound to be a file ? ;) )

2005-04-12 Thread Julian Reschke
Miguel Figueiredo wrote:
Hello,
 From my experience with the bind store, the first DAV:parent child in a
DAV:parent-set element is the 'real' or original resource. If a bind is
created to this same resource, a second DAV:parent child is added, but no
difference is made between them exists, witch is the justification of
Reschke statement. That's even worse: if you erase the original, only the
bind resource is left, so it becames the original resource :P
That's not worse, that's the whole point of it.
 In my project we solved this problem by making a propatch before making a
bind of a resource, where we would store the original resource URI in the
resource to be binded. Since the properties are shared by all binds, that
means we can distinguish what is a bind and the original resource.
There is no original resource. Actually, there is only resource. The 
BIND mechanism is about mapping multiple URIs to the same resource, so 
the only question you could ask is what is the binding under which the 
resource originally was created?

Best regards, Julian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]