Jeroen Reijn | 1 Oct 22:09
Picon

RE: xPATH PROBLEM

Hi Aslam,

this is more an xpath expression then a slide question I guess, but your XPATH will need be this:

<instruction property="answer" xpath="/Q/question/ques/ <at> answer" />
<instruction property="output" xpath="/Q/question/ques/ <at> output" />

I have to remind you though that this will not extract multiple occurences of the question xpath, since the
values are stored within an attribute of the node, so you will get the first result only inside you
extracted property. Which is in this case 'india' and 'screen'.

According to the documentation inside the source code it should work on text nodes.

http://svn.apache.org/repos/asf/jakarta/slide/trunk/src/share/org/apache/slide/extractor/SimpleXmlExtractor.java

Another solution is that you could use a different extractor or a custom one. For Hippo Repository [1] (a
content repository based on Slide) we created several new extractors. There is multivalueXMLProperty
extractor which you could use in this case. It extracts all values comma seperated into a single value.

Kind regards,

Jeroen Reijn

[1] http://wiki.hippo.nl/display/CMS/Hippo+Repository+v1.2.x+Documentation

-----Original Message-----
From: Aslam Bari [mailto:iamaslamok <at> yahoo.co.in]
Sent: zaterdag 30 september 2006 8:44
To: slide-user <at> jakarta.apache.org
Subject: xPATH PROBLEM
(Continue reading)

Daniel Gradecak | 2 Oct 12:48

caldav?

Hello,

I am trying to find informations about caldav in slide but could not 
find anything. Is caldav going to be implemented in Slide, or this is 
something that is not on the plan right now?

Kind regards,
Daniel
Martin Petras | 2 Oct 14:14
Picon

Re: SSO cookie scenario

Hi Bob,
try this solution:

HttpURL httpURL = new HttpURL("http://SERVER/exchange/USER/Inbox/");
NTCredentials ntc = new NTCredentials("USER", "PASSWORD", "HOST","DOMAIN");
WebdavResource wr = new WebdavResource(httpURL, ntc, WebdavResource.ALL,0);

// add cookie
   HttpClient client = webdavResource.getSessionInstance(httpURL);
   HttpState state = client.getState();
   state.addCookie( new Cookie(
        		"servername", 
        		"cookieName", 
        		"cookieValue",
        		"/", 
        		null, 
        		false
        		) );

wr.setFollowRedirects(true);
WebdavResources resources = wr.getChildResources();

Hope this helps
Martin

Bob Damato wrote:
> I'm attempting to use Slide to communicate with an Exchange server. I am
> able to connect and retrieve information using basic auth so I know I'm
> on the right track. The next thing I need to do is integrate our single
> sign on cookie. I have been digging through the Slide javadocs and can't
(Continue reading)

Alex Ng | 4 Oct 04:52
Picon
Picon
Favicon

Request for help regarding ClusterSupport

I am new to Jakarta Slide. I've just installed the Slide 2.1 Tomcat 5.0.28 
bundle onto two PCs (Windows XP, and Debian). I followed the wiki entry to 
set up clustering by modifying the Domain.xml on both PCs only:
http://wiki.apache.org/jakarta-slide/ClusterSupport

Both stores started and were accessible via a browser. However, no 
replication activity was seen.

The logs on both PC display "INFO: Poll for subscriber: 5,6,7,8" together 
with the
"WARNING:Login Exception Authenticating username null" 
"javax.security.auth.login.loginException: No user name Entered"

Could anyone give me a hint what I have done wrong or missed.

Thanks and Regards

Alex 
jean-michel | 9 Oct 15:02
Favicon

Internet explorer cache problem

Hi!

I created my own FileStore class for use with slide and the tomcat server.
It basically modifies the content of the file before storing it. 
Everything works fine besides one thing...

The problem appears when I mount a WebDAV folders through My Network Places in
windows.
If I drag and drop a file to the webdav folder, the file is stored with the
modifications I applied to it. (I know it cause when I try to have the file back
throurh a firefox window at the localhost adress, I get the modified file). 
Problem is that when I drag and drop on the other side (from the webdav folder
to my desktop for example), windows gives back the original document without the
modifications.

I found that when erasing the Internet explorer cache just before doiong the
backward operation, I don't get the problem anymore. Problem is I'd like to
automatially not have this problem.

Does anyone knows an slide option to configure or a trick in order to not have
the file being stored in Internet explorer cache? 
Thi bug is really anoying for what I plan to do.

By advance, thanks a lot.
Eirikur Hrafnsson | 10 Oct 15:03
Picon

Re: Slide Client with Slide DeltaV

Check out Swingdaver client source code
http://swingdaver.sourceforge.net/

We used it to learn how to get to that stuff. Specifically the class  
that extends WebDavResource...

good luck

Best Regards

Eirikur S. Hrafnsson, eiki <at> idega.is
Chief Software Engineer
Idega Software
http://www.idega.com

On Sep 27, 2006, at 7:00 PM, Gregg Freeman wrote:

> Hi All,
>
> We're wanting to use the DeltaV capabilities of the Slide server,  
> but are having some trouble finding information on
> how to write a client which supports it.  We have a non-deltaV  
> client working, but would like to try out the DeltaV capabilities.
>
> Could someone point me to something that would help us create a  
> client which can do the following:
> 1) get the latest version of a file/resource
> 2) get a specific (non-latest) version of a file/resource
> 3) get all the revisions of a file/resource
>
(Continue reading)

Patrick Duda | 11 Oct 19:18
Picon

Install question

Hi,

I am trying to get slide up and running.

I already had tomcat 5.5.17 installed and running on my server.  So, I 
downloaded the slide binaries and moved the slide.war and slide-doc.war 
into the webapps directory.  I then restarted tomcat.

When I used my browser to access slide, I got a list of directories.

However, when I tried using DAVExplorer things didn't go as stated.  I was 
following "Creating Users" tutorial and used DAVExplorer to access 
slide.  I was able to connect but I was never asked for a user name or 
password.  Also, when it brought up the information, there was no "users" 
directory.

I am assuming I missed something in the configuration but at this point I 
don't know what it could be.

Has anyone got any advice?

Thanks
aslam bari | 12 Oct 04:25
Picon
Favicon

Re: Install question

Let met know when you browse slide with internet explorer, are you asked for username and password or not?

----- Original Message ----
From: Patrick Duda <pduda <at> ncsa.uiuc.edu>
To: slide-user <at> jakarta.apache.org
Sent: Wednesday, 11 October, 2006 10:48:59 PM
Subject: Install question

Hi,

I am trying to get slide up and running.

I already had tomcat 5.5.17 installed and running on my server.  So, I 
downloaded the slide binaries and moved the slide.war and slide-doc.war 
into the webapps directory.  I then restarted tomcat.

When I used my browser to access slide, I got a list of directories.

However, when I tried using DAVExplorer things didn't go as stated.  I was 
following "Creating Users" tutorial and used DAVExplorer to access 
slide.  I was able to connect but I was never asked for a user name or 
password.  Also, when it brought up the information, there was no "users" 
directory.

I am assuming I missed something in the configuration but at this point I 
don't know what it could be.

Has anyone got any advice?

Thanks
(Continue reading)

Zeitler, Bernd | 12 Oct 08:44
Picon
Favicon

RE: Install question

Hi,

You probably missed the installation samples in the wiki. Phil Burnside did a good job writing down all
basic steps about deployment and configuration: http://wiki.apache.org/jakarta-slide/InstallationWithSamples.

Quote:
"You need to uncomment the security-constraint section to enable the authentication to SLIDE. If you
don't do this, you will not authenticate to the servlet and will be treated as a 'guest', greatly reducing
user priviledges."

I recommend the JAAS way ;-)

Greetings,

Bernd

-----------------------------------------------------------

Human beings, who are almost unique in having the ability to learn from the experience of others, are also
remarkable for their apparent disinclination to do so. 

Douglas Adams

-----Ursprüngliche Nachricht-----
Von: Patrick Duda [mailto:pduda <at> ncsa.uiuc.edu] 
Gesendet: Mittwoch, 11. Oktober 2006 19:19
An: slide-user <at> jakarta.apache.org
Betreff: Install question

Hi,
(Continue reading)

Boden, David | 12 Oct 12:26

RE: Install question

Hi,

I'd like to have the following setup:
1. I use JAAS to authenticate a user and assign them a role (guest, user, admin).
2. Have general access permissions granted by Slide based on the Domain.xml and the role that the user has.
3. Implement a ContentInterceptor to specifically decide whether a user is authorised to access a
particular role (i.e. custom authorization).

Is this possible? I've tried setting Slide up so that it will automatically create users, but it keeps
telling me that there's no information found for /users/dboden when I successfully authenticate using
"dboden" as a username.

Is there a definitive guide to setting up authentication in this way? Do you know of any company /
individuals that could offer paid commercial support for Slide so that I could get this job done?

Thanks,
Dave

Here's my implementation of the ContentInterceptor which aims to authorise a user:

package com.lehman.fiet.ark.server;

import java.security.Principal;

import org.apache.slide.common.NamespaceAccessToken;
import org.apache.slide.common.ServiceAccessException;
import org.apache.slide.common.SlideToken;
import org.apache.slide.content.AbstractContentInterceptor;
import org.apache.slide.content.NodeRevisionContent;
import org.apache.slide.content.NodeRevisionDescriptor;
(Continue reading)


Gmane