You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Arne v.Irmer" <Ar...@uni-dortmund.de> on 2005/11/29 17:14:04 UTC

Using one store with and without authentication

Hi,
I want to have server with a public and a private section. The public
section should be readable for user “unauthenticated” and writeable for
an authenticated user.

To realize this put two slide instances in one Tomcat. One has the
webapp-name webdav with basic-authentication turned on and one has the
webapp-name public with basic-authentication turned off. Both are
getting their files from the same store and it works pretty well.

Everything works fine only the cache refreshing for the “public”-slide
does not work.

Here is my try to configure the ClusterCacheRefresher.

I configured it in the two “Domain.xml” as followed:

The host for both slides has the IP 10.0.0.10 delivering content on port
8080. The “public”-slide is listening on port 5444 for cache refreshing
events. The “webdav”-slide on port 5445.



For “public”-Slide:

<listener classname="org.apache.slide.cluster.ClusterCacheRefresher">

<configuration>

<node local-host="10.0.0.10"

local-port="5444"

repository-domain="/webdav"

repository-host="10.0.0.10"

repository-port="8080"

repository-protocol="http"

username="root"

password="…"

/>

</configuration>

</listener>



For “webdav”-Slide:

<listener classname="org.apache.slide.cluster.ClusterCacheRefresher">

<configuration>

<node local-host="10.0.0.10"

local-port="5445"

repository-domain="/public"

repository-host="10.0.0.10"

repository-port="8080"

username="root"

password="…"



/>

</configuration>

</listener>



In the logfiles I got in the init-phase:

29 Nov 2005 16:10:59 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Creating notification trigger

29 Nov 2005 16:10:59 - org.apache.slide.cluster.ClusterCacheRefresher -
INFO - Creating ClusterCacheRefresher

29 Nov 2005 16:11:05 - org.apache.slide.cluster.ClusterCacheRefresher -
INFO - Configuring ClusterCacheRefresher

29 Nov 2005 16:11:07 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Adding subscriber

29 Nov 2005 16:11:07 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 1

http-ewsavi%2F10.0.0.10-8080-Processor25, 29-Nov-2005 16:11:07, root,
SUBSCRIBE, 200 "OK", 155 ms, /

29.11.2005 16:11:07 org.apache.webdav.lib.NotificationListener subscribe

INFO: Received subscription id=1, listener:
org.apache.slide.cluster.ClusterCacheRefresher$1@1184326

29 Nov 2005 16:11:08 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Adding subscriber

29 Nov 2005 16:11:08 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 2

http-ewsavi%2F10.0.0.10-8080-Processor24, 29-Nov-2005 16:11:08, root,
SUBSCRIBE, 200 "OK", 12 ms, /

29.11.2005 16:11:08 org.apache.webdav.lib.NotificationListener subscribe

INFO: Received subscription id=2, listener:
org.apache.slide.cluster.ClusterCacheRefresher$2@1ad5d46

29 Nov 2005 16:11:08 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Adding subscriber

29 Nov 2005 16:11:08 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 3

http-ewsavi%2F10.0.0.10-8080-Processor23, 29-Nov-2005 16:11:08, root,
SUBSCRIBE, 200 "OK", 27 ms, /

29.11.2005 16:11:08 org.apache.webdav.lib.NotificationListener subscribe

INFO: Received subscription id=3, listener:
org.apache.slide.cluster.ClusterCacheRefresher$2@1ad5d46

29 Nov 2005 16:11:08 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Adding subscriber

29 Nov 2005 16:11:08 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 4

http-ewsavi%2F10.0.0.10-8080-Processor22, 29-Nov-2005 16:11:08, root,
SUBSCRIBE, 200 "OK", 275 ms, /

29.11.2005 16:11:09 org.apache.webdav.lib.NotificationListener subscribe

INFO: Received subscription id=4, listener:
org.apache.slide.cluster.ClusterCacheRefresher$2@1ad5d46

29 Nov 2005 16:11:34 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Adding subscriber

29 Nov 2005 16:11:34 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 1

http-ewsavi%2F10.0.0.10-8080-Processor21, 29-Nov-2005 16:11:34,
unauthenticated, SUBSCRIBE, 200 "OK", 186 ms, /

29.11.2005 16:11:34 org.apache.webdav.lib.NotificationListener subscribe

INFO: Received subscription id=1, listener:
org.apache.slide.cluster.ClusterCacheRefresher$1@1bf496b

29 Nov 2005 16:11:36 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Adding subscriber

29 Nov 2005 16:11:36 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 2

http-ewsavi%2F10.0.0.10-8080-Processor22, 29-Nov-2005 16:11:36,
unauthenticated, SUBSCRIBE, 200 "OK", 15 ms, /

29.11.2005 16:11:36 org.apache.webdav.lib.NotificationListener subscribe

INFO: Received subscription id=2, listener:
org.apache.slide.cluster.ClusterCacheRefresher$2@c94114

29 Nov 2005 16:11:39 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Adding subscriber

29 Nov 2005 16:11:39 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 3

http-ewsavi%2F10.0.0.10-8080-Processor23, 29-Nov-2005 16:11:39,
unauthenticated, SUBSCRIBE, 200 "OK", 109 ms, /

29.11.2005 16:11:39 org.apache.webdav.lib.NotificationListener subscribe

INFO: Received subscription id=3, listener:
org.apache.slide.cluster.ClusterCacheRefresher$2@c94114

29 Nov 2005 16:11:41 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Adding subscriber

29 Nov 2005 16:11:41 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 4

http-ewsavi%2F10.0.0.10-8080-Processor24, 29-Nov-2005 16:11:41,
unauthenticated, SUBSCRIBE, 200 "OK", 12 ms, /

29.11.2005 16:11:41 org.apache.webdav.lib.NotificationListener subscribe

INFO: Received subscription id=4, listener:
org.apache.slide.cluster.ClusterCacheRefresher$2@c94114

29.11.2005 16:11:52 org.apache.webdav.lib.NotificationListener poll

INFO: Poll for subscribers: 1,2,3,4



If I create a folder
http-ewsavi%2F10.0.0.10-8080-Processor22, 29-Nov-2005 16:15:53, root,
POLL, 207 "Multi-Status", 210 ms, /

http-ewsavi%2F10.0.0.10-8080-Processor23, 29-Nov-2005 16:15:56, root,
MKCOL, 201 "Created", 197 ms, /lecture/test/public/test

29 Nov 2005 16:15:56 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Notify subscribers with adress='httpu://10.0.0.10:5444' via UDP
with id's 1, 2



29.11.2005 16:15:56 org.apache.webdav.lib.NotificationListener
parseNotification

INFO: Notification received for subscribers: 1, 2





And every minute

29.11.2005 16:20:53 org.apache.webdav.lib.NotificationListener poll

INFO: Poll for subscribers: 1,2,3,4

29 Nov 2005 16:20:53 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 1

29 Nov 2005 16:20:53 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 2

29 Nov 2005 16:20:53 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 3

29 Nov 2005 16:20:53 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 4

http-ewsavi%2F10.0.0.10-8080-Processor22, 29-Nov-2005 16:20:53, root,
POLL, 207 "Multi-Status", 13 ms, /

http-ewsavi%2F10.0.0.10-8080-Processor24, 29-Nov-2005 16:21:27,
unauthenticated, GET, 200 "OK", 58 ms, /lecture/test/public
-- 
Dipl.-Phys. Arne v.Irmer
Medienzentrum Universitaet Dortmund
Emil-Figge-Strasse 50
44227 Dortmund
Tel.: ++49 231 755 7127
Fax : ++49 231 755 4597


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org