RE: Need Help: Sending Parameters

2004-08-31 Thread Ragia
Hello All,

I found a solution, and thought you might be interested :)

Take a look on this
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors
/overview/webfolder.asp

This is how to enable Web Folder behaviors.

Regards,

Rooja


-Original Message-
From: Ragia [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 29, 2004 10:21 AM
To: 'Slide Users Mailing List'
Subject: RE: Need Help: Sending Parameters

Hi James, Hi All,

Thanx for the reply! :)

Well, I tried what u suggested, and I found that: in case I don't check the
WebFolder checkbox, the parameters are passed fine and slide homepage is
displayed through IE (which is not my aim), But when I check the WebFolder
checkbox, normally slide opens in a WebFolder but the parameters are all set
to null, also the url comes without the parameters I added. I traced the req
object and found its parameters Map is empty :(

Any advice?

Regards,

Rooja


-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 3:25 AM
To: Slide Users Mailing List
Subject: Re: Need Help: Sending Parameters

If you go to File  Open and add the parameters there (be sure to check the
little web folders box) it should work.

-James

Ragia wrote:
 Hello All,
  
  Am facing a problem sending parameters to the WebDAV Servlet. 
 Using a windows web folder, it is not possible to create a web folder 
 with parameters passed through the URL, ex:
 http://ragia:/webapp/slide?test=1
 . When I open an already created WebFolder and then add parameters 
 through the URL, the WebFolder is automatically converted to an 
 Internet Explorer and loses the DAV mode. I thought of prompting an 
 http dialog to get the parameters upon folder opening although I 
 didn't succeed either. is there a way to do so?
  
 Any help would be highly appreciated.
  
 Thanx in advance.
  
 rooja
 

-
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: Can WebDAV servlet serve non-slide-managed filesystem?

2004-08-31 Thread alon salant
I've decided to take an initial step of stubbing out my
SimpleFileStore implementation and deploying it in my webapp.

I started with the Domain.sample file from the 2.1b1 distribution and
modified the namespace definition as follows:

definition
  store name=files
nodestore classname=photospace.slide.SimpleFileStore
  parameter name=rootpathstore/metadata/parameter
/nodestore
contentstore classname=photospace.slide.SimpleFileStore
  parameter name=rootpathstore/content/parameter
/contentstore
securitystore
classname=org.apache.slide.store.mem.TransientSecurityStore/
lockstore classname=org.apache.slide.store.mem.TransientLockStore/
revisiondescriptorsstore
classname=org.apache.slide.store.mem.TransientDescriptorsStore/
revisiondescriptorstore
classname=org.apache.slide.store.mem.TransientDescriptorStore/
  /store
  scope match=/ store=files/
/definition

SimpleFileStore implements NodeStore and ContentStore. This
configuration deploys without error.

  Is SubjectNode an
  appropriate ObjectNode implementation to return from retrieveObject(
  )?
 
 Yes.

I did find that retrieveObject( ) needs to return an ActionNode not
SubjectNode for NamespaceConfig.getActionNode( ) which was being
called in slide startup. I was getting a ClassCastException. So should
I always return an ActionNode from retrieveObject( )? What's the
difference from a SubjectNode?

I have the slide WebDAV servlet configured and starting up without
errors and with directory browsing turned on. However, when I browse
to the servlet url, I get a 403 and a single log line from slide:

  http-8080-Processor25, 30-Aug-2004 23:43:47, unauthenticated, GET,
403 Forbidden, 47 ms, /

Note that I have not removed the sample namespace configuration or
data from the Domain.sample file that I started with. Reading this
file, I'm not sure what is necessary and what does not apply. I'm
guessing that most of the configuration is necessary and that the info
in the data element can go. Correct?

Any thoughts on how to get past my 403?

Alon

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



Re: Can WebDAV servlet serve non-slide-managed filesystem?

2004-08-31 Thread alon salant
Okay, I've partially answered one of my questions.

Playing around and reading the config more carefully, I replaced the
sample data element configuration with

data
  objectnode classname=org.apache.slide.structure.SubjectNode uri=/
permission action=all subject=all inheritable=true/
  /objectnode
/data

and can now directory browse through the webdav servlet. All I see is
an empty root directory which is what I expect based on my initial
SimpleFileStore implementation.

Mapping a web folder from win xp is claiming that the folder you
entered does not appear to be valid but I have not looked in to this
yet.

I am curious to know what of of the namespace configuration element is
required for what I am trying to do.

Alon

On Tue, 31 Aug 2004 00:06:29 -0700, alon salant [EMAIL PROTECTED] wrote:
 I've decided to take an initial step of stubbing out my
 SimpleFileStore implementation and deploying it in my webapp.
 
 I started with the Domain.sample file from the 2.1b1 distribution and
 modified the namespace definition as follows:
 
 definition
   store name=files
 nodestore classname=photospace.slide.SimpleFileStore
   parameter name=rootpathstore/metadata/parameter
 /nodestore
 contentstore classname=photospace.slide.SimpleFileStore
   parameter name=rootpathstore/content/parameter
 /contentstore
 securitystore
 classname=org.apache.slide.store.mem.TransientSecurityStore/
 lockstore classname=org.apache.slide.store.mem.TransientLockStore/
 revisiondescriptorsstore
 classname=org.apache.slide.store.mem.TransientDescriptorsStore/
 revisiondescriptorstore
 classname=org.apache.slide.store.mem.TransientDescriptorStore/
   /store
   scope match=/ store=files/
 /definition
 
 SimpleFileStore implements NodeStore and ContentStore. This
 configuration deploys without error.
 
   Is SubjectNode an
   appropriate ObjectNode implementation to return from retrieveObject(
   )?
 
  Yes.
 
 I did find that retrieveObject( ) needs to return an ActionNode not
 SubjectNode for NamespaceConfig.getActionNode( ) which was being
 called in slide startup. I was getting a ClassCastException. So should
 I always return an ActionNode from retrieveObject( )? What's the
 difference from a SubjectNode?
 
 I have the slide WebDAV servlet configured and starting up without
 errors and with directory browsing turned on. However, when I browse
 to the servlet url, I get a 403 and a single log line from slide:
 
   http-8080-Processor25, 30-Aug-2004 23:43:47, unauthenticated, GET,
 403 Forbidden, 47 ms, /
 
 Note that I have not removed the sample namespace configuration or
 data from the Domain.sample file that I started with. Reading this
 file, I'm not sure what is necessary and what does not apply. I'm
 guessing that most of the configuration is necessary and that the info
 in the data element can go. Correct?
 
 Any thoughts on how to get past my 403?
 
 Alon


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



Re: CVS label for the Slide 2.1 beta?

2004-08-31 Thread Ingo Brunberg
Then please try with the latest version from CVS. There was a problem
in the CLI that got fixed yesterday.

Ingo

 I'll see if I can track it down. I had the problem with 2.1M1 too and it was
 still there in 2.1b1. If I remember rightly I could reproduce it with the
 CLI program so I'll see if that's the case.
 
 Warwick
 
 
 
 -Original Message-
 From: Ingo Brunberg [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 30, 2004 11:08 AM
 To: [EMAIL PROTECTED]
 Subject: Re: CVS label for the Slide 2.1 beta?
 
 
  Ok. The changes that I saw in the head were actually more widespread 
  than just the DB2RDBMSAdapter module so, now that you mention it, they 
  are probably new feature changes. So I'll do my deltas with the 
  SLIDE_2_1_RELEASE_BRANCH.
  
  BTW, I noticed one of the fixes I submitted has been applied to the 
  tree already. Have the others been reviewed/applied too?
 
 No, lets say I had a look at them. The one I applied was the most obvious.
 
 Another one shall correct the handling of resources with spaces in the
 names. But I cannot see where the current implementation is wrong. Do you
 have a concrete example of the erroneous behaviour you describe? I would
 like to see the captured traffic of the client - server conversation.
 
 Regards,
 Ingo
 
  
  Thanks,
  Warwick
  
  
  
  -Original Message-
  From: James Mason [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 27, 2004 6:49 PM
  To: Slide Users Mailing List
  Subject: Re: CVS label for the Slide 2.1 beta?
  
  
  Bug fixes should be in the 2.1 Release branch. If there are bug fixes
  that are only in HEAD someone needs to get a scolding :). There may be 
  some new feature in HEAD that won't be part of the 2.1 release, but 
  otherwise you're certainly free to use that code.
  
  It would be best (for the community) if you used the 2.1 release 
  branch,
  since that should help work as many bugs out of it as possible. If you 
  see any bug fixes that have been applied to HEAD but not the release 
  branch let me know and I'll merge them.
  
  -James
  
  Warwick Burrows wrote:
   Ok. I thought that updating the tree would be enough to pick those
   extra branches up but it wasn't :-)  I finally stumbled upon the way 
   to do it and added the extra labels to my choices.
   
   So given that, where should I be picking up 2.1 bug fixes? From the
   SLIDE_2_1_RELEASE_BRANCH or from the HEAD? I compared the two and the 
   HEAD has the latest rev numbers (obviously) and some changes that 
   aren't in the SLIDE_2_1_RELEASE_BRANCH. I saw a bug fix to the DB2 
   adapter in there for instance. So is the HEAD the one to pull updates 
   from?
   
   Thanks,
   Warwick
   
   
   
   -Original Message-
   From: Warwick Burrows
   Sent: Friday, August 27, 2004 10:52 AM
   To: 'Slide Users Mailing List'
   Subject: RE: CVS label for the Slide 2.1 beta?
   
   
   
   James, I'm using the eclipse CVS client (v2.1.1 it seems) and it
   doesn't show either of these branches or labels. I'm connecting with 
   :pserver:[EMAIL PROTECTED]:/home/cvspublic. The only branches it 
   lists
   are: 
   
 SLIDE_1_0
 SLIDE_2_0_RELEASE_BRANCH 
 SLIDE_2_1_EXTERNAL_TX
   
   There are more versions listed - which may correspond to labels -
   but the latest for 2.1 is SLIDE_2_1_M1_RELEASE.  Why am I not seeing 
   these other branches??
   
   Thanks,
   Warwick
   
   
   
   ---
Warwick Burrows  E2open
Senior Engineer  9600 Great Hills Trail, #325
http://www.e2open.comAustin TX 78759
   ---
   
   
   -Original Message-
   From: James Mason [mailto:[EMAIL PROTECTED]
   Sent: Friday, August 27, 2004 1:30 AM
   To: Slide Users Mailing List
   Subject: Re: CVS label for the Slide 2.1 beta?
   
   
   Warwick,
   
   We're working off the SLIDE_2_1_RELEASE_BRANCH. There's also a 
   SLIDE_2_1_BETA1_RELEASE version, if you want a snapshot.
   
   If you're using Eclipse be sure to update your branches and version 
   to get the latest ones. There's instructions on the Slide site for 
   doing this if you've forgotten how (I know I have several times).
   
   -James
   
   Warwick Burrows wrote:
   
   
  What's the label in CVS that signifies the 2.1 beta release?  I 
  don't see one in there that stands out.
   
  Thanks,
  Warwick
   
  
  http://www.e2open.com/
  
  
  --
  --
  
  Warwick Burrows
  Senior Software Engineer
  

  
   
  

  
  *Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  *Fax:   *512.343.8727
  

  
   
  

  
  9600 Great Hills Trail, #325
  Austin, TX  78759
  http://www.e2open.com http://www.e2open.com/
  
  
  --
  --
  
   
   
   
   

Re: AW: A question on security configuration

2004-08-31 Thread Stefan Lützkendorf
Hi Burrow, yes, I think you are right.
Stefan
Warwick Burrows wrote:
Hi Stefan,
Ok so we will actually have something like this? 

/history/h1 [Fred.doc]  1st doc
/history/h2 [Barney.doc]2nd doc
.
.
.
/history/1/h1 [Benny.doc]   11th doc
/history/1/h2 [Jack.doc]12th doc
/history/1/h3 [Jill.doc]13th doc
.
.
.
/history/1/2/h2 [Nigella.doc]   122nd doc
/history/1/2/h3 [Nigel.doc] 123rd doc
Ie. the leaf nodes of the folder structure that represent the history
folders (and not just containers) of the hierarchy are always named h?
where ? is their history file number MOD 10. The dirs names in between are
numbered with no letters?  In this case then if I want to delete Fred.doc
then I will only delete /history/h1 so this hack will still work for me.
Thanks,
Warwick
-Original Message-
From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 30, 2004 11:22 AM
To: Slide Users Mailing List
Subject: Re: AW: A question on security configuration

Seems I was not exact, the history urls with hack have the form
/history/1/h2   (instead of /history/1/2)
/history/1/2/h3   (instead of /history/1/2/3)
so you wont delete other histories if you delete a slingle one, I think.
Stefan
Ingo Brunberg wrote:

Right, you are finding and deleting the history folder that 
corresponds to it. That means you will find and delete only 
/history/1/2/3 for example and not /history/1.

Think about it,
Ingo

Hi Stefan,
When I delete a file from my application I am currently finding and = 
deleting the history folder that corresponds to it. So if the file I'm 
deleting corresponds to /history/1 then I recursively delete 
/history/1. I recursively delete it because the Slide server does not 
allow me to = delete
individual history version files only the whole subdirectory.  But if I
enabled this hack then I could also be deleting the  history files of =
other
unrelated files is that correct? Ie. there could be a file with the =
history
file /history/1/2 and another with /history/1/2/3 ?  I would like to =
improve
my performance but it looks like it wouldn't work in my case as it =
would be
deleting possibly many other files along with the history I =
specifically
want to delete?

Thanks,
Warwick

-Original Message-
From: Stefan L=FCtzkendorf [mailto:[EMAIL PROTECTED]
Sent: Monday, August 30, 2004 8:44 AM
To: Slide Users Mailing List
Subject: Re: AW: A question on security configuration

try
parameter name=3Dhistory-collection-hacktrue/parameter in 
your=20 namespace configuration to enable this hack.

Without this hack for each versioned resource a version resource = 
history=20 collection is created that exists directly under /history. 
e.g.=20 /history/1, /history/2 ... /history/1213212 yo if you have a 
lot of=20 versiond resources that /history collection will be large 
... and slide =

has performance issures with large collections.
With that hack the versioned resource history collection will look 
like /history/1/2/1/3/2/1/2 instread of /history/121321. so the size 
of the=20 collections is limited to 10 (or 9?). But of cource you will 
have  lot=20 of colletion objects. (so I would prefer a number grater 
than 10)

It's not nicest possible solution, that's why it's called a hack (:-).
regards, Stefan
Florey, Daniel wrote:

Hi,
unfortunately I don't know how to turn this hack on. You have to=20 
search the sources for something like history hack or similar. I=20 
remember that it only affects the history folder itself, not each=20 
folder as these are representing the structure that is created by the 
=

user. So turning this hack on means to speed up slide but to decrease 
=

the readability of the history folder as subfolders get automatically 
=

created. Cheers, Daniel
=20

=20
Von: Ritu Kedia [mailto:[EMAIL PROTECTED]
Gesendet: Mo 30.08.2004 11:49
An: 'Slide Users Mailing List'
Betreff: RE: A question on security configuration
=20
=20
=20
Hi Daniel,
=20
I didn't quite understand what the hack really does. Could you please 
=

explain it again...
=20
Also does this hack apply only to the history folder or any other=20 
folder which has a large no. of children? =20
It is available from which version of Slide and how do I configure =
it?

=20
Thanks and Regards,
Ritu
=20
=20
-Original Message-
From: Florey, Daniel [mailto:[EMAIL PROTECTED]
Sent: Monday, August 30, 2004 3:10 PM
To: Slide Users Mailing List
Subject: AW: A question on security configuration
=20
=20
Hi,
as far as I'm aware of, Slide has performance problems with huge=20 
directories. This is caused by the propfind that needs to touch 
each=20 child resource and as such is very slow if a folder has many 
=
children.=20

There is a hack that prevents this in the history folder so that a=20 
nested structure with 10 children in each folder gets 
automatically=20 created. So this should be switched on if you are 
dealing with many=20 files as they otherwise will let 

RE: Need Help: Sending Parameters

2004-08-31 Thread Ragia

Hello James, 

Thanx for the reply, it seems u didn't catch my final mail below :
Thanx again :)

Hello All,
   I found a solution, and thought you might be interested :)
   Take a look on this
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors
/overview/webfolder.asp
   This is how to enable Web Folder behaviors.
Regards,
Rooja




-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 31, 2004 8:53 AM
To: Slide Users Mailing List
Subject: Re: Need Help: Sending Parameters

I can't really think of anything, sorry. My guess is the MS WebDAV client
library handle query strings. If you wrote your own client using the library
you might be able to get it to work, but that's probably beyond what you're
wanting to undertake.

What are you needing to send the parameters for? Maybe there's another way
to get the information to the server.

-James

Ragia wrote:
 Hi James, Hi All,
 
 Thanx for the reply! :)
 
 Well, I tried what u suggested, and I found that: in case I don't 
 check the WebFolder checkbox, the parameters are passed fine and slide 
 homepage is displayed through IE (which is not my aim), But when I 
 check the WebFolder checkbox, normally slide opens in a WebFolder but 
 the parameters are all set to null, also the url comes without the 
 parameters I added. I traced the req object and found its parameters 
 Map is empty :(
 
 Any advice?
 
 Regards,
 
 Rooja
 
 
 -Original Message-
 From: James Mason [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 3:25 AM
 To: Slide Users Mailing List
 Subject: Re: Need Help: Sending Parameters
 
 If you go to File  Open and add the parameters there (be sure to 
 check the little web folders box) it should work.
 
 -James
 
 Ragia wrote:
 
Hello All,
 
 Am facing a problem sending parameters to the WebDAV Servlet. 
Using a windows web folder, it is not possible to create a web folder 
with parameters passed through the URL, ex:
http://ragia:/webapp/slide?test=1
. When I open an already created WebFolder and then add parameters 
through the URL, the WebFolder is automatically converted to an 
Internet Explorer and loses the DAV mode. I thought of prompting an 
http dialog to get the parameters upon folder opening although I 
didn't succeed either. is there a way to do so?
 
Any help would be highly appreciated.
 
Thanx in advance.
 
rooja

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



Regarding Apache Logging API in Slide

2004-08-31 Thread Koundinya \(Sudhakar Chavali\)
 Hello All,


Have you ever worked on Apache Logging API??

I am facing aproblem in supressing the messages of API.

In my current project I am using apache's HttpClient API. By default it is using Apache
commons-logging API.

In order to supress those messages, I know this condition should be used. (if
(isLevelEnabled(SimpleLog.LOG_LEVEL_DEBUG)))

But I am not understanding how and where to write the related code in my API??

Do I need to set any properties file for this or any thing else. I just can't 
understand how to
supress messages of Apache HTTP client

Your help needed

thanks
sudhakar

=
No one can earn a million dollars honestly.- William Jennings Bryan (1860-1925) 

Make everything as simple as possible, but not simpler.- Albert Einstein (1879-1955)

It is dangerous to be sincere unless you are also stupid.- George Bernard Shaw 
(1856-1950)



__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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



RE: Need Help: Sending Parameters

2004-08-31 Thread Warwick Burrows

Hi Rooja,

I was denied access to this page. Can you summarize the solution for us?

Thanks,
Warwick



-Original Message-
From: Ragia [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 31, 2004 7:16 AM
To: 'Slide Users Mailing List'
Subject: RE: Need Help: Sending Parameters



Hello James, 

Thanx for the reply, it seems u didn't catch my final mail below :
Thanx again :)

Hello All,
   I found a solution, and thought you might be interested :)
   Take a look on this
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors
/overview/webfolder.asp
   This is how to enable Web Folder behaviors.
Regards,
Rooja




-Original Message-
From: James Mason [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 31, 2004 8:53 AM
To: Slide Users Mailing List
Subject: Re: Need Help: Sending Parameters

I can't really think of anything, sorry. My guess is the MS WebDAV client
library handle query strings. If you wrote your own client using the library
you might be able to get it to work, but that's probably beyond what you're
wanting to undertake.

What are you needing to send the parameters for? Maybe there's another way
to get the information to the server.

-James

Ragia wrote:
 Hi James, Hi All,
 
 Thanx for the reply! :)
 
 Well, I tried what u suggested, and I found that: in case I don't
 check the WebFolder checkbox, the parameters are passed fine and slide 
 homepage is displayed through IE (which is not my aim), But when I 
 check the WebFolder checkbox, normally slide opens in a WebFolder but 
 the parameters are all set to null, also the url comes without the 
 parameters I added. I traced the req object and found its parameters 
 Map is empty :(
 
 Any advice?
 
 Regards,
 
 Rooja
 
 
 -Original Message-
 From: James Mason [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 3:25 AM
 To: Slide Users Mailing List
 Subject: Re: Need Help: Sending Parameters
 
 If you go to File  Open and add the parameters there (be sure to
 check the little web folders box) it should work.
 
 -James
 
 Ragia wrote:
 
Hello All,
 
 Am facing a problem sending parameters to the WebDAV Servlet.
Using a windows web folder, it is not possible to create a web folder 
with parameters passed through the URL, ex:
http://ragia:/webapp/slide?test=1
. When I open an already created WebFolder and then add parameters 
through the URL, the WebFolder is automatically converted to an 
Internet Explorer and loses the DAV mode. I thought of prompting an 
http dialog to get the parameters upon folder opening although I 
didn't succeed either. is there a way to do so?
 
Any help would be highly appreciated.
 
Thanx in advance.
 
rooja

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

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



Re: Regarding Apache Logging API in Slide

2004-08-31 Thread James Mason
Check out the user's guide for commons-logging: 
http://jakarta.apache.org/commons/logging/guide.html

Not that commons-logging is just a wrapper around multiple logging 
implementations. As such, configuring the logger implementation depends 
on which implementation you use. From your code it looks like you're 
using SimpleLog, and there's a link to configuration information in the 
Quick Start section of the user's guide.

-James
Koundinya (Sudhakar Chavali) wrote:
 Hello All,
Have you ever worked on Apache Logging API??
I am facing aproblem in supressing the messages of API.
In my current project I am using apache's HttpClient API. By default it is using Apache
commons-logging API.
In order to supress those messages, I know this condition should be used. (if
(isLevelEnabled(SimpleLog.LOG_LEVEL_DEBUG)))
But I am not understanding how and where to write the related code in my API??
Do I need to set any properties file for this or any thing else. I just can't 
understand how to
supress messages of Apache HTTP client
Your help needed
thanks
sudhakar
=
No one can earn a million dollars honestly.- William Jennings Bryan (1860-1925) 

Make everything as simple as possible, but not simpler.- Albert Einstein (1879-1955)
It is dangerous to be sincere unless you are also stupid.- George Bernard Shaw 
(1856-1950)

__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
-
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: Can WebDAV servlet serve non-slide-managed filesystem?

2004-08-31 Thread James Mason
alon,
Sorry I didn't think of this earlier. It will probably be easier, at 
least initialy, to have two store configured in your domain. Leave the 
default store in place with a scope of /, and add your store with a 
scope of /files. This way you won't have to mess with the data 
section of the domain, and you won't have to worry about returning 
ActionNodes.

Once you have your store working you can decide how you want to handle 
the other information. It will probably be simplest to setup some basic 
permissions in your domain then map the webdav servlet to only server 
the /files node, but other options are available.

-James
alon salant wrote:
Okay, I've partially answered one of my questions.
Playing around and reading the config more carefully, I replaced the
sample data element configuration with
data
  objectnode classname=org.apache.slide.structure.SubjectNode uri=/
permission action=all subject=all inheritable=true/
  /objectnode
/data
and can now directory browse through the webdav servlet. All I see is
an empty root directory which is what I expect based on my initial
SimpleFileStore implementation.
Mapping a web folder from win xp is claiming that the folder you
entered does not appear to be valid but I have not looked in to this
yet.
I am curious to know what of of the namespace configuration element is
required for what I am trying to do.
Alon
On Tue, 31 Aug 2004 00:06:29 -0700, alon salant [EMAIL PROTECTED] wrote:
I've decided to take an initial step of stubbing out my
SimpleFileStore implementation and deploying it in my webapp.
I started with the Domain.sample file from the 2.1b1 distribution and
modified the namespace definition as follows:
definition
 store name=files
   nodestore classname=photospace.slide.SimpleFileStore
 parameter name=rootpathstore/metadata/parameter
   /nodestore
   contentstore classname=photospace.slide.SimpleFileStore
 parameter name=rootpathstore/content/parameter
   /contentstore
   securitystore
classname=org.apache.slide.store.mem.TransientSecurityStore/
   lockstore classname=org.apache.slide.store.mem.TransientLockStore/
   revisiondescriptorsstore
classname=org.apache.slide.store.mem.TransientDescriptorsStore/
   revisiondescriptorstore
classname=org.apache.slide.store.mem.TransientDescriptorStore/
 /store
 scope match=/ store=files/
/definition
SimpleFileStore implements NodeStore and ContentStore. This
configuration deploys without error.

Is SubjectNode an
appropriate ObjectNode implementation to return from retrieveObject(
)?
Yes.
I did find that retrieveObject( ) needs to return an ActionNode not
SubjectNode for NamespaceConfig.getActionNode( ) which was being
called in slide startup. I was getting a ClassCastException. So should
I always return an ActionNode from retrieveObject( )? What's the
difference from a SubjectNode?
I have the slide WebDAV servlet configured and starting up without
errors and with directory browsing turned on. However, when I browse
to the servlet url, I get a 403 and a single log line from slide:
 http-8080-Processor25, 30-Aug-2004 23:43:47, unauthenticated, GET,
403 Forbidden, 47 ms, /
Note that I have not removed the sample namespace configuration or
data from the Domain.sample file that I started with. Reading this
file, I'm not sure what is necessary and what does not apply. I'm
guessing that most of the configuration is necessary and that the info
in the data element can go. Correct?
Any thoughts on how to get past my 403?
Alon

-
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: Slide fixes to be reviewed

2004-08-31 Thread Warwick Burrows

One note on this fix. It may not have originally been a bug. I saw this in
2.1M1 and changed it for my own use, but I guessed that the original writers
had wanted to give users the ability to type in escaped URIs themselves. Eg.
/files/My%20File instead of /files/My File.  I guess there are some
cases where users have wanted to construct the escaped sequence themselves
and not rely on the HTTPClient to escape it for them. Its great for me
though as I use the client all the time and don't need to build my own
escaped URIs :-)

Warwick


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 27, 2004 7:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Slide fixes to be reviewed


Well i couldn't wait, so i got my hands dirty, and started debugging the
code. It was really easy to solve after all, the bug thas i was experiencing
has nothing to do with WebdavResource. In org/apache/webdav/cmd/Client.java
there's a method named uriToHttpURL that calls the commons library like
this: HttpURL(uri.toCharArray()).
It turns out that if I use simply HttpURL(uri) it works as a breeze. So I
guess i discoreved a bug in public HttpURL(char[] chars) in the commons
library and discarded a futile function call. I will submit a bug, and a
patch as soon as i get lunch :P

-Original Message-
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 27 de Agosto de 2004 12:17
To: [EMAIL PROTECTED]
Subject: Re: Slide fixes to be reviewed


I'm pretty sure there's no bug related to spaces in pathnames in
WebdavResource. But the commmand line client and the LockMethod may well
have problems.

I will have a look at the patches as soon as Warwick submits them.

Ingo

 Hi
 I was having trouble with pathnames and spaces too, i'm designing an 
 app, and started by implementing the methods on top of the slide 
 client, but
some
 didn't seem to work at all.
 Later i associated the bad behaviour with the spaces in the filenames. 
 For instance, using the commandline client I'm getting this error when 
 i
try
 to do some operations on a pathname that contains spaces:
 
 [LOCALHOST:/slide/files/Folhas Soltas/] C:\ $ report tabacaria.txt 
 Getting version-tree Report of '/slide/files/Folhas 
 Soltas/tabacaria.txt':
 Error: escaped absolute path not valid
 
 I suppose this is connected to the bug you refered in
WebdavResource.java?
 This error of course doesn't show up when there aren't any spaces in 
 the pathname. Do you think these patches will solve the problem? 
 please submit them quickly :)
 
 Thanks again
 
 -Original Message-
 From: James Mason [mailto:[EMAIL PROTECTED]
 Sent: sexta-feira, 27 de Agosto de 2004 7:39
 To: Slide Users Mailing List
 Subject: Re: Slide fixes to be reviewed
 
 
 Warwick,
 Bugzilla is the best option for submitting fixes. It makes it easier 
 to
 track which fixes have been applied and which are pending.
 
 It's a bit of work, but if you can create a bug for each change you've
 made that will be the easiest to keep track of. Otherwise just create a 
 single bug and attach all your changes and we'll keep track of what's 
 been done in the comments.
 
 Thanks for doing this, btw. I absolutely love it when someone submits 
 a
 bug *with* a patch :).
 
 -James
 
 Warwick Burrows wrote:
  Hi James,
  
  I actually have a number of fixes that I've made to get Slide 
  working in
 my
  configuration. I'd like to submit them all but would like to have 
  them reviewed by a slide contributor first to make sure that they 
  are ok.
How
 do
  I get them to the list as I haven't been able to send a zip or tar 
  file attachment as they get bounced.
  
  Here's a summary of each change for context:
  
  
  WebdavResource.java:
  ---
  - Found a problem establishing existence of paths with spaces in 
  them. Eg. My Files. The path coming back from the server was 
  escaped
and
  getPath() returns an unescaped string. Was failing to set existence 
  as a result. Decode and compare the two on a common basis.
  - got a wild-hare about the the way a trailing '/' on one of the 
  paths is dealt with so I changed it to make it a little faster and 
  skips cases where the strings are definitely not equal regardless of the
'/'.
  - added a lockMethod with a depth parameter to lock subdirs and 
  their children.
  - added discoverOwnLocks with an owner parameter to get locks for a 
  specific user and which is not the user in my client context (ie. no
authn
  or authz is being used).
  
  
  LockMethod.java:
  
  - similar to existence prob in WebdavResource.java for paths with 
  spaces. The lock is stored in the hashmap by parseResponse with an
escaped
  path. The check for existence of a lock on the resource uses an
unescaped
  path so it wouldn't find the lock. I changed it to add the lock to 
  the hashmap with the unescaped path so that its found.
  
  
  DOMUtils.java:
  --
  - lock owner not being 

Re: Searching in Slide

2004-08-31 Thread Peder Nordvaller
I've been trying some with DASL and the helpers (working directly towards 
the Slide API) and have some problems. When doing:

(where search, slideToken and depth are all ok, and searchXML a jdom Element 
as below:)
search.createSearchQuery(DAV:, searchXML, slideToken, depth);

with the following XML:
searchrequest
basicsearch
 select
   prop
 href /
/prop
   /select
  from
   scope
href/files/href
depth1/depth
   /scope
  /from
 where
  and
   eq
 propdisplayname/prop
 literalmyfile/literal
/eq
   /and
  /where
/basicsearch
/searchrequest
I get the following error:
01 Sep 2004 00:28:21 - org.apache.slide.common.Domain - WARNING - Required 
element from not supplied
01 Sep 2004 00:28:21 - org.apache.slide.common.SlideException - DEBUG - 
org.apache.slide.search.BadQueryException: Required element from not 
supplied
at 
org.apache.slide.search.basic.BasicQueryImpl.getScope(BasicQueryImpl.java:386)
at 
org.apache.slide.search.basic.BasicSearchLanguage.parseQuery(BasicSearchLanguage.java:127)
at org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:256)
at org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:199)
at org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:175)
...

But the from-tag is there just as it should according to the xml spec. of 
DASL, any ideas is gratefully accepted!?

Regards, Peder
- Original Message - 
From: Peder Nordvaller [EMAIL PROTECTED]
To: Slide Users Mailing List [EMAIL PROTECTED]
Sent: Monday, August 02, 2004 1:57 PM
Subject: Searching in Slide

Hi, I've been working with slide for a bit and it's been working just fine 
most of the time. I'm now working with a lot of content and nodes in Slide 
and the way I've been searching for things is getting sluggish. I am working 
directly towards the helpers but I'm not using the SearchImpl class because 
I haven't had time to check it out. When I search I get the children of a 
node and get their properties, check them for keywords and continue on with 
the childrens children in the same fashion. This is taking way too much time 
with some 60k nodes and I have had to do some caching to make it work at all 
in a useful way.

My questions are: Is there any things I can do to speed up getting 
information out of nodes (properties etc)?
How fast is the built-in slide Search? Is there any documentation on how to 
make use of it?

Sincerely, Peder Nordvaller 


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


History of history URI naming

2004-08-31 Thread Warwick Burrows
Hi,
 
I haven't investigated this real deeply but I was wondering if there a
reason why the structure of the /history folder doesn't mirror the hierarchy
in the content space? eg. for a file /files/fileA the history folder would
be /history/files/fileA with the fileA versions under it. Is it because the
delta-v spec says that you can't delete the VHRs for a VCR even when the VCR
is deleted? And so if the VHRs are left around and you try to create a new
file with the same name and path after deleting it the first then the old
history would still be around and mess things up?
 
Thanks,
Warwick
 


NotificationTrigger event class?

2004-08-31 Thread Warwick Burrows
Hi,
 
What does the NotificationTrigger (event) class do,  and which other Slide
features require it to function?  Does the clustering support and cache
update notifications require this to be configured?
 
Thanks,
Warwick
 
 


Re: NotificationTrigger event class?

2004-08-31 Thread James Mason
All events require the NotificationTrigger, as far as I know. So yes, 
clustering requires it to be configured. The configuration is easy, but 
it changed for 2.1b1 so your old config will throw an error. It's only a 
two line difference in the config, though.

-James
Warwick Burrows wrote:
Hi,
 
What does the NotificationTrigger (event) class do,  and which other Slide
features require it to function?  Does the clustering support and cache
update notifications require this to be configured?
 
Thanks,
Warwick
 
 

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