ACL : all privileges set, but can't add files

2007-01-03 Thread claire déprez
Hello,
I manupulate the ACL, and I've got a problem, then I really don't anderstand : 
to a user (/slide/users/toto) , I give all rights ( ALL ) . I can list files, 
open files,  BUT if I try to add a file or create a folder, I obtain a 403 
error : forbidden : access denied  !
Is there somebody who has already obtain the type of problem?
Thank you,
Claire D.





__
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible 
contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 

Re: ACL : all privileges set, but can't add files

2007-01-03 Thread Olivier Etienne

Hi Claire,

I already add the same problem, and it came for a misunderstood of mine
about the right management policy. The best way to check which rights are
set is to take a look at the database table content.

Olivier

2007/1/3, Claire D. [EMAIL PROTECTED]:


Hello,
I manupulate the ACL, and I've got a problem, then I really don't
anderstand
:
to a user (/slide/users/toto) , I give all rights ( ALL ) . He can list
files, open files, BUT if he tries to add a file or create a folder, I
obtain a 403 error : forbidden : access denied  !
Is there somebody who has already obtained the type of problem?
Thank you,
Claire D.







RE: ACL : all privileges set, but can't add files

2007-01-03 Thread Miguel Figueiredo

Hello Claire, Olivier,

 I believe you found a known bug in Slide implementation.

 Checkout this links:
 http://issues.apache.org/bugzilla/show_bug.cgi?id=32352
 http://issues.apache.org/bugzilla/show_bug.cgi?id=37022

 Best Regards,
 Miguel Figueiredo

-Original Message-
From: Olivier Etienne [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 3 de Janeiro de 2007 8:48
To: Slide Users Mailing List
Subject: Re: ACL : all privileges set, but can't add files

Hi Claire,

I already add the same problem, and it came for a misunderstood of mine
about the right management policy. The best way to check which rights are
set is to take a look at the database table content.

Olivier

2007/1/3, Claire D. [EMAIL PROTECTED]:

 Hello,
 I manupulate the ACL, and I've got a problem, then I really don't
 anderstand
 :
 to a user (/slide/users/toto) , I give all rights ( ALL ) . He can list
 files, open files, BUT if he tries to add a file or create a folder, I
 obtain a 403 error : forbidden : access denied  !
 Is there somebody who has already obtained the type of problem?
 Thank you,
 Claire D.







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



RE: ACL : all privileges set, but can't add files

2007-01-03 Thread Claire D.
Hi,
Thank you for your answers.
I'm not sure that I've exactly the same error, because I don't give rights
to the owner of the folder, but to a user (from /users). If I give all
rights to a role, it's the same problem. Only root can do what he wants.
I look at the database table content, and it's well stored.
How solves it?

Claire D.
 



-Message d'origine-
De : Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 3 janvier 2007 10:29
À : 'Slide Users Mailing List'
Objet : RE: ACL : all privileges set, but can't add files


Hello Claire, Olivier,

 I believe you found a known bug in Slide implementation.

 Checkout this links:
 http://issues.apache.org/bugzilla/show_bug.cgi?id=32352
 http://issues.apache.org/bugzilla/show_bug.cgi?id=37022

 Best Regards,
 Miguel Figueiredo

-Original Message-
From: Olivier Etienne [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 3 de Janeiro de 2007 8:48
To: Slide Users Mailing List
Subject: Re: ACL : all privileges set, but can't add files

Hi Claire,

I already add the same problem, and it came for a misunderstood of mine
about the right management policy. The best way to check which rights are
set is to take a look at the database table content.

Olivier

2007/1/3, Claire D. [EMAIL PROTECTED]:

 Hello,
 I manupulate the ACL, and I've got a problem, then I really don't
 anderstand
 :
 to a user (/slide/users/toto) , I give all rights ( ALL ) . He can list
 files, open files, BUT if he tries to add a file or create a folder, I
 obtain a 403 error : forbidden : access denied  !
 Is there somebody who has already obtained the type of problem?
 Thank you,
 Claire D.







-
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]



How to build slide using Ant

2007-01-03 Thread rohitajm

Hi all,

Please help me to build Slide using Ant.

I have slide sources and want to build it by running a ant file, followed by
creating war/jar file.

What steps should I take for this?

Thanks

-Rohit
-- 
View this message in context: 
http://www.nabble.com/How-to-build-slide-using-Ant-tf2912930.html#a8139110
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


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



URL encoding

2007-01-03 Thread Árni Arent

Hi,

My webdav client (using slide) is trying to connect to a URL that is 
something like this:

http://myhost.com/users/[EMAIL PROTECTED]/images

The path being /users/[EMAIL PROTECTED]/images

The '@' character is causing errors. Appearently, the webdav server does 
not like how it's encoded... but the client library converts this 
character into '%2540'... before the http request is sent. I sniffed the 
packets using ethereal, and discovered that using another webdav client 
the server accepts '@' encoded as '%40'.


I tried to replace the '@' with '%40' in the path (hardcoded hack test), 
but then the slide client lib converts it into '%252540'. Seems like 
it's encoding the '%' character.


Isn't there a way to control how the slide library encodes this?

I noticed a deprecated setEncodeURLs(boolean) method in WebdavResource, 
I tried it but it did nothing.


Summary:
My error is: Got status code 409, on propfind using 
/users/john%2540myhost.com/images

Needs to be: /users/john%40myhost.com/images

--
Kveðjur

Árni Arent
[EMAIL PROTECTED]


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



Re: ACL : all privileges set, but can't add files

2007-01-03 Thread Olivier Etienne

I thik that the first thing to do is to recreate your database from the
domain.xlm because if you made many tests by changing your domain.xml, slide
have certainly poluted your database. Slide checks and apply any
modification found in this file at each startup BUT it only create new nodes
and never drop them even if they are not anymore in the domain.xml.
Then, the first step is to drop your database and to populate it from your
domain.xml then you will be sure that the user definition in your DB is
equal to what is described in domain.xml.
If it still don't work, there's 2 solutions :
 1) Your rights definition is not correct
 2) It's a Slide BUG, gloups...

But, I use slide and I succeed creating users with restrictions on some
folders (read-only) and full access on others then keep the faith ;)

2007/1/3, Claire D. [EMAIL PROTECTED]:


Hi,
Thank you for your answers.
I'm not sure that I've exactly the same error, because I don't give rights
to the owner of the folder, but to a user (from /users). If I give all
rights to a role, it's the same problem. Only root can do what he wants.
I look at the database table content, and it's well stored.
How solves it?

Claire D.




-Message d'origine-
De: Miguel Figueiredo [mailto:[EMAIL PROTECTED]
Envoyé: mercredi 3 janvier 2007 10:29
À: 'Slide Users Mailing List'
Objet: RE: ACL : all privileges set, but can't add files


Hello Claire, Olivier,

I believe you found a known bug in Slide implementation.

Checkout this links:
http://issues.apache.org/bugzilla/show_bug.cgi?id=32352
http://issues.apache.org/bugzilla/show_bug.cgi?id=37022

Best Regards,
Miguel Figueiredo

-Original Message-
From: Olivier Etienne [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 3 de Janeiro de 2007 8:48
To: Slide Users Mailing List
Subject: Re: ACL : all privileges set, but can't add files

Hi Claire,

I already add the same problem, and it came for a misunderstood of mine
about the right management policy. The best way to check which rights are
set is to take a look at the database table content.

Olivier

2007/1/3, Claire D. [EMAIL PROTECTED]:

 Hello,
 I manupulate the ACL, and I've got a problem, then I really don't
 anderstand
 :
 to a user (/slide/users/toto) , I give all rights ( ALL ) . He can list
 files, open files, BUT if he tries to add a file or create a folder, I
 obtain a 403 error : forbidden : access denied  !
 Is there somebody who has already obtained the type of problem?
 Thank you,
 Claire D.







-
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]




Asynchron indexing memory overflow

2007-01-03 Thread Jimmy Monin

Hi all,

We use Tomcat and Slide in one of our major applications, and we came 
across a known problem with asynchron indexing : files to index are all 
stored in memory! So we implemented a little patch to circumvent this. 
Basically, we don't pass any file content in argument any more (no more 
InputStream field in the IndexJob class) ; we rather user the 
corresponding Uri, from which the content is  retrieved when indexing. 
This way, there's always only one file to index in memory.
As we had made some other changes to the same classes to customize Slide 
to our needs, I had to do some merges (gasp). I know it compiles 
successfully, but I have hardly any time to test it.

Anyway, I hope it'll come in handy to someone.

Cheers,

--
Jimmy Monin
EADS DSS SAS

--- stores/org/apache/slide/index/lucene/Index.java.orig2006-02-14 
12:00:06.0 +0100
+++ stores/org/apache/slide/index/lucene/Index.java 2007-01-03 
16:06:16.260018988 +0100
@@ -50,12 +50,14 @@
 import org.apache.slide.common.PropertyName;
 import org.apache.slide.common.Uri;
 import org.apache.slide.content.NodeProperty;
+import org.apache.slide.content.NodeRevisionContent;
 import org.apache.slide.content.NodeRevisionDescriptor;
 import org.apache.slide.content.NodeRevisionNumber;
 import org.apache.slide.extractor.ContentExtractor;
 import org.apache.slide.extractor.ExtractorException;
 import org.apache.slide.extractor.ExtractorManager;
 import org.apache.slide.search.IndexException;
+import org.apache.slide.store.Store;
 import org.apache.slide.util.logger.Logger;
 
 /**
@@ -238,20 +240,19 @@
 * @param descriptor
 *properties to be indexed
 */
-   private Document createLuceneDocument(String uri,
-   NodeRevisionDescriptor descriptor) {
-
-   Document doc = new Document();
-
-   doc.add(unstoredString(Index.KEY_FIELD_NAME, 
configuration.generateKey(
-   uri, descriptor.getRevisionNumber(;
-   doc.add(storedString(Index.URI_FIELD_NAME, uri));
+private Document createLuceneDocument(Uri uri, NodeRevisionDescriptor 
descriptor) {
+
+Document doc = new Document();
+
+doc.add(unstoredString(Index.KEY_FIELD_NAME, 
+configuration.generateKey(uri.toString(), 
descriptor.getRevisionNumber(;
+doc.add(storedString(Index.URI_FIELD_NAME, uri.toString()));
doc.add(storedString(Index.REVISION_FIELD_NAME, descriptor
.getRevisionNumber().toString()));
 
// scopes
-   StringTokenizer tokenizer = new StringTokenizer(uri, /);
-   StringBuffer buffer = new StringBuffer(uri.length());
+   StringTokenizer tokenizer = new StringTokenizer(uri.toString(), 
/);
+   StringBuffer buffer = new StringBuffer(uri.toString().length());
doc.add(unstoredString(Index.SCOPE_FIELD_NAME, /));
int depth = 0;
for (; tokenizer.hasMoreTokens();) {
@@ -327,20 +328,20 @@
/**
 * Creates a lucene document for content indexing.
 */
-   private Document createLuceneDocument(String uri,
-   NodeRevisionDescriptor descriptor, InputStream content)
+private Document createLuceneDocument(Uri uri, 
+NodeRevisionDescriptor descriptor, boolean isIndexContent) 
throws IndexException, ExtractorException {
Document doc = new Document();
 
doc.add(unstoredString(Index.KEY_FIELD_NAME, 
configuration.generateKey(
-   uri, descriptor.getRevisionNumber(;
-   doc.add(storedString(Index.URI_FIELD_NAME, uri));
+   uri.toString(), 
descriptor.getRevisionNumber(;
+   doc.add(storedString(Index.URI_FIELD_NAME, uri.toString()));
doc.add(storedString(Index.REVISION_FIELD_NAME, descriptor
.getRevisionNumber().toString()));
 
// scopes
-   StringTokenizer tokenizer = new StringTokenizer(uri, /);
-   StringBuffer buffer = new StringBuffer(uri.length());
+   StringTokenizer tokenizer = new StringTokenizer(uri.toString(), 
/);
+   StringBuffer buffer = new StringBuffer(uri.toString().length());
doc.add(unstoredString(Index.SCOPE_FIELD_NAME, /));
int depth = 0;
for (; tokenizer.hasMoreTokens();) {
@@ -352,12 +353,35 @@
.intToIndexString(depth)));
 
List extractors = 
ExtractorManager.getInstance().getContentExtractors(
-   configuration.getNamespaceName(), uri, 
descriptor);
+configuration.getNamespaceName(), uri.toString(), descriptor);
+
+// We get the content from the URI
+
+

RE: ACL : all privileges set, but can't add files

2007-01-03 Thread Miguel Figueiredo
Hello Claire,

 Did you check the second link? It almost explains the same bug you
described. The difference is that you didn’t said that in one of the parent
folders, the user did not had read privileges.

 The bug is just that: if in any part of a folder parent tree, a user does
not have read priv, from that point down in the folder tree, the user will
not be able to create any new file or folder.

 I don’t know when the bug will be corrected, and not seeing progress on it
for some long time now. I already tried to correct it, but due to lack of
time and hard time to figure out a solution that wouldn't break any other
thing in Slide code, the bug still runs wild.

Best Regards,
Miguel
 

-Original Message-
From: Claire D. [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 3 de Janeiro de 2007 11:11
To: 'Slide Users Mailing List'
Subject: RE: ACL : all privileges set, but can't add files

Hi,
Thank you for your answers.
I'm not sure that I've exactly the same error, because I don't give rights
to the owner of the folder, but to a user (from /users). If I give all
rights to a role, it's the same problem. Only root can do what he wants.
I look at the database table content, and it's well stored.
How solves it?

Claire D.
 



-Message d'origine-
De : Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 3 janvier 2007 10:29
À : 'Slide Users Mailing List'
Objet : RE: ACL : all privileges set, but can't add files


Hello Claire, Olivier,

 I believe you found a known bug in Slide implementation.

 Checkout this links:
 http://issues.apache.org/bugzilla/show_bug.cgi?id=32352
 http://issues.apache.org/bugzilla/show_bug.cgi?id=37022

 Best Regards,
 Miguel Figueiredo

-Original Message-
From: Olivier Etienne [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 3 de Janeiro de 2007 8:48
To: Slide Users Mailing List
Subject: Re: ACL : all privileges set, but can't add files

Hi Claire,

I already add the same problem, and it came for a misunderstood of mine
about the right management policy. The best way to check which rights are
set is to take a look at the database table content.

Olivier

2007/1/3, Claire D. [EMAIL PROTECTED]:

 Hello,
 I manupulate the ACL, and I've got a problem, then I really don't
 anderstand
 :
 to a user (/slide/users/toto) , I give all rights ( ALL ) . He can list
 files, open files, BUT if he tries to add a file or create a folder, I
 obtain a 403 error : forbidden : access denied  !
 Is there somebody who has already obtained the type of problem?
 Thank you,
 Claire D.







-
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]


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



RE: ACL : all privileges set, but can't add files

2007-01-03 Thread Claire D.
Hello Miguel,

I hope you're wrong! I'm dropping everything, and installing slide a new
time. I'll make others tests, and if that's always like this, I'll conclude
that I'm a new victim of this bug.

Thank you very much,
Claire



-Message d'origine-
De : Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 3 janvier 2007 17:29
À : 'Slide Users Mailing List'
Objet : RE: ACL : all privileges set, but can't add files

Hello Claire,

 Did you check the second link? It almost explains the same bug you
described. The difference is that you didn’t said that in one of the parent
folders, the user did not had read privileges.

 The bug is just that: if in any part of a folder parent tree, a user does
not have read priv, from that point down in the folder tree, the user will
not be able to create any new file or folder.

 I don’t know when the bug will be corrected, and not seeing progress on it
for some long time now. I already tried to correct it, but due to lack of
time and hard time to figure out a solution that wouldn't break any other
thing in Slide code, the bug still runs wild.

Best Regards,
Miguel
 

-Original Message-
From: Claire D. [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 3 de Janeiro de 2007 11:11
To: 'Slide Users Mailing List'
Subject: RE: ACL : all privileges set, but can't add files

Hi,
Thank you for your answers.
I'm not sure that I've exactly the same error, because I don't give rights
to the owner of the folder, but to a user (from /users). If I give all
rights to a role, it's the same problem. Only root can do what he wants.
I look at the database table content, and it's well stored.
How solves it?

Claire D.
 



-Message d'origine-
De : Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 3 janvier 2007 10:29
À : 'Slide Users Mailing List'
Objet : RE: ACL : all privileges set, but can't add files


Hello Claire, Olivier,

 I believe you found a known bug in Slide implementation.

 Checkout this links:
 http://issues.apache.org/bugzilla/show_bug.cgi?id=32352
 http://issues.apache.org/bugzilla/show_bug.cgi?id=37022

 Best Regards,
 Miguel Figueiredo

-Original Message-
From: Olivier Etienne [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 3 de Janeiro de 2007 8:48
To: Slide Users Mailing List
Subject: Re: ACL : all privileges set, but can't add files

Hi Claire,

I already add the same problem, and it came for a misunderstood of mine
about the right management policy. The best way to check which rights are
set is to take a look at the database table content.

Olivier

2007/1/3, Claire D. [EMAIL PROTECTED]:

 Hello,
 I manupulate the ACL, and I've got a problem, then I really don't
 anderstand
 :
 to a user (/slide/users/toto) , I give all rights ( ALL ) . He can list
 files, open files, BUT if he tries to add a file or create a folder, I
 obtain a 403 error : forbidden : access denied  !
 Is there somebody who has already obtained the type of problem?
 Thank you,
 Claire D.







-
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]


-
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]