Warning: Security-Bug in Slide
Folks! As described here http://www.milw0rm.com/exploits/4567 there is a security bug in the current Slide release. Using the LOCK methode it is possible to display content from your local file system. This works by passing over literate XML that contains entities that refer to your local file system. AFAIK this can not be prevented by the XML implementation Slide uses (JDOM). A quick fix would be to disable the LOCK method in the web.xml by commenting it out or removing it. I have also committed a patched LockMethod.java that does not return literate XML at all. This may cause trouble with the owner filed that some clients require, but it is the best I can do for now. It is checked in in the Slide 2.1 release branch and in the HEAD branch. For existing Slide 2.1 installations it would suffice to check out, compile and replace the LockMethod class. You can do so by copying it in the the WEB-INF/class folder including all package directories. If you grant outside access to your Slide WebDAVServer be sure to take care of this bug. Cheers Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deadlocks in the Filestore of Silde 2.1
Hi Arne! Your observation really is interesting. Any idea why the request is not terminated even if the client finally gives up? If this really is the case, even my non-blocking solution would not do, as the non-blocking lock still remains. A better solution would be a lock that times out after some time. AFAIK there is nothing simliar implemented, yet. You can switch off locking by setting the mode to none. In that case the underlying store is responsible for all locking. If it is a DB that should be ok, though. HTH Oliver 2007/4/18, Arne v.Irmer [EMAIL PROTECTED]: Hi Oliver, how can I switch off locking and what happens in the case of a concurrent file access? Might it be a good idea to replace the locking code of 2.1 with code of 2.2? Yours Arne Oliver Zeigermann schrieb: I was just having a look at the 2.2 code and it looks that you can even switch off locking completely. Otherwise the locking code in 2.2 looks much better than the code in 2.1 Oliver 2007/4/17, Oliver Zeigermann [EMAIL PROTECTED]: Hi Arne! The stack trace tells you that another thread has the global read/write lock. So, correctly speaking this is a live lock. The reason most likely is a thread that still runs and has forgotten to release this lock. Having said this, even switching to a deadlock free solution will not help, as you have no deadlocks here. Cheers Oliver 2007/4/17, Arne v.Irmer [EMAIL PROTECTED]: Hi, we are using slide in our e-learning platform http://ews2.uni-dortmund.de in a production environment. We get into deep trouble with deadlocks in Slide! I checked out Silde 2.2pre1. In the RELEASE-NOTES-2.2 there is the sentence: - New option for a fine grained, deadlock-less locking scheme My question is: - Should I change to 2.2pre1 for my productive environment? How can I switch back if we discover other problems with this pre-release? - Is there a patch for version 2.1. that fixes these deadlocks? Please help. Thanks in advance Arne v.Irmer Our configuration: Slide 2.1 with fixed hasmap suspendedLocks in org.apache.slide.store.ExtendedStore. using a filestore in Tomcat 5.5 Here are some stacktraces from the jconsole in the case of the deadlocks: Name: http-129.217.205.43-8080-Processor3 State: TIMED_WAITING on [EMAIL PROTECTED] Total blocked: 273 Total waited: 332 Stack trace: java.lang.Object.wait(Native Method) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:241) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:165) org.apache.slide.webdav.method.AbstractWebdavMethod.assureGlobalWriteLock(AbstractWebdavMethod.java:847) org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:362) org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) Name: http-129.217.205.43-8080-Processor3 State: TIMED_WAITING on [EMAIL PROTECTED] Total blocked: 44 Total waited: 80 Stack trace: java.lang.Object.wait(Native Method) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:241) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:165
Re: Backend Physical Store from a Windows XP Share Folder
I guess you could by using a file based store (maybe one from WCK) that maps to the shared folder. Oliver 2007/4/17, [EMAIL PROTECTED] [EMAIL PROTECTED]: Dear All, I installed Slide server 2.1 with Tomcat 5.5 on Windows XP. I would like to include one of my colleagues' share folders as one of the backend physical stores of the server with all the contents reside on my colleague's desktop. Can I do this? Is there any pointer that I could start with? Many thanks! marco Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deadlocks in the Filestore of Silde 2.1
Hi Arne! The stack trace tells you that another thread has the global read/write lock. So, correctly speaking this is a live lock. The reason most likely is a thread that still runs and has forgotten to release this lock. Having said this, even switching to a deadlock free solution will not help, as you have no deadlocks here. Cheers Oliver 2007/4/17, Arne v.Irmer [EMAIL PROTECTED]: Hi, we are using slide in our e-learning platform http://ews2.uni-dortmund.de in a production environment. We get into deep trouble with deadlocks in Slide! I checked out Silde 2.2pre1. In the RELEASE-NOTES-2.2 there is the sentence: - New option for a fine grained, deadlock-less locking scheme My question is: - Should I change to 2.2pre1 for my productive environment? How can I switch back if we discover other problems with this pre-release? - Is there a patch for version 2.1. that fixes these deadlocks? Please help. Thanks in advance Arne v.Irmer Our configuration: Slide 2.1 with fixed hasmap suspendedLocks in org.apache.slide.store.ExtendedStore. using a filestore in Tomcat 5.5 Here are some stacktraces from the jconsole in the case of the deadlocks: Name: http-129.217.205.43-8080-Processor3 State: TIMED_WAITING on [EMAIL PROTECTED] Total blocked: 273 Total waited: 332 Stack trace: java.lang.Object.wait(Native Method) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:241) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:165) org.apache.slide.webdav.method.AbstractWebdavMethod.assureGlobalWriteLock(AbstractWebdavMethod.java:847) org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:362) org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) Name: http-129.217.205.43-8080-Processor3 State: TIMED_WAITING on [EMAIL PROTECTED] Total blocked: 44 Total waited: 80 Stack trace: java.lang.Object.wait(Native Method) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:241) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:165) org.apache.slide.webdav.method.AbstractWebdavMethod.assureGlobalReadLock(AbstractWebdavMethod.java:838) org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:360) org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419)
Re: Deadlocks in the Filestore of Silde 2.1
I was just having a look at the 2.2 code and it looks that you can even switch off locking completely. Otherwise the locking code in 2.2 looks much better than the code in 2.1 Oliver 2007/4/17, Oliver Zeigermann [EMAIL PROTECTED]: Hi Arne! The stack trace tells you that another thread has the global read/write lock. So, correctly speaking this is a live lock. The reason most likely is a thread that still runs and has forgotten to release this lock. Having said this, even switching to a deadlock free solution will not help, as you have no deadlocks here. Cheers Oliver 2007/4/17, Arne v.Irmer [EMAIL PROTECTED]: Hi, we are using slide in our e-learning platform http://ews2.uni-dortmund.de in a production environment. We get into deep trouble with deadlocks in Slide! I checked out Silde 2.2pre1. In the RELEASE-NOTES-2.2 there is the sentence: - New option for a fine grained, deadlock-less locking scheme My question is: - Should I change to 2.2pre1 for my productive environment? How can I switch back if we discover other problems with this pre-release? - Is there a patch for version 2.1. that fixes these deadlocks? Please help. Thanks in advance Arne v.Irmer Our configuration: Slide 2.1 with fixed hasmap suspendedLocks in org.apache.slide.store.ExtendedStore. using a filestore in Tomcat 5.5 Here are some stacktraces from the jconsole in the case of the deadlocks: Name: http-129.217.205.43-8080-Processor3 State: TIMED_WAITING on [EMAIL PROTECTED] Total blocked: 273 Total waited: 332 Stack trace: java.lang.Object.wait(Native Method) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:241) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:165) org.apache.slide.webdav.method.AbstractWebdavMethod.assureGlobalWriteLock(AbstractWebdavMethod.java:847) org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:362) org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) Name: http-129.217.205.43-8080-Processor3 State: TIMED_WAITING on [EMAIL PROTECTED] Total blocked: 44 Total waited: 80 Stack trace: java.lang.Object.wait(Native Method) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:241) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:165) org.apache.slide.webdav.method.AbstractWebdavMethod.assureGlobalReadLock(AbstractWebdavMethod.java:838) org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:360) org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178
Re: Deadlocks in the Filestore of Silde 2.1
Using the latest source from SVN you can set the sequential-mode to fail-fast now. This checks for read/write conflicts, but does not block anything in case of a conflict. It will instead fail immedeatly with a conflict error. HTH Oliver 2007/4/18, aslam bari [EMAIL PROTECTED]: I was also facing this problem before. After that i did a small change and now it is working fine. What i did is:- 1) In domain.xml change sequential-mode parameter to full from fine-grain like this:- parameter name=sequential-modefull/parameter 2)If you are using (Lucenen Indexing) then In Domain.xml use asyncron mode for this and also set priority to lowest like 1:- like this:- contentindexer classname=org.apache.slide.index.lucene.LuceneContentIndexer parameter name=indexpath${filespath}/../data/store/index_content/parameter parameter name=asynchronfalse/parameter parameter name=priority1/parameter parameter name=analyzerorg.apache.lucene.analysis.standard.StandardAnalyzer/parameter parameter name=max-field10/parameter /contentindexer Thanks - Original Message From: Oliver Zeigermann [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org; [EMAIL PROTECTED] Sent: Wednesday, 18 April, 2007 12:31:42 AM Subject: Re: Deadlocks in the Filestore of Silde 2.1 I was just having a look at the 2.2 code and it looks that you can even switch off locking completely. Otherwise the locking code in 2.2 looks much better than the code in 2.1 Oliver 2007/4/17, Oliver Zeigermann [EMAIL PROTECTED]: Hi Arne! The stack trace tells you that another thread has the global read/write lock. So, correctly speaking this is a live lock. The reason most likely is a thread that still runs and has forgotten to release this lock. Having said this, even switching to a deadlock free solution will not help, as you have no deadlocks here. Cheers Oliver 2007/4/17, Arne v.Irmer [EMAIL PROTECTED]: Hi, we are using slide in our e-learning platform http://ews2.uni-dortmund.de in a production environment. We get into deep trouble with deadlocks in Slide! I checked out Silde 2.2pre1. In the RELEASE-NOTES-2.2 there is the sentence: - New option for a fine grained, deadlock-less locking scheme My question is: - Should I change to 2.2pre1 for my productive environment? How can I switch back if we discover other problems with this pre-release? - Is there a patch for version 2.1. that fixes these deadlocks? Please help. Thanks in advance Arne v.Irmer Our configuration: Slide 2.1 with fixed hasmap suspendedLocks in org.apache.slide.store.ExtendedStore. using a filestore in Tomcat 5.5 Here are some stacktraces from the jconsole in the case of the deadlocks: Name: http-129.217.205.43-8080-Processor3 State: TIMED_WAITING on [EMAIL PROTECTED] Total blocked: 273 Total waited: 332 Stack trace: java.lang.Object.wait(Native Method) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:241) org.apache.commons.transaction.locking.GenericLock.acquire(GenericLock.java:165) org.apache.slide.webdav.method.AbstractWebdavMethod.assureGlobalWriteLock(AbstractWebdavMethod.java:847) org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:362) org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool
Re: Release the webdav client and consider moving it into a jakarta's commons Httpclient
If anyone is willing to do some work in the client: Is it easily possible to add form based authentication to allow access to Exchange servers having this form of authentication? More info can be found here: http://www.infinitec.de/articles/exchange/webdavwithfba.aspx Cheers Oliver 2007/4/5, Oliver Zeigermann [EMAIL PROTECTED]: It does make sense also from the technical view. AFAIK client and server are independent developments. Oliver 2007/4/5, Martin van den Bemt [EMAIL PROTECTED]: Does it also make technical sense or are there no shared deps between server and client ? Willing to drive this (the only things I did in Slide was working on the client). At the earliest I would do this after or at apachecon, since I am really swamped till the end of the month Mvgr, Martin Oliver Zeigermann wrote: Maybe it is a good idea to move the WebDAV client library to Jakarta Commons. However, there must be an individual driving the process. Oliver 2007/4/4, Kostis Anagnostopoulos [EMAIL PROTECTED]: Hi to all developers, I hava noticed that the WebDAV client library is a very important piece for many other projects. But the latest stable version is 2.1, release 2 and a half years ago! (According to this: http://apache.otenet.gr/dist/jakarta/slide/binaries/) I would like to ask: 1) Are there any plans for releasing a newer version of slide webdav client? 2) Does anybody agree on me that the WebDAV functionality may belong to the Apache commons HTTP-Client library? (I hope) I'm not starting a flame-war, i just wish that this useful project gets some stable deliverables that others can depend on! Regards, Kostis - 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: Release the webdav client and consider moving it into a jakarta's commons Httpclient
Maybe it is a good idea to move the WebDAV client library to Jakarta Commons. However, there must be an individual driving the process. Oliver 2007/4/4, Kostis Anagnostopoulos [EMAIL PROTECTED]: Hi to all developers, I hava noticed that the WebDAV client library is a very important piece for many other projects. But the latest stable version is 2.1, release 2 and a half years ago! (According to this: http://apache.otenet.gr/dist/jakarta/slide/binaries/) I would like to ask: 1) Are there any plans for releasing a newer version of slide webdav client? 2) Does anybody agree on me that the WebDAV functionality may belong to the Apache commons HTTP-Client library? (I hope) I'm not starting a flame-war, i just wish that this useful project gets some stable deliverables that others can depend on! Regards, Kostis - 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: State of Slide project
Hi Michael! Here it is: http://jakarta.apache.org/site/mail2.html#General Cheers Oliver 2006/7/30, Michael Oliver [EMAIL PROTECTED]: I'd love to, what is the subscription email address? Michael Oliver CTO Alarius Systems LLC 6800 E. Lake Mead Blvd, #1096 Las Vegas, NV 89156 Phone:(702)866-9034 Cell:(518)378-6154 Fax:(702)974-0341 -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Saturday, July 29, 2006 10:21 AM To: Slide Users Mailing List; Slide Developers Mailing List Subject: State of Slide project Hi folks! I have just started a discussion about what is the state of the Slide project in the Jakarta general list. I'd be glad if people from this took part in that discussion! Cheers and thanks in advance Oliver - 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]
State of Slide project
Hi folks! I have just started a discussion about what is the state of the Slide project in the Jakarta general list. I'd be glad if people from this took part in that discussion! Cheers and thanks in advance Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Questions on Sequential-modes and the next release?
sequential-mode = write blocks *all other* write requests. As the parent folder is modified as well it is certainly also locked by the database. Actually, Slide hasn't been designed with much consideration for high concurrency as it seems. Did you try the version with the fine-grain locks and low database isolation? I would be interested in the results... Cheers Oliver 2006/7/24, Eirikur Hrafnsson [EMAIL PROTECTED]: Actually we have that set to false already but since it seems a PUT of a resource locks its parent folder also with sequential-mode = write so it still waits. Is that correct behaviour? -Eiki On 24.7.2006, at 11:46, Darren Hartford wrote: For example a webapp we created automatically gets RSS feeds and stores them in Slide every 20 minutes. The frontpage of the webapp then tries to read these files via an Ajax RSS reader and has to wait until the writes are finished. I would much rather (if versions are enabled) that while the PUT is going on the GET would get the last version available but otherwise wait until the PUT is done and only that resource gets locked up for the moment. Is that possible today? I was playing in domain.xml under the configuration, there is an option for: parameter name=all-methods-in-transactionsfalse/parameter This normally defaults to true, but according to the javadoc/documentation, turning this false will allow read-only actions to not use transactions. I only did minor testing with this, but what testing I did (performance-oriented on read-only without any other transactions) actually had sporadic results from quite good to same-as-before. The sporadic results got me a little worried so I haven't tested any further but this may assist you! -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: Questions on Sequential-modes and the next release?
2006/7/22, Oliver Zeigermann [EMAIL PROTECTED]: Does fine-grained work better? Fine grain locking only locks those folders that are actually concerned by an action. This may lead to some form of - very hard to explain - distributed deadlock, though. Depending on your database and then again isolation level. One addition: Theoretically, fine grain locking should work fine when all locking is done in the application, i.e. Slide. This can either be achieved by using an optimistic, non-blocking isolation strategy (like serializable with Oracle) or a very low one (read uncommitted). I haven't tried this practically, though, but might be worth an experiment. Cheers Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Questions on Sequential-modes and the next release?
Hey, Eirikur 2006/7/21, Eirikur Hrafnsson [EMAIL PROTECTED]: what problems could I run into if I use sequential-mode = OFF ? This completely disables Slide's internal locking. It might cause some weired concurrency errors as Slide's internal cache only supports an isolation level similar to read committed. If you set your databases isolation level to read committed as well this should be more consistent. However, this isolation level might not be appropritate to what you do. Another secure solution would be to switch off caching and set database isolation to serializable. The performance penalty is disastrous, though. We're running webapplications on Slide with various databases and today we are using WRITE mode but I find it bothersome that a whole folder is locked for read access when a long write is happening to one of its files. Does fine-grained work better? Fine grain locking only locks those folders that are actually concerned by an action. This may lead to some form of - very hard to explain - distributed deadlock, though. Depending on your database and then again isolation level. An alternative is the option to retry upon conflict. This comes at a general performance penalty, but may be a good option. More details at http://wiki.apache.org/jakarta-slide/ConcurrencyIssues For example a webapp we created automatically gets RSS feeds and stores them in Slide every 20 minutes. The frontpage of the webapp then tries to read these files via an Ajax RSS reader and has to wait until the writes are finished. I would much rather (if versions are enabled) that while the PUT is going on the GET would get the last version available but otherwise wait until the PUT is done and only that resource gets locked up for the moment. Is that possible today? Might work if you upload to a diffrent file name and later move it to the desired one. Move generally should be be faster than put. And the last question...when will the next stable version of Slide be released? Don't ask me. I have no idea. Cheers Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Domain.xml - what is 'sequential-mode'?
This should be explained here: http://wiki.apache.org/jakarta-slide/ConcurrencyIssues Oliver 2006/7/20, Darren Hartford [EMAIL PROTECTED]: In domain.xml, configuration node, what is this configuration option used/useful for? !-- Can be off, fine-grain, write and full -- parameter name=sequential-modefine-grain/parameter Specifically in regards to optimizing for search/read performance while still maintaining write-integrity. Thanks, -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]
Re: Slide concurrency / sequential-mode
Well, the idea of the sequential mode is to avoid deadlocks. If you turn it off, you may experience deadlocks. It depends on your RDBMS how ofter they occur. Trying sequential mode write where there is at most one write at a time, but concurrent reads are possible may be something to try. I started implementing a locking that only blocks concurrent writes to the same directory, but never really finished that. Judging from my very limited current and future time resources, I am afraid I never will. Oliver On 7/2/05, Peder Nordvaller [EMAIL PROTECTED] wrote: Hello, I've deployed a clean installation of Slide 2.1 (as a webapp/.war), and configured it to be used with MySQL 4.1 which works like a charm. However, when I try to upload several files that takes a while to transfer at once to a directory they seem to be uploaded sequentially which hinders concurrent performance when many users put files. I noticed the configuration-parameter sequential-mode that was set to full in the base installation of slide: !-- Can be off, write and full -- parameter name=sequential-modefull/parameter But when I change it to off to allow concurrent puts of files, all PUT's done while another one is currently uploading eventually fails, with a Deadlock-error in the logs (see below). Is it not possible to turn off the sequential-mode to achieve better concurrency in Slide, or have I configured slide wrong in any way? Regards, Peder 02 Jul 2005 00:00:53 - org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter - ERROR - SQL error 1205 on /files/test/David_o_Mickey_02.tif: Deadlock found when trying to get lock; Try restarting transaction message from server: Lock wait timeout exceeded; try restarting transaction java.sql.SQLException: Deadlock found when trying to get lock; Try restarting transaction message from server: Lock wait timeout exceeded; try restarting transaction at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1997) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1906) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:997) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:296) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1325) at com.mysql.jdbc.Connection.execSQL(Connection.java:2247) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1586) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveObject(StandardRDBMSAdapter.java:273) at org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveObject(AbstractRDBMSStore.java:416) at org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:594) at org.apache.slide.store.ExtendedStore.retrieveObject(ExtendedStore.java:574) ... org.apache.slide.common.ServiceAccessException: Service [EMAIL PROTECTED] access error : Deadlock found when trying to get lock; Try restarting transaction message from server: Lock wait timeout exceeded; try restarting transaction at org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter.createException(MySqlRDBMSAdapter.java:66) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveObject(StandardRDBMSAdapter.java:350) at org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveObject(AbstractRDBMSStore.java:416) ... - 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: A sporadic ConcurrentModificationException
) at java.lang.Thread.run(Thread.java:536) Yours sincerely, Andrey. -Original Message- From: Slide Users Mailing List [mailto:[EMAIL PROTECTED] Sent: Monday, June 06, 2005 4:30 AM To: Slide Users Mailing List slide-user@jakarta.apache.org Subject: Re: A sporadic ConcurrentModificationException Importance: Low Andrey Shulinsky wrote: After upgrade from Slide 2.0 to 2.1 I'm getting the java.util.ConcurrentModificationException followed by the org.apache.commons.transaction.file.ResourceManagerException from time to time: java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList .java:444) at java.util.AbstractList$Itr.next(AbstractList.java:417) at org.apache.slide.event.EventCollectionFilter.getCreatedContents(EventC ollect ionFilter.java:60) at org.apache.slide.webdav.event.NotificationTrigger.notifySubscribers(No tifica tionTrigger.java:177) at org.apache.slide.webdav.event.NotificationTrigger.collected(Notificati onTrig ger.java:164) at org.apache.slide.event.EventCollection$Collected.fireEvent(EventCollec tion.j ava:90) at org.apache.slide.event.EventDispatcher.fireEvent(EventDispatch er.java:72) at org.apache.slide.event.TransientEventCollector$1.run(TransientEventCol lector .java:49) at java.lang.Thread.run(Thread.java:536) 12 May 2005 21:40:35 - file-meta-store - WARNING - Could not process URI '/files'! Thread Thread[TP-Processor4,5,main] marking transaction branch null for rollback org.apache.commons.transaction.file.ResourceManagerException: 103d3b5c86a: Unknown transaction at org.apache.commons.transaction.file.FileResourceManager.txInitialSaneC heck(F ileResourceManager.java:908) Since this seems to be releated to Commons Transaction and thread-safety/ concurrency, I think it can be related to bugzilla ID 35201. See http://issues.apache.org/bugzilla/show_bug.cgi?id=35201 Oliver Zeigermann just fixed this i Commons Transaction and committed a new JAR to Slide. (It's both in HEAD and 2.1 branch.) Try upgrading Slide to get commons-transaction-1.1.1pre1.jar and see if this resolves your problem. If not, I am sure Oliver can verify if this is another similar Commons Transaction issue and produce a fix. Regards, Martin - 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: NoSuchmethod occured when common-transaction.jar is updated
I guess rebuilding Slide from source is the only solution if you use OJB with commons transaction 1.1. Oliver On 5/24/05, KeyEvent [EMAIL PROTECTED] wrote: I am combining slide with ojb in my current project. After I updated the ojb to latest version, which is using common-transaction1.1b2.jar instead of common-transaction1.0.jar, a NoSuchmethod exception will occur showing that AbstractWebdavMethod.releaseGlobalLock() can not find the release(object) method. After debugging, I found that the release() method in common-transaction1.0.jar return void while common-transaction1.1b2.jar returns boolean, which cause the AbstractWebdavMethod throws NoSuchmethod exception. I am wondering if there is any solution other than rebuild the jakarta-slide-webdavlib-2.1.jar with the common-transaction1.1b2.jar. Thanks in advance. Li - Do You Yahoo!? 150MP3 1G1000
Re: NEWBIE: Full Custom Store
Have you considered using WCK instead? Oliver On 5/4/05, Derek Richardson [EMAIL PROTECTED] wrote: Hi. I'm new to Slide and am interested in using it to provide webDAV implemented on top of another CMS. I found the IntroFullCustomStore page on the wiki (http://wiki.apache.org/jakarta-slide/IntroFullCustomStore), which details what I need to do. I am confused by the following paragraph: Anyway, looking at your store this way you have to specify six interfaces - and an optional one - for a complete store definition. Additionally, you will need to implement an XAResource to let your store participate in a distributed transaction. This interface is specified by the JTA and is needed by Slide's internal transaction manager which also is more or less compliant to the JTA. Slide also requires the implementation of org.apache.slide.common.Service. I'd recommend to start from AbstractServiceBase as it sensibly implements many of the methods in Service interface. The six interfaces are later listed as: 1: RevisionDescriptorStore 2: ContentStore 3: RevisionDescriptorsStore 4: NodeStore 5: SecurityStore 6: LockStore According to the above paragraph, I also need to implement Service and XAResource, which makes for eight types to implement and I'm unsure about what is supposed to the the optional one that I apparently *must* implement, as well. Will someone clarify this for me? Thanks. - 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: NEWBIE: Full Custom Store
Not impolite at all, I understand your reservation. While I am the original author of WCK, I am currently not actively involved in neither developing Slide further nor in any release roadmaps. Sorry... Still when developing your own store you can still have a look at WCK for inspiration as it is a normal store implementation as well. E.g. have a look at org.apache.slide.simple.store.WebdavStoreAdapter which extends AbstractXAServiceBase and implements Service, ContentStore, NodeStore, LockStore, RevisionDescriptorStore and RevisionDescriptorsStore Oliver On 5/4/05, Derek Richardson [EMAIL PROTECTED] wrote: Yes, I think I would prefer to use WCK, since it's targeted for this purpose (I haven't looked at it yet). However, I am concerned about using it in production without a final release. Is there a timeframe for a release that would include WCK? Please excuse the impolite question, but it's critical to my ability to use. ;) Thanks. -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 3:21 PM To: Slide Users Mailing List Subject: Re: NEWBIE: Full Custom Store Have you considered using WCK instead? Oliver On 5/4/05, Derek Richardson [EMAIL PROTECTED] wrote: Hi. I'm new to Slide and am interested in using it to provide webDAV implemented on top of another CMS. I found the IntroFullCustomStore page on the wiki (http://wiki.apache.org/jakarta-slide/IntroFullCustomStore), which details what I need to do. I am confused by the following paragraph: Anyway, looking at your store this way you have to specify six interfaces - and an optional one - for a complete store definition. Additionally, you will need to implement an XAResource to let your store participate in a distributed transaction. This interface is specified by the JTA and is needed by Slide's internal transaction manager which also is more or less compliant to the JTA. Slide also requires the implementation of org.apache.slide.common.Service. I'd recommend to start from AbstractServiceBase as it sensibly implements many of the methods in Service interface. The six interfaces are later listed as: 1: RevisionDescriptorStore 2: ContentStore 3: RevisionDescriptorsStore 4: NodeStore 5: SecurityStore 6: LockStore According to the above paragraph, I also need to implement Service and XAResource, which makes for eight types to implement and I'm unsure about what is supposed to the the optional one that I apparently *must* implement, as well. Will someone clarify this for me? Thanks. - 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: slide alternatives
I agree that threre is a lot of extra baggage that might not be necessary for all (most) applications, but that simply may be the drawback of a general solution. It will fit many applications, so it is not specially geared towards yours. Before I contributed to WCK I was considering a much more lean and slim solution, but I that would have meant lots of double work. Additionally, by making it as generic as the Slide WCK solution it would almost have ended up in a similar complexity. Just my 2 cents. Oliver On Tue, 29 Mar 2005 17:23:29 +0900, Bill Keese [EMAIL PROTECTED] wrote: Thanks Edmund. I have been using WCK but still have that feeling of so much extra baggage, not to mention extra config files. Yes, I want to write a class that implements an interface like the interface you implement with WCK. As for lock management, I can't use Slide's lock manager because there are multiple interfaces to my application, so files might be locked/unlocked from outside the webdav arena. (Like you might lock a file via a SOAP call, and then that has to be reflected to a user accessing the file over WEBDAV) Edmund Urbani wrote: Bill Keese wrote: For webdav-enabling an existing java application, I'm just wondering what the alternatives are to Slide, . Since Slide is a content management system with a webdav service built on top of it, it functions well as a CMS but it's overkill when you want to Webdav-enable an existing system. It does all sorts of user-management and lock-management stuff that I don't want. I feel like I just want something that converts the HTTP requests into calls to java functions. (And also does the XML serialize/deserialize for stuff like PROPFIND.) Comments? Bill I don't really know of any free alternatives to Slide, but integration should not be too hard with the WebDAV Construction Kit (WCK). After all, that's what it is for. You can find WCK is in the Slide CVS. There has been no release yet AFAIK. I think you can disable (most of) the user management stuff and simply configure tomcat to do no authentication. And the lock management - well, that kind of comes for free - no administrative overhead, so why get rid of it? Edmund - 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: PUT of large file locks Collection?
Yes. Oliver On Mon, 21 Mar 2005 16:36:17 -1000, Seth Ladd [EMAIL PROTECTED] wrote: Hello, I am testing PUT with a large file. While the file is being uploaded, no other clients are able to list the contents of the collection. Does using PUT into a collection lock the collection? Thanks very much! Seth -- a href=http://www.picklematrix.net/foaf.rdf;Seth Ladd's FOAF/a a href=http://www.foaf-project.org/;What is FOAF?/a - 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: Compression options for TxFileContentStore, TxXMLFileDescriptorsStore?
There is no such option, but patches for that would be welcome. Oliver On Fri, 11 Mar 2005 09:54:21 -0500, Darren Hartford [EMAIL PROTECTED] wrote: Hey all, I may just be blind and not see how to set it up, but is there any configuration options for the 'TxFileContentStore' to auto-compress (and uncompress) object files? Something similar for the TxXMLFileDescriptorsStore would be nice too for large-volume stores (for TxXMLFileDescriptorsStore, obviously if compressed highly recommend using Lucene indexing for searching instead of default DASL search). Thanky, -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK Update
Talking about ._ and content directories I assume your client is the Mac which tries to save meta information in there. This is nothing Slide does. Oliver On Wed, 16 Feb 2005 13:22:03 -0800, Brian Lee [EMAIL PROTECTED] wrote: Can anyone tell me from a high level - what happens when a user tries to update an existing file while using WCK? The reason being is that my application stores files differently than what is exposed to users. (ie A file is stored as '/4/2/3/file.txt' but the user only sees file.txt in his webDAV folder and not the file's true path). Therefore I need to handle things that Slide and our application's users do differently - the problem being for update, I'm not really sure what Slide does. Currently I am having problems updating existing files using my custom WCK based store. So far, I notice files that start with ._ appear and disappear and I notice the system trying to create 'Content' directories. Can anyone shed some light (steps, what type of files are created, when they are deleted, and so on)? Thanks Brian Note: I will record any answers I get in the wiki. (I'm actually in the process of making a more detailed step by step, user documentation for WCK for both my own reference and people new to Slide.) - 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: WCK NPE with litmus
Thanks for reporting. Of course no test should cause a NullPointerException. I have committed a patch that adapts WCK to the new PropertyName version that should fix this issue. Oliver On Sat, 05 Feb 2005 05:07:08 +0200, Roman D [EMAIL PROTECTED] wrote: Hi, I have store with WCK, and when testing with litmus I get a java.lang.NullPointerException at org.apache.slide.common.PropertyName.getPropertyName(PropertyName.java:121) at org.apache.slide.content.NodeProperty.init(NodeProperty.java:117) at org.apache.slide.simple.store.WebdavStoreAdapter$TransactionId.retrieveRevisionDescriptor(WebdavStoreAdapter.java:625) It has something to do with namespaces, and it happens when litmus test for setting property http://something/something/;, value something Storing of properties implemented same as reference WebdavFileStore, so I am wondering, Is WCK WebDAV-compliant according to litmus test? Should WCK-based implementation be expected to pass all litmus tests ? Thanks. - 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: Procedure for adding code ? Updated inheritable properties
I have just committed the patch to the Slide CVS Head which will become Slide 2.2. Applying it to the 2.1 branch was not appropriate as it is a new feature and only bug fixes should go into it. Nick, could you please check if everything looks alright now? Oliver On Thu, 3 Feb 2005 10:18:58 -0500, Nick Longinow [EMAIL PROTECTED] wrote: I'd ask one of the committers for a date. Till then, you and anyone else is welcome to use the patched source. Nick -Original Message- From: Krishna Kankipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 3:43 PM To: 'Slide Users Mailing List' Subject: RE: Procedure for adding code ? Updated inheritable properties Nick, We are waiting on this fix for a release this month end, do you think this patch will be approved by then? Where do I get the patch from . Krishna -Original Message- From: Nick Longinow [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 1:18 PM To: 'Slide Users Mailing List' Subject: RE: Procedure for adding code ? Updated inheritable properties You might have to wait longer; I don't know how long it takes for the committers to actually apply the patch, assuming they even accept it. Nick -Original Message- From: Krishna Kankipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 3:12 PM To: 'Slide Users Mailing List' Cc: Martin Olovsson Subject: RE: Procedure for adding code ? Updated inheritable properties Nick, Great, I have been waiting for this change for quiet some time ... thanks a bunch Krishna -Original Message- From: Nick Longinow [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 1:11 PM To: 'Slide Users Mailing List' Subject: RE: Procedure for adding code ? Updated inheritable properties Yes. Exactly so. -Original Message- From: Krishna Kankipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 3:06 PM To: 'Slide Users Mailing List' Subject: RE: Procedure for adding code ? Updated inheritable properties Nick, Does this mean that with this patch we can use webdav client to add Ace that has inheritable false to an ACL? Basically I am trying to use webdav client to be able to create a permission that should not inherit down the repository tree. Is it possible with your code change? Krishna -Original Message- From: Nick Longinow [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 9:53 AM To: 'Slide Users Mailing List' Subject: RE: Procedure for adding code ? Updated inheritable properties Will do. -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 4:50 PM To: Slide Users Mailing List Subject: Re: Procedure for adding code ? Updated inheritable properties Would be best to create a bugzilla entry and attach your paches. Oliver On Tue, 1 Feb 2005 14:45:27 -0500, Nick Longinow [EMAIL PROTECTED] wrote: I've (with much help) added parameters to the Ace plumbing to add the attribute 'inheritable' to an Ace. What is the process for returning this code to the Slide community so that it becomes part of the products ? (both server and webdav client were updated). Nick - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Procedure for adding code ? Updated inheritable properties
Would be best to create a bugzilla entry and attach your paches. Oliver On Tue, 1 Feb 2005 14:45:27 -0500, Nick Longinow [EMAIL PROTECTED] wrote: I've (with much help) added parameters to the Ace plumbing to add the attribute 'inheritable' to an Ace. What is the process for returning this code to the Slide community so that it becomes part of the products ? (both server and webdav client were updated). Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mainline broken?
No idea, for me it works fine: ojb-sql: [sqlgen] Generating mysql DDL -- slide-schema-mysql.sql [sqlgen] Generating mysql41 DDL -- slide-schema-mysql41.sql [sqlgen] Generating postgresql DDL -- slide-schema-postgresql.sql [sqlgen] Generating oracle DDL -- slide-schema-oracle.sql Oliver On Tue, 01 Feb 2005 14:29:38 -0500, John Rousseau [EMAIL PROTECTED] wrote: I just updated from HEAD for the first time in a few weeks and I'm seeing the following when trying to build from the top or from WCK. Ideas? Thanks -John ojb-sql: [sqlgen] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [sqlgen] Generating mysql DDL -- slide-schema-mysql.sql [sqlgen] ResourceManager : unable to find resource 'mysql.vm' in any resource loader. [sqlgen] org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'mysql.vm' [sqlgen] at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:501) [sqlgen] at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:384) [sqlgen] at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:814) [sqlgen] at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:482) [sqlgen] at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:461) [sqlgen] at org.apache.slide.store.ojb.tools.DDLGeneratorTask.processDatabase(DDLGeneratorTask.java:223) [sqlgen] at org.apache.slide.store.ojb.tools.DDLGeneratorTask.execute(DDLGeneratorTask.java:141) [sqlgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) [sqlgen] at org.apache.tools.ant.Task.perform(Task.java:401) [sqlgen] at org.apache.tools.ant.Target.execute(Target.java:338) [sqlgen] at org.apache.tools.ant.Target.performTasks(Target.java:365) [sqlgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1237) [sqlgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1094) [sqlgen] at org.apache.tools.ant.Main.runBuild(Main.java:669) [sqlgen] at org.apache.tools.ant.Main.startAnt(Main.java:220) [sqlgen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) [sqlgen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) [sqlgen] org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'mysql.vm' [sqlgen] at org.apache.slide.store.ojb.tools.DDLGeneratorTask.processDatabase(DDLGeneratorTask.java:228) [sqlgen] at org.apache.slide.store.ojb.tools.DDLGeneratorTask.execute(DDLGeneratorTask.java:141) [sqlgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) [sqlgen] at org.apache.tools.ant.Task.perform(Task.java:401) [sqlgen] at org.apache.tools.ant.Target.execute(Target.java:338) [sqlgen] at org.apache.tools.ant.Target.performTasks(Target.java:365) [sqlgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1237) [sqlgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1094) [sqlgen] at org.apache.tools.ant.Main.runBuild(Main.java:669) [sqlgen] at org.apache.tools.ant.Main.startAnt(Main.java:220) [sqlgen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) [sqlgen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) [sqlgen] Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'mysql.vm' [sqlgen] at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:501) [sqlgen] at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:384) [sqlgen] at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:814) [sqlgen] at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:482) [sqlgen] at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:461) [sqlgen] at org.apache.slide.store.ojb.tools.DDLGeneratorTask.processDatabase(DDLGeneratorTask.java:223) [sqlgen] ... 11 more [sqlgen] --- Nested Exception --- [sqlgen] org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'mysql.vm' [sqlgen] at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:501) [sqlgen] at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:384) [sqlgen] at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:814) [sqlgen] at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:482)
Re: UserRoleImpl missing 4 param constructor?
Previously, I used SubjectNode as the role and now UserRoleImpl has this ctor. Oliver On Wed, 26 Jan 2005 14:27:01 -0800, Warwick Burrows [EMAIL PROTECTED] wrote: Hi guys, Up until now I have had the authentication/security features of Slide disabled. Now that I have to come to play with making use of users I'm having a problem after slide server restart with loading users from the db. The users were created using the auto-create-mechanism and were created in the object table with class name UserRoleImpl and when SecurityImpl.getPrincipal() tries to retrieve a user from the store it is getting an exception when trying to construct a UserRoleImpl class because the code in StandardrDBMSAdapter expects a 4 parameter constructor which UserRoleImpl doesn't have. Its super class (SubjectNode) does have a 4 parameter constructor. So how is it possible that auto-create-users has worked and that UserRoleImpl structures could ever have been successfully constructed when there is no 4 parameter constructor? Thanks, Warwick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UserRoleImpl missing 4 param constructor?
Seems you did understand my reply;) Changes are both CVS head as well as 2.1 branch. Oliver On Wed, 26 Jan 2005 16:18:13 -0800, Warwick Burrows [EMAIL PROTECTED] wrote: Sorry, I didn't understand the reply :-) Do you mean that you recently added the 4 param ctor to UserRoleImpl and that I can pick up the change? Which branch is it in? I compared my version of this file against 2.1 and head and didn't see any changes to UserRoleImpl. Or is there something else I'm missing here? I added a 4 parameter ctor to UserRoleImpl myself and (just like the others) it calls its super class (SubjectNode) equivalent and this seems to work. Warwick -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 5:40 PM To: Slide Users Mailing List Subject: Re: UserRoleImpl missing 4 param constructor? Previously, I used SubjectNode as the role and now UserRoleImpl has this ctor. Oliver On Wed, 26 Jan 2005 14:27:01 -0800, Warwick Burrows [EMAIL PROTECTED] wrote: Hi guys, Up until now I have had the authentication/security features of Slide disabled. Now that I have to come to play with making use of users I'm having a problem after slide server restart with loading users from the db. The users were created using the auto-create-mechanism and were created in the object table with class name UserRoleImpl and when SecurityImpl.getPrincipal() tries to retrieve a user from the store it is getting an exception when trying to construct a UserRoleImpl class because the code in StandardrDBMSAdapter expects a 4 parameter constructor which UserRoleImpl doesn't have. Its super class (SubjectNode) does have a 4 parameter constructor. So how is it possible that auto-create-users has worked and that UserRoleImpl structures could ever have been successfully constructed when there is no 4 parameter constructor? Thanks, Warwick - 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: auto-create-users problem
I had a similar problem and using org.apache.slide.structure.SubjectNode seemed to fix the problem. Anyway, the real source of the problem is that UserRoleImpl is lacking the right constructor which I am adding now... Oliver On Tue, 25 Jan 2005 10:57:05 +, Luke Noel-Storr [EMAIL PROTECTED] wrote: Hi, I am having trouble trying to use auto-create-users. It seems to work fine to start with, and everything works as expected with an auto added user, but then after re-starting Tomcat I get the following error: java.lang.NoSuchMethodException: slideroles.basic.UserRoleImpl.init(java.lang.String, java.util.Vector, java.util.Vector, java.util.Vector) at java.lang.Class.getConstructor0(Class.java:1929) at java.lang.Class.getConstructor(Class.java:1019) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveObject(StandardRDBMSAdapter.java:342) at org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveObject(AbstractRDBMSStore.java:395) at org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:611) at org.apache.slide.store.ExtendedStore.retrieveObject(ExtendedStore.java:574) at org.apache.slide.security.SecurityImpl.getPrincipal(SecurityImpl.java:989) at org.apache.slide.lock.LockImpl.checkLock(LockImpl.java:387) at org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:162) at org.apache.slide.webdav.method.AbstractWebdavMethod.isLockNull(AbstractWebdavMethod.java:999) at org.apache.slide.webdav.method.GetMethod.executeRequest(GetMethod.java:178) at org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:386) at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:164) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688) at java.lang.Thread.run(Thread.java:534) org.apache.slide.common.ServiceAccessException: Service [EMAIL PROTECTED] access error : slideroles.basic.UserRoleImpl.init(java.lang.String, java.util.Vector, java.util.Vector, java.util.Vector) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveObject(StandardRDBMSAdapter.java:346) at org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveObject(AbstractRDBMSStore.java:395) at org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:611) at
Re: JCA Connector/authentication
No real idea. Have you tried it with the Slide command line client? Does it work? Oliver On Mon, 24 Jan 2005 12:31:12 +0200, Andrew Tibets [EMAIL PROTECTED] wrote: Hello, I use Slide with jaas on OC4J. I packaged slide.war with ejb module to ear file. When I access Slide through browser the login window appears, I enter username: root password: root, Slide authentication goes as root. But when I access through WebDAV JCA Connector or DAVExplorer Slide authentication goes as unauthenticated and I cannot access /slide/files. ejb-jar.xml: resource-ref res-ref-namejca/WebDAV-Connector/res-ref-name res-typeorg.apache.webdav.connector.WebDAVConnectionFactory/res-type res-authApplication/res-auth /resource-ref ejb class: url = (String) findEnvEntryValue(SERVER_URI); userName = (String) findEnvEntryValue(SERVER_USER_NAME); password = (String) findEnvEntryValue(SERVER_PASSWORD); timeout = (Integer) findEnvEntryValue(SERVER_TRANSACTION_TIMEOUT); WebDAVConnectionSpec spec = new WebDAVConnectionSpec(url, userName, password, timeout.intValue()); return (WebDAVConnection) factory.getConnection(spec); url = http://pc268/slide/files username = root password = root timeout = 50 log: through browser 05/01/24 11:09:28 JAAS-OC4J: Membership check for group: user failed for user: jazn.com/anonymous 05/01/24 11:09:28 JAAS-OC4J: Membership check for group: root failed for user: jazn.com/anonymous 05/01/24 11:09:28 JAAS-OC4J: Membership check for group: guest failed for user: jazn.com/anonymous 05/01/24 11:09:33 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 11:09:33, root, GET, 200 OK, 31 ms, / log: through DAVExplorer 05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 11:10:52, unauthenticated, OPTIONS, 200 OK, 16 ms, / 05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 11:10:52, unauthenticated, PROPFIND, 207 Multi-Status, 109 ms, / log: through WebDAV JCA Connector 05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain - ERROR - [SlideLoginModule] - Failure during login() - Access denied on /users by user unauthenticated for action /actions/read 05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain - ERROR - org.apache.slide.security.AccessDeniedException: Access denied on /users by user unauthenticated for action /actions/read 05/01/24 11:12:14 org.apache.slide.security.AccessDeniedException: Access denied on /users by user unauthenticated for action /actions/read 05/01/24 11:12:14 at org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:409) 05/01/24 11:12:14 at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:179) 05/01/24 11:12:14 at org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:155) ... 05/01/24 11:12:14 Authentication Failed 05/01/24 11:12:14 Authentication: FAILED. 05/01/24 11:12:14 JAAS-OC4J: Authentication failure for user: Why access through DAVExplorer/Connector is authenticated as unauthenticated? Thanks. -- Best regards, Andrew mailto:[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: If resource is Writable by Principal, must Principal have Read access up to Root node ?
AFAIK, yes, but I think this is logically unnecessary. Oliver On Fri, 21 Jan 2005 11:56:19 -0500, Nick Longinow [EMAIL PROTECTED] wrote: I understood that this was the case with Slide, ie, in order for a principal to have write access to a resource, that principal had to also have read access all the way up the slide tree to the root. Is this still true ? Nick - 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: commons-transaction with WCK?
On Mon, 17 Jan 2005 17:53:36 +0200, Roman D [EMAIL PROTECTED] wrote: I want to use file-level transactions with WCK, and jakarta-commons transaction package seems like obvious choice. I have few questions; 1. Should transaction be created on request level, is it safe for concurrency e.g. in WebDavStore.begin() I have FileResourceManager manager= new FileResourceManager() and in WebdavStore.commit() I have manager.commitTransaction(...); The default store implementation uses the FileResourceManager. Have a look at it as a reference. Or manager instance should be somewhere else, on application level? 2. there is FileResourceManager.createResource() and deleteResource() methods. How do I rename/move? FileResourceManager documentation mentions that it renames/moves files. There is no any rename or move methods. Renaming and moving should be composed of create/delete. Renaming and moving in the documentation refers to the internal mechanisms. 3. Can't find any single example on the web how to use commons-transaction. http://jakarta.apache.org/commons/transaction/ 4. Is there any alternatives? e.g. Resource transaction APIs that may be used with Slide/WCK? File stuff? No idea... Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the mystery of root
On Mon, 17 Jan 2005 23:11:05 +0200, Roman D [EMAIL PROTECTED] wrote: We have WCK implementation and JAAS login modules. JAAS is implemented at Tomcat level of because of Slide/WCK limitation that you can have only one JAAS login module.(We need to have two login modules simultaneously). Why can't you have more then one LoginModule? Anyway, users are authenticated against DB and can access WebDAV, but all users can only do PROPFIND and GET. They get 403 Forbidden for all write operations such as MKCOL, PUT, DELETE. Except for user who's login name is root, that user allowed to do all operations. I know, Domain.xml is not documented, but maybe someone can tell us what is the config problem that only user with login name root have proper full access rights? Rights in Domain.xml correspond to ACLs as described along with the WebDAV spec. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the mystery of root
On Wed, 19 Jan 2005 23:59:27 + (UTC), Sergey Vlasov [EMAIL PROTECTED] wrote: Oliver Zeigermann oliver.zeigermann at gmail.com writes: On Mon, 17 Jan 2005 23:11:05 +0200, Roman D dostick at gmail.com wrote: We have WCK implementation and JAAS login modules. JAAS is implemented at Tomcat level of because of Slide/WCK limitation that you can have only one JAAS login module.(We need to have two login modules simultaneously). Why can't you have more then one LoginModule? You can have several LoginModules, but here is how it is done in WCK. org.apache.slide.simple.authentication.JAASLoginModule is expecting from org.apache.slide.simple.authentication.SessionAuthenticationManager to make decision if a user is valid or not for Slide/WCK. If the user is valid SessionAuthenticationManager will create a connection object for WCK. So SessionAuthenticationManager plays the role of LoginModule. From other hand WCK expects to have only one connection object. What do you mean by WCK expects to have only one connection object? Per request? Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question - is ACL negotiation unchangeable w/ competing rights ?
No, I think this is a misunderstanding. If you ask the security layer if a certain user is allowed to write and it has both read permission from one group and write permission from another group it should be granted write permission. Oliver On Thu, 13 Jan 2005 09:21:25 -0500, Nick Longinow [EMAIL PROTECTED] wrote: Thanks all for replies. This basically means that if a principal has read access in one group and read-write in another, then if the read group comes first, then when a webdav request is made to edit the document, the resource will be streamed to the user in read-only mode. Not desirable in some circumstances... Anyhow, at least I know now how to proceed. thanks again Nick -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 2:09 PM To: Slide Users Mailing List Subject: Re: Question - is ACL negotiation unchangeable w/ competing rights ? I read the spec at http://www.greenbytes.de/tech/webdav/rfc3744.html#acl.evaluation such that the order is important and not strictness. Slide code says the same. Oliver On Wed, 12 Jan 2005 13:15:16 -0500, Nick Longinow [EMAIL PROTECTED] wrote: Hi If a resource (document) in Slide has an ACL with multiple entries for the same principal, the spec (as I recall it) says that the lesser permission is applied to requests. ie, if user has read-only access as a member of one group, and read-write as a member of another group, both of which are named in the resource's ACL, then the user is given only the lesser (read-only). Is there a way to modify this behaviour, ie, such that either the first or last permission is applied ? Ideas ? Nick - 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: Question - is ACL negotiation unchangeable w/ competing rights ?
I read the spec at http://www.greenbytes.de/tech/webdav/rfc3744.html#acl.evaluation such that the order is important and not strictness. Slide code says the same. Oliver On Wed, 12 Jan 2005 13:15:16 -0500, Nick Longinow [EMAIL PROTECTED] wrote: Hi If a resource (document) in Slide has an ACL with multiple entries for the same principal, the spec (as I recall it) says that the lesser permission is applied to requests. ie, if user has read-only access as a member of one group, and read-write as a member of another group, both of which are named in the resource's ACL, then the user is given only the lesser (read-only). Is there a way to modify this behaviour, ie, such that either the first or last permission is applied ? Ideas ? Nick - 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: problem configuring simple example JAAS Authentication
Now this is a question I understand. I guess you are right. I was able to switch on user auto creation by adding auto-create-userstrue/auto-create-users auto-create-users-roleorg.apache.slide.structure.SubjectNode/auto-create-users-role to the configuration section of Domain.xml Oliver On Tue, 11 Jan 2005 11:25:49 +0100, Paul Hussein [EMAIL PROTECTED] wrote: The JAAS authentication for me is working happily. However, I wish to remove the custom authentication within the slide login module and replace it with my own authentication. At the moment a fixed username and password 'jaas' jaas' I would like to know how to do this, as I believe ther is a complication associated with auto creating users, that when I authenticate, I need to tell slide to auto create a user and role for mt foreign authenticated user. What parts do I need to retain in the login module and what parts can I remove ? Regards Paul. Oliver Zeigermann wrote: Hi Paul, if the original JAAS authentication did work for you this does not seem to be a Slide related problem. I have no idea what parts of the Sun tutorial you used or what you even want ot achieve. The information you provide does not give me a clue either. Oliver On Tue, 04 Jan 2005 15:11:49 +0100, Paul Hussein [EMAIL PROTECTED] wrote: I am having a slight problem configuring a simple JAAS authentication using slide 2.1rc1 ( tomcat binary ) and the example code from the JAAS tutorial http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html I have downloaded and build the example code from above and jar'd that up and placed it in common/lib I have modified the jaas.conf to be slide_login { sample.module.SampleLoginModule required namespace=slide; }; And through some debug i have added to the sample login module I can see that the login method takes the credentials and returns true. However i still get HTTP Status 403 - Access to the requested resource has been denied *type* Status report *message* _Access to the requested resource has been denied_ *description* _Access to the specified resource (Access to the requested resource has been denied) has been forbidden._ Apache Tomcat/5.0.28 I have read from the lists that maybe i need to set : auto-create-userstrue/auto-create-users auto-create-users-roleuser/auto-create-users-role Which I have done but I still get the same error. Is there another setting I am missing to get this simple sample JAAS authentication working with Slide. Regards Paul. - 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: problem configuring simple example JAAS Authentication
I see. You will either have to grant the rights to anyone or have a user store that displays the appropriate rights like James has done in the JNDI user store, I guess. If so and you are authenticated, but not authorized, your problem has got nothing to do with JAAS. Oliver On Tue, 11 Jan 2005 17:20:41 +0100, Paul Hussein [EMAIL PROTECTED] wrote: Thanks for the reply. The problem I am having is that from the resources I see available to give me information on how to write my own login module ( for which I am using http://forum.java.sun.com/thread.jspa?threadID=233317tstart=75 to guide me ), all I need to do is replace the Slide login module with my own ( which I have done with a hardcoded authentication ) Add the auto create users/role to the Domain.xml and the JAAS stuff should log me in ok. However, I believe I am being authenticated, as the username and password dialog pops up, but I am not authorised to look at the contents of the slide repository. That is, when I point my browser to 127.0.0.1:8080/slide/files after entering the username and password i get : HTTP Status 403 - Access to the requested resource has been denied As described ( unclearly !!! ) below. If you could point to where I am going wrong, or could look, or if this is a bug I would be greatful. Cheers Paul. Oliver Zeigermann wrote: Now this is a question I understand. I guess you are right. I was able to switch on user auto creation by adding auto-create-userstrue/auto-create-users auto-create-users-roleorg.apache.slide.structure.SubjectNode/auto-create-users-role to the configuration section of Domain.xml Oliver On Tue, 11 Jan 2005 11:25:49 +0100, Paul Hussein [EMAIL PROTECTED] wrote: The JAAS authentication for me is working happily. However, I wish to remove the custom authentication within the slide login module and replace it with my own authentication. At the moment a fixed username and password 'jaas' jaas' I would like to know how to do this, as I believe ther is a complication associated with auto creating users, that when I authenticate, I need to tell slide to auto create a user and role for mt foreign authenticated user. What parts do I need to retain in the login module and what parts can I remove ? Regards Paul. Oliver Zeigermann wrote: Hi Paul, if the original JAAS authentication did work for you this does not seem to be a Slide related problem. I have no idea what parts of the Sun tutorial you used or what you even want ot achieve. The information you provide does not give me a clue either. Oliver On Tue, 04 Jan 2005 15:11:49 +0100, Paul Hussein [EMAIL PROTECTED] wrote: I am having a slight problem configuring a simple JAAS authentication using slide 2.1rc1 ( tomcat binary ) and the example code from the JAAS tutorial http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html I have downloaded and build the example code from above and jar'd that up and placed it in common/lib I have modified the jaas.conf to be slide_login { sample.module.SampleLoginModule required namespace=slide; }; And through some debug i have added to the sample login module I can see that the login method takes the credentials and returns true. However i still get HTTP Status 403 - Access to the requested resource has been denied *type* Status report *message* _Access to the requested resource has been denied_ *description* _Access to the specified resource (Access to the requested resource has been denied) has been forbidden._ Apache Tomcat/5.0.28 I have read from the lists that maybe i need to set : auto-create-userstrue/auto-create-users auto-create-users-roleuser/auto-create-users-role Which I have done but I still get the same error. Is there another setting I am missing to get this simple sample JAAS authentication working with Slide. Regards Paul. - 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
Re: problem configuring simple example JAAS Authentication
WCK supports a different approach in that it does not use Slide access rights at all, but checks them in the store level. This is my last post on this subject. Oliver On Tue, 11 Jan 2005 18:00:15 +0100, Paul Hussein [EMAIL PROTECTED] wrote: I cant believe this is the way it is, as does it not defeat the objective, I thought the objective of JAAS is to allow external authentication. If I need a preconfigured store, then thats not right. Autocreate user autocreates a user with some authentication, so there must be something wrong in the configuration, maybe the wrong user role is being auto created that is not authorised to see stuff. Who wrote this stuff ? Has anyone else written an non Slide JAAS module? Otherwise it seems a lot of effort has been made to create a module that wont work in the correct | clean way. Regards Paul. Oliver Zeigermann wrote: I see. You will either have to grant the rights to anyone or have a user store that displays the appropriate rights like James has done in the JNDI user store, I guess. If so and you are authenticated, but not authorized, your problem has got nothing to do with JAAS. Oliver On Tue, 11 Jan 2005 17:20:41 +0100, Paul Hussein [EMAIL PROTECTED] wrote: Thanks for the reply. The problem I am having is that from the resources I see available to give me information on how to write my own login module ( for which I am using http://forum.java.sun.com/thread.jspa?threadID=233317tstart=75 to guide me ), all I need to do is replace the Slide login module with my own ( which I have done with a hardcoded authentication ) Add the auto create users/role to the Domain.xml and the JAAS stuff should log me in ok. However, I believe I am being authenticated, as the username and password dialog pops up, but I am not authorised to look at the contents of the slide repository. That is, when I point my browser to 127.0.0.1:8080/slide/files after entering the username and password i get : HTTP Status 403 - Access to the requested resource has been denied As described ( unclearly !!! ) below. If you could point to where I am going wrong, or could look, or if this is a bug I would be greatful. Cheers Paul. Oliver Zeigermann wrote: Now this is a question I understand. I guess you are right. I was able to switch on user auto creation by adding auto-create-userstrue/auto-create-users auto-create-users-roleorg.apache.slide.structure.SubjectNode/auto-create-users-role to the configuration section of Domain.xml Oliver On Tue, 11 Jan 2005 11:25:49 +0100, Paul Hussein [EMAIL PROTECTED] wrote: The JAAS authentication for me is working happily. However, I wish to remove the custom authentication within the slide login module and replace it with my own authentication. At the moment a fixed username and password 'jaas' jaas' I would like to know how to do this, as I believe ther is a complication associated with auto creating users, that when I authenticate, I need to tell slide to auto create a user and role for mt foreign authenticated user. What parts do I need to retain in the login module and what parts can I remove ? Regards Paul. Oliver Zeigermann wrote: Hi Paul, if the original JAAS authentication did work for you this does not seem to be a Slide related problem. I have no idea what parts of the Sun tutorial you used or what you even want ot achieve. The information you provide does not give me a clue either. Oliver On Tue, 04 Jan 2005 15:11:49 +0100, Paul Hussein [EMAIL PROTECTED] wrote: I am having a slight problem configuring a simple JAAS authentication using slide 2.1rc1 ( tomcat binary ) and the example code from the JAAS tutorial http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html I have downloaded and build the example code from above and jar'd that up and placed it in common/lib I have modified the jaas.conf to be slide_login { sample.module.SampleLoginModule required namespace=slide; }; And through some debug i have added to the sample login module I can see that the login method takes the credentials and returns true. However i still get HTTP Status 403 - Access to the requested resource has been denied *type* Status report *message* _Access to the requested resource has been denied_ *description* _Access to the specified resource (Access to the requested resource has been denied) has been forbidden._ Apache Tomcat/5.0.28 I have read from the lists that maybe i need to set : auto-create-userstrue/auto-create-users auto-create-users-roleuser/auto-create-users-role Which I have done but I still get the same error. Is there another setting I am missing
Re: Large Files
I have recently discussed this in the dev list: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgNo=15276 1 GB did work for me, but with 2GB you might have reached the maximum file size of your file system. No idea what is the maximum size of a BLOB in the common databases, though Oliver On Mon, 10 Jan 2005 21:24:16 +0530, chaitanya [EMAIL PROTECTED] wrote: Ya iam also facing the same problem, it would be great if some one who has able to upload 2GB. Please let me know the configuration. kind regards chaitu -Original Message- From: George Wu [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 9:21 PM To: slide-user@jakarta.apache.org Subject: Large Files Has anyone successfully used Slide to manage large files (~1GB) including uploading and downloading through WebDAV ? If so, please explain your Slide configuration. Thanks. - 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: Large Files
AFAIK there is a bug in Slide 2.0 that buffers all files in memory. In any case I highly recommend to upgrade to Slide 2.1. Oliver On Mon, 10 Jan 2005 21:43:35 +0530, chaitanya [EMAIL PROTECTED] wrote: thanks oliver, i gone through the URL u have given and i found that, currently what we are using is the slide2.0 do i need to shift to 2.1. Is there any restriction that, we cannot upload large size files in slide. thanks in advance. kind regards chaitu -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 9:27 PM To: Slide Users Mailing List; [EMAIL PROTECTED] Subject: Re: Large Files I have recently discussed this in the dev list: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] .orgmsgNo=15276 1 GB did work for me, but with 2GB you might have reached the maximum file size of your file system. No idea what is the maximum size of a BLOB in the common databases, though Oliver On Mon, 10 Jan 2005 21:24:16 +0530, chaitanya [EMAIL PROTECTED] wrote: Ya iam also facing the same problem, it would be great if some one who has able to upload 2GB. Please let me know the configuration. kind regards chaitu -Original Message- From: George Wu [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 9:21 PM To: slide-user@jakarta.apache.org Subject: Large Files Has anyone successfully used Slide to manage large files (~1GB) including uploading and downloading through WebDAV ? If so, please explain your Slide configuration. Thanks. - 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: implementing MacroStore
On Mon, 10 Jan 2005 13:22:31 -0500, Evan Kracoff [EMAIL PROTECTED] wrote: In order to use the new MacroStore do I need to run the wck? No. How do I configure slide to use the MacroStore interface? You will need a implement it to actually use it. AFAIK this has not been done for the Oracle store, but you are welcome to contribute an implementation ;) Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAAS module
Bug in Tomcat. Upgrade to a new version of Tomat. Oliver On Wed, 5 Jan 2005 13:37:05 -0800, Hung Phan [EMAIL PROTECTED] wrote: Hi all, I have no problem of using JAAS module when installing tomcat 5.0.28 (not bundle) + slide.war after some configuration. A friend of mine has some problem with 5.0.18 even though we went to the same steps to config (as described on the website). The error is WARNING: Login exception authenticating username rootjavax.security.auth.login.LoginException: unable to find LoginModule class: org.apache.slide.jaas.spi.SlideLoginModuleat javax.security.auth.login.LoginContext.invoke(LoginContext.java:711) at javax.security.auth.login.LoginContext.access$000(LoginContext.java: 129)at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at But everything is there (jaas.config, slide-jaas.jar...) Any idea? Thanks, --Hung - 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: lack of help with JAAS
Of course I can only speak for myself here: I have done some work with JAAS, but have absolutely no idea what you are referring to. Do you think Slide developers have written JAAS? Oliver On Fri, 07 Jan 2005 14:36:25 +0100, Paul Hussein [EMAIL PROTECTED] wrote: I have posted twice on this form, and seen a couple of posts from other people about the JAAS stuff that is going without reply. The whole point I thought of writing the JAAS stuff is to enable people to easily use slide. However, if noone is willing to lend a hand when there are no comprehensive instructions, then whats the point of the effort. I am trying to integrate slide into Liferay Portal using the JAAS plugin. This can only help to raise the profile of the slide project. I dont even know where to begin to look. One mail from the guys that wrote the stuff would be invaluable - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[8]: WebDAV JCA status=STATUS_NO_TRANSACTION
Hi Andrew, does that mean it works with commons-tx1.0rc1, but not with the final version? The only changes that were to check if a certain lock level was enabled. Maybe this caused some obscure errors. Is there any other exception, maybe in the log files? Oliver On Wed, 5 Jan 2005 12:02:29 +0200, Andrew Tibets [EMAIL PROTECTED] wrote: Hello Oliver, The error is still being with slide 2.1. The slide.war and webdav-2.1.rar were deployed correctly. For jboss-3.2.5 I used webdav-connector-ds.xml shipped with Slide, for jboss-4.0.0 webdav-connector-ds.xml: connection-factories tx-connection-factory jndi-nameWebDAV-Connector/jndi-name xa-transaction/ track-connection-by-tx/ rar-nametest-webdav-files-0.1.ear#webdav-2.1.rar/rar-name connection-definitionjavax.resource.cci.ConnectionFactory/connection-definition max-pool-size20/max-pool-size /tx-connection-factory /connection-factories In all cases, slide test and my test, I get exception: WARN [org.jboss.tm.TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pc268/14, BranchQual=, localId=14] errorCode=XAER_NOTA javax.transaction.xa.XAException at org.apache.commons.transaction.util.xa.AbstractXAResource.end(AbstractXAResource.java:133) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2031) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2006) ... ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[Test]: Servlet.service() for servlet Test threw exception org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pc268/14, BranchQual=, localId=14] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.transaction.xa.XAException) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344) at org.jboss.tm.TxManager.commit(TxManager.java:200) If I click Ctrl+C, I get message: INFO [org.jboss.system.server.Server] JBoss SHUTDOWN: Undeploying all packages INFO [STDOUT] 05 Jan 2005 10:48:29 - org.apache.slide.common.Namespace - INFO - Shutting down service tx(org.apache.slide.store.ExtendedStore) INFO [STDOUT] 05 Jan 2005 10:48:29 - org.apache.commons.transaction.file.FileResourceManager - INFO - Stopping RM at 'store/metadata' / 'work/metadata' INFO [STDOUT] 05 Jan 2005 10:48:29 - org.apache.commons.transaction.file.FileResourceManager - INFO - Waiting for tx [EMAIL PROTECTED] to finish for 24 milli seconds DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified to shutdown DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Shutdown INFO [STDOUT] 05 Jan 2005 10:52:29 - org.apache.commons.transaction.file.FileResourceManager - WARNING - Tx [EMAIL PROTECTED] failed to finish in given time INFO [STDOUT] 05 Jan 2005 10:52:29 - org.apache.commons.transaction.file.FileResourceManager - WARNING - Failed to stop RM INFO [STDOUT] 05 Jan 2005 10:52:29 - org.apache.slide.common.Domain - WARNING - Service TxXMLFileDescriptorsStore at store/metadata working on work/metadata disconnection failed : Shut down timed out INFO [STDOUT] Service TxXMLFileDescriptorsStore at store/metadata working on work/metadata disconnection failed : Shut down timed out INFO [STDOUT] at org.apache.slide.common.Namespace.disconnectServices(Namespace.java:545) at org.apache.slide.common.NamespaceAccessTokenImpl.disconnect(NamespaceAccessTokenImpl.java:348) at org.apache.slide.common.Domain.closeNamespace(Domain.java:270) at org.apache.slide.webdav.WebdavServlet.destroy(WebdavServlet.java:316) at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1255) at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1580) But if I change commons-transaction-1.0.jar library on commons-transaction-1.0rc1.jar tests work without exception. May be you known what is wrong? Thanks -- Best regards, Andrewmailto:[EMAIL PROTECTED] Tuesday, November 30, 2004, 12:20:01 PM, you wrote: OZ Ah, great! Thanks for investigating this, I will add it to the ds in OZ the CVS. This really is what was missing! OZ Oliver OZ On Tue, 30 Nov 2004 10:07:46 +0200, Andrew Tibets OZ [EMAIL PROTECTED] wrote: Hello Oliver! I have added track-connection-by-tx/ to webdav-connector-ds.xml and my test works. jboss-ds_1_0.dtd: !-- An element to specify that all intermediate end(suspend) and start(resume) calls. Also, all work on one tx will go through one connection. A side effect of this (currently at least) is that a connection will only be
Re: Re[10]: WebDAV JCA status=STATUS_NO_TRANSACTION
OK, I was able to reproduce your observation and honestly am more than surprised. I will try to find out now how the logging thing influenced to connector... Oliver On Wed, 5 Jan 2005 13:53:15 +0200, Andrew Tibets [EMAIL PROTECTED] wrote: Hello Oliver, Yes it is, it works with final slide2.1 + commons-transaction-1.0rc1.jar and there are exceptions with final slide2.1 + commons-transaction-1.0.jar. At start jboss there is message in log: DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Unable to retrieve orb javax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered. But there are not other exceptions exclude XAException errorCode=XAER_NOTA and XAException status=STATUS_NO_TRANSACTION. Thanks -- Best regards, Andrewmailto:[EMAIL PROTECTED] Wednesday, January 5, 2005, 1:17:08 PM, you wrote: OZ Hi Andrew, OZ does that mean it works with commons-tx1.0rc1, but not with the final OZ version? The only changes that were to check if a certain lock level OZ was enabled. Maybe this caused some obscure errors. OZ Is there any other exception, maybe in the log files? OZ Oliver OZ On Wed, 5 Jan 2005 12:02:29 +0200, Andrew Tibets OZ [EMAIL PROTECTED] wrote: Hello Oliver, The error is still being with slide 2.1. The slide.war and webdav-2.1.rar were deployed correctly. For jboss-3.2.5 I used webdav-connector-ds.xml shipped with Slide, for jboss-4.0.0 webdav-connector-ds.xml: connection-factories tx-connection-factory jndi-nameWebDAV-Connector/jndi-name xa-transaction/ track-connection-by-tx/ rar-nametest-webdav-files-0.1.ear#webdav-2.1.rar/rar-name connection-definitionjavax.resource.cci.ConnectionFactory/connection-definition max-pool-size20/max-pool-size /tx-connection-factory /connection-factories In all cases, slide test and my test, I get exception: WARN [org.jboss.tm.TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pc268/14, BranchQual=, localId=14] errorCode=XAER_NOTA javax.transaction.xa.XAException at org.apache.commons.transaction.util.xa.AbstractXAResource.end(AbstractXAResource.java:133) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2031) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2006) ... ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[Test]: Servlet.service() for servlet Test threw exception org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pc268/14, BranchQual=, localId=14] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.transaction.xa.XAException) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344) at org.jboss.tm.TxManager.commit(TxManager.java:200) If I click Ctrl+C, I get message: INFO [org.jboss.system.server.Server] JBoss SHUTDOWN: Undeploying all packages INFO [STDOUT] 05 Jan 2005 10:48:29 - org.apache.slide.common.Namespace - INFO - Shutting down service tx(org.apache.slide.store.ExtendedStore) INFO [STDOUT] 05 Jan 2005 10:48:29 - org.apache.commons.transaction.file.FileResourceManager - INFO - Stopping RM at 'store/metadata' / 'work/metadata' INFO [STDOUT] 05 Jan 2005 10:48:29 - org.apache.commons.transaction.file.FileResourceManager - INFO - Waiting for tx [EMAIL PROTECTED] to finish for 24 milli seconds DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified to shutdown DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Shutdown INFO [STDOUT] 05 Jan 2005 10:52:29 - org.apache.commons.transaction.file.FileResourceManager - WARNING - Tx [EMAIL PROTECTED] failed to finish in given time INFO [STDOUT] 05 Jan 2005 10:52:29 - org.apache.commons.transaction.file.FileResourceManager - WARNING - Failed to stop RM INFO [STDOUT] 05 Jan 2005 10:52:29 - org.apache.slide.common.Domain - WARNING - Service TxXMLFileDescriptorsStore at store/metadata working on work/metadata disconnection failed : Shut down timed out INFO [STDOUT] Service TxXMLFileDescriptorsStore at store/metadata working on work/metadata disconnection failed : Shut down timed out INFO [STDOUT] at org.apache.slide.common.Namespace.disconnectServices(Namespace.java:545) at org.apache.slide.common.NamespaceAccessTokenImpl.disconnect(NamespaceAccessTokenImpl.java:348) at org.apache.slide.common.Domain.closeNamespace(Domain.java:270) at org.apache.slide.webdav.WebdavServlet.destroy(WebdavServlet.java:316) at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1255)
Re: WCK createResource+setResourceContent
When setResourceContent() is called on a resource that does not exist you should throw ObjectNotFoundException as explained in the Javadocs. Oliver On Wed, 05 Jan 2005 20:52:14 +0200, Roman D [EMAIL PROTECTED] wrote: When PUTting file from windowsXP client, setResourceContent() is called before createResource(). With Database storage it's problematic. While in reference WebDavFileStore it's okay because you automatically create file with setResourceContent. If you store objects in database you can't setResourceContent() if you didn't create object yet. As a workaround I call createResource() from setResourceContent() if resource does not exists. If this me again or something wrong with WCK logic? Thanks. - 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: Re[10]: WebDAV JCA status=STATUS_NO_TRANSACTION
Super-Olli fixed this now. Has been a bug introduced between 1.0rc1 and 1.0 final of commons transaction. XidWrapper did not properly convert the xid into a string when using JBoss as the global id is encoded as a byte array which will become something like [EMAIL PROTECTED] when converted with toString. new String(byte[]) does it right. I have replaced the commons tx jars in both 2.1 and head branch. This should thus be fixed in both 2.1.1 and 2.2. Short term solution is to roll back to commons transaction 1.0rc1 or the version currently in Slide CVS. Andrew, thanks for reporting this and cheers Oliver On Wed, 5 Jan 2005 19:26:58 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: OK, I was able to reproduce your observation and honestly am more than surprised. I will try to find out now how the logging thing influenced to connector... Oliver On Wed, 5 Jan 2005 13:53:15 +0200, Andrew Tibets [EMAIL PROTECTED] wrote: Hello Oliver, Yes it is, it works with final slide2.1 + commons-transaction-1.0rc1.jar and there are exceptions with final slide2.1 + commons-transaction-1.0.jar. At start jboss there is message in log: DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Unable to retrieve orb javax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered. But there are not other exceptions exclude XAException errorCode=XAER_NOTA and XAException status=STATUS_NO_TRANSACTION. Thanks -- Best regards, Andrewmailto:[EMAIL PROTECTED] Wednesday, January 5, 2005, 1:17:08 PM, you wrote: OZ Hi Andrew, OZ does that mean it works with commons-tx1.0rc1, but not with the final OZ version? The only changes that were to check if a certain lock level OZ was enabled. Maybe this caused some obscure errors. OZ Is there any other exception, maybe in the log files? OZ Oliver OZ On Wed, 5 Jan 2005 12:02:29 +0200, Andrew Tibets OZ [EMAIL PROTECTED] wrote: Hello Oliver, The error is still being with slide 2.1. The slide.war and webdav-2.1.rar were deployed correctly. For jboss-3.2.5 I used webdav-connector-ds.xml shipped with Slide, for jboss-4.0.0 webdav-connector-ds.xml: connection-factories tx-connection-factory jndi-nameWebDAV-Connector/jndi-name xa-transaction/ track-connection-by-tx/ rar-nametest-webdav-files-0.1.ear#webdav-2.1.rar/rar-name connection-definitionjavax.resource.cci.ConnectionFactory/connection-definition max-pool-size20/max-pool-size /tx-connection-factory /connection-factories In all cases, slide test and my test, I get exception: WARN [org.jboss.tm.TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pc268/14, BranchQual=, localId=14] errorCode=XAER_NOTA javax.transaction.xa.XAException at org.apache.commons.transaction.util.xa.AbstractXAResource.end(AbstractXAResource.java:133) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2031) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2006) ... ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[Test]: Servlet.service() for servlet Test threw exception org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pc268/14, BranchQual=, localId=14] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.transaction.xa.XAException) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344) at org.jboss.tm.TxManager.commit(TxManager.java:200) If I click Ctrl+C, I get message: INFO [org.jboss.system.server.Server] JBoss SHUTDOWN: Undeploying all packages INFO [STDOUT] 05 Jan 2005 10:48:29 - org.apache.slide.common.Namespace - INFO - Shutting down service tx(org.apache.slide.store.ExtendedStore) INFO [STDOUT] 05 Jan 2005 10:48:29 - org.apache.commons.transaction.file.FileResourceManager - INFO - Stopping RM at 'store/metadata' / 'work/metadata' INFO [STDOUT] 05 Jan 2005 10:48:29 - org.apache.commons.transaction.file.FileResourceManager - INFO - Waiting for tx [EMAIL PROTECTED] to finish for 24 milli seconds DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified to shutdown DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Shutdown INFO [STDOUT] 05 Jan 2005 10:52:29 - org.apache.commons.transaction.file.FileResourceManager - WARNING - Tx [EMAIL PROTECTED] failed to finish in given time INFO [STDOUT] 05 Jan 2005 10:52:29 - org.apache.commons.transaction.file.FileResourceManager - WARNING - Failed to stop RM INFO [STDOUT] 05 Jan 2005 10:52:29
Re: OJB store initial implementation
On Mon, 03 Jan 2005 15:48:58 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Just wondering, any reason why xdoclet 1.2.1 was used instead of 1.2.2 ? Though it doesn't seem to affect the ojbdoclet task at all, it works just the same. Just because I am lazy, it was the version that came along with the bundled OJB distribution. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OJB store initial implementation
OK, I will remove the author tags then. Concerning DAO, I was talking about the general concept, while you seem to think about the Spring implementation. Is that right? Anyway, this is our TODO-List, right? - Content support - Native Sequence support - Compatibility with the old scheme (maybe using a migration tool) - Think about mapping Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OJB store initial implementation
On Tue, 04 Jan 2005 23:37:20 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Oliver Zeigermann wrote: OK, I will remove the author tags then. Concerning DAO, I was talking about the general concept, while you seem to think about the Spring implementation. Is that right? Well I was just saying that in this imperfect world you can't just map any object to a relational model. Comming from EJBs and entity beans you are taught to keep your persistence (entity/peer) classes simple, simple serializable java beans. Just binding your java beans properties to Any idea why the java beans should be serializable? fields in database tables. This way you can query your persistence classes in the same way with some abstracted SQL that eventually gets mapped to native SQL. But this way you still have to do abstraction mapping at the java level, between your domain objects and your entity classes. That's the approach I've taken, which is pretty standard, used in EJB and OJB. I haven't really explored DAO, ODMG or Spring so maybe these frameworks have less limitations in this respect and you can go closer to your domain objects. My first purpose with OJB was to remove database dependencies as much as possible. Let OJB take care of the database differences, that's all at this point. We can explore later the possibilities of using these frameworks in Slide in a cleaner design. If I get this right, we could extract some code parts that simply map peer to Slide classes and have other parts that do the peer / OJB and possible peer / something-else mapping?! Anyway, this is our TODO-List, right? - Content support - Native Sequence support - Compatibility with the old scheme (maybe using a migration tool) - Think about mapping Yes. That's it so far. I have created http://wiki.apache.org/jakarta-slide/OjbStore which I propose is the development Wiki page for the OJB store. Initially it contains the above TODO-List. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OJB store initial implementation
Hi Carlos, happy new year for to you as well! Thanks for the contribution - I have already committed it to the Slide CVS. Could you please check if the committed stuff looks ok to you? I will have a closer look at this in the following days and would be glad if you would help me getting started then :) Cheers, Oliver On Mon, 03 Jan 2005 00:54:00 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Happy New Year, As promised, I've submitted an initial implementation of a slide store based on Apache OJB O/R tool. I created a new bug report in bugzilla (Bug 32913) and attached the files. I've implemented all stores except the content store. Need more time to think about it. The BLOB type is not supported by all databases (though most have some support for large objects) and still need to check if OJB have some generic way of dealing with large binary objects. There is support for changing the table prefix via a build property. The SQL is generated from the peer classes directly using xdoclet and torque. However, torque doesn't do a good job generating the sql script and the create statements may need to be reordered manually so that tables that are target of referencial integrity constraints are created first. Need to check if commons-sql does a better job. Also I've implemented a mechanism to store property values that consists of lists like version-set or group-member-set in a separate table, one list item per row. I tested PostgreSQL 7.4.6/8.0.0rc2 and MySQL 4.1.8. Didn't run the full testsuite, just verified that it basically works by creating some folders and files and creating versions/checkout/checkin, etc. It's a first try, mostly followed the RDBMS logic and converted it to OJB. Need to optimize the mappings and tune OJB for Slide behaviour. Oliver, please check it out and go ahead an make any adjustments. As I said I'll think about the BLOB issue but I won't have much time for this during the following 2 or 3 weeks. Regards, Carlos - 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: OJB store initial implementation
Carlos! First of all I must say that I am very impressed by your work! Thanks again, Carlos! I am pretty sure many people will benefit from your contribution. Anyway, I had a closer look at all this and now have some questions. Please take them as questions of someone who wants to understand and learn and not as any form of criticism: Database Scheme --- The OJB implementation uses the old Slide database scheme, right? Wouldn't this mean that we can use the (old) rdbms content store so that all data goes to the file system? Property Values --- I like the property value mechanism, but was wondering if there was an alternative mode to store properties in a way compatible to the old mechanism? This would be useful when migrating to the OBJ store having legacy data. Peer Classes --- I have seen almost all people using some sort of DAOs with their ORM tool and I guess the peer classes are just for the same purpose. I am neither an OJB, nor an ORM expert so I was wondering why? Reading something like this http://www.jpox.org/docs/jdo_2_0/jdo_transactions.html at least JDO 2 will support a detach mechanism which would allow to let objects live longer than the transaction associated. This way it would be no problem to have the objects in global caches as well. Is this just impractical or does OJB simply not support this? Sequence Store --- Maybe there is a misunderstand concerning the sequence store. A sequence is nothing Slide stores or uses as data, but pretty much a mapping to the sequence mechanism of the underlying database. It is much more comparable to the sequence concept provided OJB itself. If this is impossible to map it would be much safter to simply omit the sequence store as it really is optional. Author Tags -- The Slide community has voted to remove all author tags some time ago. Would you allow me to remove your author tags as well? This is not to take away the credit from you (you would still get it through the contributors page which is even more visible), but to transfer the responsibility to the community. Thanks in advance, Oliver On Mon, 03 Jan 2005 00:54:00 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Happy New Year, As promised, I've submitted an initial implementation of a slide store based on Apache OJB O/R tool. I created a new bug report in bugzilla (Bug 32913) and attached the files. I've implemented all stores except the content store. Need more time to think about it. The BLOB type is not supported by all databases (though most have some support for large objects) and still need to check if OJB have some generic way of dealing with large binary objects. There is support for changing the table prefix via a build property. The SQL is generated from the peer classes directly using xdoclet and torque. However, torque doesn't do a good job generating the sql script and the create statements may need to be reordered manually so that tables that are target of referencial integrity constraints are created first. Need to check if commons-sql does a better job. Also I've implemented a mechanism to store property values that consists of lists like version-set or group-member-set in a separate table, one list item per row. I tested PostgreSQL 7.4.6/8.0.0rc2 and MySQL 4.1.8. Didn't run the full testsuite, just verified that it basically works by creating some folders and files and creating versions/checkout/checkin, etc. It's a first try, mostly followed the RDBMS logic and converted it to OJB. Need to optimize the mappings and tune OJB for Slide behaviour. Oliver, please check it out and go ahead an make any adjustments. As I said I'll think about the BLOB issue but I won't have much time for this during the following 2 or 3 weeks. Regards, Carlos - 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: out of memory
There was a discussion about this a while back in time. Most likely you have not set the memory assigned to your JVM, right? Maybe the default size (64MBI interferes with the standard cache settings. Either set the JVM memory up or change cache settings. Documentatin for the cache parameters can be found in the Wiki. In any case I would recommend to upgrade to Slide 2.1 final. Oliver On Mon, 27 Dec 2004 09:04:15 -0700, haipeng du [EMAIL PROTECTED] wrote: I use slide rc2.1 to store files. When I tested my slide system, I send request to make slide to save a file (just 10KB each). After I save about 5,000 files, I got out of memory exception. How could I modifiy my configuration or other stuff so that I can fix this problem? Thanks a lot. -- Haipeng Du Software Engineer Comphealth, Salt Lake City - 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: WCK: session parameter
If null is passed the login module needs to throw an exception to ask the client to deliver a valid user name, I guess. In my scenario MS WebFolder does this. In case of doubt compare what you have with the reference implementation which displays this behavior. Oliver On Thu, 23 Dec 2004 04:01:04 -0800 (PST), EngR H [EMAIL PROTECTED] wrote: Hi Oliver, Thanx for ur concerns :) Yess, it passes a Null principal, have any clue?? Rony Oliver Zeigermann [EMAIL PROTECTED] wrote: Hi Rony, sorry confused you with Ragia :( On Thu, 23 Dec 2004 01:34:04 -0800 (PST), EngR H wrote: Webfolders remember the user you used to log in I never used my webfolder with JAAS, I always used to disable security. so I don't think it remember my password. it acts as the security is disabled!! So, what user does it pass to the JAAS login module then? Null? Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? The all-new My Yahoo! Get yours free! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK: session parameter
Hi Ragia, Webfolders remember the user you used to log in. Concerning null connection, you will have to implement a session manager that maps to your data. Oliver On Wed, 22 Dec 2004 09:26:57 -0800 (PST), EngR H [EMAIL PROTECTED] wrote: Hello again, I succeeded now to let OC4J use the org.apache.slide.simple.reference.FakeSessionManager but after giving the username/password it gives: Page cannot be displayed also using org.apache.slide.jaas.spi.SlideLoginModule gives the same result! :( But when I change the configuration to use my app. server sample login module it succeeds to login and views my CMS structure but with null connection and principal objects (Normal) Any ideas?? Also, still accessing my web folder does not prompt the login screen, it bypasses the authentication and goes directly to the CMS structure only accessing it through Internet browser promps the login screen :( Any suggestions would be highly appreciated ... Thaz a lot !!! regards, Rony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK: session parameter
In void begin(Service service, Principal principal, Object connection, LoggerFacade logger, Hashtable parameters) throws ServiceAccessException, ServiceParameterErrorException, ServiceParameterMissingException; there is the Object connection which will be reasonably filled when you use WCK JAAS implementation. Oliver On Wed, 15 Dec 2004 23:11:23 -0800 (PST), EngR H [EMAIL PROTECTED] wrote: Is it better to use JAAS ?? to map my CMS user to a user on my App. server, and then using the principal inside my custom store to login to my CMS?? Oliver Zeigermann [EMAIL PROTECTED] wrote:Not directly. Maybe using some ThreadLocal hack would do, but this would require changes to Slide. Oliver On Wed, 15 Dec 2004 01:16:06 -0800 (PST), EngR H wrote: I need to let the WebDAV servlet to save my CMS session in its request. and then pass it to my custom store. is that possible?? Oliver Zeigermann wrote: What kind of request parameter? The session? What for`? Oliver On Tue, 14 Dec 2004 07:19:51 -0800 (PST), EngR H wrote: Hello there! Am using WCK and need to send parameters through the request object of the WebDAVServlet to my custom store .. is that possible ??if yes, is that through the parameters Hashtable sent to the begin() function?? if yes, where I can set a parameter there?? Thanx alot! Rony - Do you Yahoo!? All your favorites on one personal page Try My Yahoo! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OJB database store?
On Fri, 17 Dec 2004 20:49:07 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Just to let you know that I've actually started working on the new RDBMS store based on the Apache OJB O/R tool. I don't want to duplicate efforts nor waste my limited time so I just want to make sure this is going to be useful before I get too deep into it. Is this Ok? I think this would be great :) I promise I will help where I can! I have already had a look at OJB and submitted a patch that allows to map SQL exceptions that are caused by concurrency conflicts like deadlocks to special subclasses of PersistenceBrokerSQLException. I have extracted this from the Slide core and adapted it to OJB. BTW, what package should I put it in, org.apache.slide.store.ojb ? I see that while most of the stores are located under org.apache.slide.store the current rdbms stores are in org.apache.slide.store.impl ! org.apache.slide.store.ojb should be fine, but org.apache.slide.store.impl.ojb is ok as well. The org.apache.slide.store.impl.rdbms package is named as such for historical reasons. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OJB database store?
On Fri, 17 Dec 2004 21:28:14 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Fine. I need a week or two before I can post anything. I'll set up the framework and some initial code and then you can jump in! Great! These conflict exceptions are probably needed to make your latest retry code work. Is this already in the OJB CVS repository? Anyway, you can handle that later ;-) No, it's not in the OJB CVS repository. I am not even sure the OJB people will accept the patch, but I hope so. And, yes, it is for the retry thing to work. We could get this done in Slide as well, but it would be much cleaner to have it in OJB Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK with virtual file system
Hi Brian, what is your problem with Domain.xml? Starting from the one delivered with WCK just leave it untouched and things should work. There is *no* redundant stuff in it. You might not need it, but Slide does. Judging from what you want to achieve WCK seems to be right for you. Concerning the releation to Slide WCK is a special Slide store abstraction plus some helper code for JAAS. Oliver On Fri, 17 Dec 2004 10:55:05 -0800, Brian Lee [EMAIL PROTECTED] wrote: WCK Question First I'd like to say that WCK is a Godsend. It is very useful. Unfortunately I still don't have a full grasp of SLIDE and WCK's full relationship with it... (My time off our company webdav project didn't help...) Goal: My system does not use anything from the domain.xml besides specifying my custom store. My system handles everything - user adminstration, etc... Moreover with this system, I want display files to a user based on arbitrary logic my system determines (security/permissions). I do not want to display files how they are really laid out in terms of path and even filename. Basically I want to use a 'virtual file system' with WCK, but I am having problems due to things in Domain.xml (user folders, action folders). Question: Given the above requirements, what is the absolute minimum elements that I can have in domain.xml? How should I go about implementing my system with WCK? Is WCK the best way to go? - 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: rename/move WCK question
On Sat, 18 Dec 2004 00:34:50 +0200, Roman D [EMAIL PROTECTED] wrote: With WCK store implementation, when file is renamed, it looks like file is downloaded and then uploaded under new name. It depends on what interfaces you implement. If you just implement the ordinary interface upon rename ad file is copied and the original is removed afterwards. If you implement the additional interface (works with CVS head = upcoming 2.2 only) WebdavStoreMacroMoveExtension it will be done directly. Have a look at the reference implementation for details. First getResourceContent() for current file name is called then createResource() and setResourceContent() is called. Is it WCK - specific or any WebDav implementation will have client GET and then PUT same file just to rename/move it ? What if it's 100MB file? transfer same 100MB back and forth just to rename the resource? As explained above nothing is transferred, no PUT and no GET is involved. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK: session parameter
On Wed, 15 Dec 2004 23:11:23 -0800 (PST), EngR H [EMAIL PROTECTED] wrote: Is it better to use JAAS ?? to map my CMS user to a user on my App. server, and then using the principal inside my custom store to login to my CMS?? Maybe... Sounds like a good idea. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK: session parameter
Not directly. Maybe using some ThreadLocal hack would do, but this would require changes to Slide. Oliver On Wed, 15 Dec 2004 01:16:06 -0800 (PST), EngR H [EMAIL PROTECTED] wrote: I need to let the WebDAV servlet to save my CMS session in its request. and then pass it to my custom store. is that possible?? Oliver Zeigermann [EMAIL PROTECTED] wrote: What kind of request parameter? The session? What for`? Oliver On Tue, 14 Dec 2004 07:19:51 -0800 (PST), EngR H wrote: Hello there! Am using WCK and need to send parameters through the request object of the WebDAVServlet to my custom store .. is that possible ??if yes, is that through the parameters Hashtable sent to the begin() function?? if yes, where I can set a parameter there?? Thanx alot! Rony - Do you Yahoo!? All your favorites on one personal page Try My Yahoo! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK: session parameter
Great! Did not know that! But you are right, the SlideToken is not passed through to the WCK store, neither is the URI from which you could retrieve it. What would be best way to pass this information to a WCK store? Oliver On Wed, 15 Dec 2004 18:44:57 +0100, Stefan Ltzkendorf [EMAIL PROTECTED] wrote: Some time ago I modified the WebdavUtils.getSlidetoken method related to this question. I added all session parameters as parameters to the slide token, this way a store implementation can access session parameters (but cant set new session parameters). May be this could help. But I assume that the slide token is hidden with in the wck. Stefan. Oliver Zeigermann wrote: Not directly. Maybe using some ThreadLocal hack would do, but this would require changes to Slide. Oliver On Wed, 15 Dec 2004 01:16:06 -0800 (PST), EngR H [EMAIL PROTECTED] wrote: I need to let the WebDAV servlet to save my CMS session in its request. and then pass it to my custom store. is that possible?? Oliver Zeigermann [EMAIL PROTECTED] wrote: What kind of request parameter? The session? What for`? Oliver On Tue, 14 Dec 2004 07:19:51 -0800 (PST), EngR H wrote: Hello there! Am using WCK and need to send parameters through the request object of the WebDAVServlet to my custom store .. is that possible ??if yes, is that through the parameters Hashtable sent to the begin() function?? if yes, where I can set a parameter there?? Thanx alot! Rony - Do you Yahoo!? All your favorites on one personal page Try My Yahoo! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stefan Ltzkendorf -- [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: Couple WCK/Slide problems
throw ObjectNotFoundException Oliver On Wed, 15 Dec 2004 21:14:15 +0200, Roman D [EMAIL PROTECTED] wrote: Hi, I have WebdavFileStore-type class implementing BasicWebdavStore. Slide configured with /files as root of storage. When starting server, first isFolder() is called for /files IsFolder() return true for /files, because it's a folder and it's root. But then getResourceContent() is called for /files! getResourceContent() should return InputStream. All my folders and files are database objects. I don't have real files to get InputStream from. This means /files is not folder on filesystem, it's virtual folder and can't be used with getResourceContent(). Returning null crashes Slide as well as throwing exception. Only returning some bogus/invalid InputStream doesn't crash Slide. Am I missing something? Newbie question - I have files/folders in database with UTF-8 names. When they are presented through Slide all names are look wrong like x?xxxúx?x?x? How do I transcode UTF-8 strings so they look right in webDav presentation? Thank you. - 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: A few webdav client locking concerns
On Tue, 14 Dec 2004 08:41:54 -0800, Warwick Burrows [EMAIL PROTECTED] wrote: Hi Oliver, There should be no locks created by startTransaction() and endTransaction(). Or are you talking about the locks created inside the transaction? Internally to the server there are no locks created but it returns a lock token for transaction LockMethode call and this token is stored in the webdav clients lock cache as if it is a lock. The client thinks it is an actual lock and adds it to its lock cache as such. That's why I'm wondering whether the locks ids (tx ids) that come back from the server should be ignored by the client when it processes the result of a LockMethod. Ie. in the startTransaction() call once we have the tx id and store it when then delete the equivalent lock created for it from the client lock cache. Thanks for explaining. Did not even know the lock was considered an ordinary way. So, yes, I think you are right, it should not be stored. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK: session parameter
What kind of request parameter? The session? What for`? Oliver On Tue, 14 Dec 2004 07:19:51 -0800 (PST), EngR H [EMAIL PROTECTED] wrote: Hello there! Am using WCK and need to send parameters through the request object of the WebDAVServlet to my custom store .. is that possible ??if yes, is that through the parameters Hashtable sent to the begin() function?? if yes, where I can set a parameter there?? Thanx alot! Rony - Do you Yahoo!? All your favorites on one personal page Try My Yahoo! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New feature for internally repeating conflicting requests
It's the store that reports the problem. So the 911 error code from DB2 should be added to the DB2 store as right now there only is the generic ANSI SQL state thing. No idea of DB2 supports it, so I have just added it to the store right away. Please check my change... Thanks, Oliver On Mon, 13 Dec 2004 07:56:33 -0800, Warwick Burrows [EMAIL PROTECTED] wrote: Hey Oliver, What constitutes a conflict in this regard? Do the stores detect two transactions writing or reading to the same store or does the store itself return an error eg. the DB2 911 exception that signifies table access conflict/deadlock? Thanks, Warwick -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Saturday, December 11, 2004 1:38 PM To: Slide Users Mailing List Subject: Re: New feature for internally repeating conflicting requests This has been finished. Now all stores should support this. Oliver On Tue, 7 Dec 2004 18:12:53 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Sorry, messed up the subject... On Tue, 7 Dec 2004 18:11:49 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Folks, I have added a new option to internally and transparently repeat a transaction if it has failed becasue of concurrency confclits. Right now only tx file and mysql support this experimental feature. There are two new parameters in the configuration section of Domain.xml repeat-upon-conflict which enables this feature and max-retry-repeat which sets the maximum number of repeats, defaults are false and 1. E.g. this parameter name=repeat-upon-conflicttrue/parameter parameter name=max-retry-repeat5/parameter enables the repeast feature and sets the maximum number of repeats to 5. If it is disabled everything should work just as before. Oliver - 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: WCK Save As
It works with the reference implementation, so this should be a problem with your custom implementation. Oliver On Fri, 10 Dec 2004 14:01:43 -0800, Jeff Wagner [EMAIL PROTECTED] wrote: I'm using WCK to create a custom WebDAV store. I'm running into a problem when attempting to do a Save As from Word. I saw that a similiar problem was fixed for the Slide implementation: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=1434142 I'm curious if there is a work around for WCK. Any suggestions? Thanks, Jeff - 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: New feature for internally repeating conflicting requests
This has been finished. Now all stores should support this. Oliver On Tue, 7 Dec 2004 18:12:53 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Sorry, messed up the subject... On Tue, 7 Dec 2004 18:11:49 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Folks, I have added a new option to internally and transparently repeat a transaction if it has failed becasue of concurrency confclits. Right now only tx file and mysql support this experimental feature. There are two new parameters in the configuration section of Domain.xml repeat-upon-conflict which enables this feature and max-retry-repeat which sets the maximum number of repeats, defaults are false and 1. E.g. this parameter name=repeat-upon-conflicttrue/parameter parameter name=max-retry-repeat5/parameter enables the repeast feature and sets the maximum number of repeats to 5. If it is disabled everything should work just as before. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New Wiki page on Slide concurrency
http://wiki.apache.org/jakarta-slide/ConcurrencyIssues - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unique ID for a document in the slide repository ?
On Thu, 09 Dec 2004 09:08:56 +0100, Guido Casper [EMAIL PROTECTED] wrote: I always wanted to have a take at a ID-preserving intra-store move operation but unfortunately lack the time currently. I have already implemented this move, copy and delete in the current CVS head. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WCK has moved
Folks, I have moved WCK out of its original place in the proposals section to its final location in the Slide top level. The code in proposals/wck has not yet been deleted to avoid problems with CVS updates. Please use the code in the wck folder and not the one in proposals/wck which I will delete next week, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK has moved
It might become part of Slide 2.2, but I do not think it will be part of binary releases. I guess source releases are most suitable for WCK. Oliver. On Thu, 09 Dec 2004 14:57:11 +0200, Roman D [EMAIL PROTECTED] wrote: Wow.. Does that mean that WCK becoming part of official Slide and be included in binary builds at last? Roman. Oliver Zeigermann wrote: Folks, I have moved WCK out of its original place in the proposals section to its final location in the Slide top level. The code in proposals/wck has not yet been deleted to avoid problems with CVS updates. Please use the code in the wck folder and not the one in proposals/wck which I will delete next week, Oliver - 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: history-collection-hack bug
After all it is just a hack... Oliver On Thu, 9 Dec 2004 16:08:44 +0100, Jacob Lund [EMAIL PROTECTED] wrote: Hi! I have been looking more into this and it seems that Oliver's conclusion was right. In order to get the correct history path you need to know what uri the request originates from, and from what I can see, this information is not available as the system is constructed now. I still think that this should be fixed in later versions of slide, but for now I guess we have to state that these two settings are not compatible. /jacob - Original Message - From: Jacob Lund [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 3:59 PM Subject: Re: history-collection-hack bug Well from what I can see, there should be no problem with the combination! The only thing is this getHistoryPathHandler function! However to resolve the history path I need some information that is not available in the class by default, but as I said I am not very familiar with this part of the code. /jacob - Original Message - From: Oliver Zeigermann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 3:47 PM Subject: Re: history-collection-hack bug ??? Maybe the problem is that the history folder structures with the hack turned on / off are incompatible? Oliver On Wed, 8 Dec 2004 15:41:02 +0100, Jacob Lund [EMAIL PROTECTED] wrote: OK - I think I found the origin of the problem. In the HistoryPathHandler class there are 2 getHistoryPathHandler functions, but only one of them are handling the situation where the history path has a parameter in it. I don't know this part of the code very well, so I don't have a solution yet. /jacob - Original Message - From: Jacob Lund [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:42 PM Subject: Re: history-collection-hack bug I am looking into it now - i just found out! It does not throw an exception! I will report back as soon as I have something. /jacob - Original Message - From: Oliver Zeigermann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:35 PM Subject: Re: history-collection-hack bug Any idea what the problem with the hack is? Oliver On Tue, 7 Dec 2004 12:33:16 +0100, Jacob Lund [EMAIL PROTECTED] wrote: Hi all, When slide is configured to split the history collection into seperate stores parameter name=historypath/history/${store}/parameter, then the history-collection-hack breaks the versioning part of slide. I have attached an example domain.xml file. When history-collection-hack is set to false it works fine. I tested this with 2.1rc1. /jacob - 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] - 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: history-collection-hack bug
Hmmm, I guess you are right. At least when you use versioning. And if you do not the hack has no effect. So, I would be +1 for having it as default. However, this should be done for 2.2 and not for 2.1 in order not to introduce incompatibilities. Oliver On Thu, 9 Dec 2004 16:22:14 +0100, Jacob Lund [EMAIL PROTECTED] wrote: I know but it makes the slide project useable! This feature should be enabled by default since slide basically kills itself without it! /jacob - Original Message - From: Oliver Zeigermann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 4:11 PM Subject: Re: history-collection-hack bug After all it is just a hack... Oliver On Thu, 9 Dec 2004 16:08:44 +0100, Jacob Lund [EMAIL PROTECTED] wrote: Hi! I have been looking more into this and it seems that Oliver's conclusion was right. In order to get the correct history path you need to know what uri the request originates from, and from what I can see, this information is not available as the system is constructed now. I still think that this should be fixed in later versions of slide, but for now I guess we have to state that these two settings are not compatible. /jacob - Original Message - From: Jacob Lund [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 3:59 PM Subject: Re: history-collection-hack bug Well from what I can see, there should be no problem with the combination! The only thing is this getHistoryPathHandler function! However to resolve the history path I need some information that is not available in the class by default, but as I said I am not very familiar with this part of the code. /jacob - Original Message - From: Oliver Zeigermann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 3:47 PM Subject: Re: history-collection-hack bug ??? Maybe the problem is that the history folder structures with the hack turned on / off are incompatible? Oliver On Wed, 8 Dec 2004 15:41:02 +0100, Jacob Lund [EMAIL PROTECTED] wrote: OK - I think I found the origin of the problem. In the HistoryPathHandler class there are 2 getHistoryPathHandler functions, but only one of them are handling the situation where the history path has a parameter in it. I don't know this part of the code very well, so I don't have a solution yet. /jacob - Original Message - From: Jacob Lund [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:42 PM Subject: Re: history-collection-hack bug I am looking into it now - i just found out! It does not throw an exception! I will report back as soon as I have something. /jacob - Original Message - From: Oliver Zeigermann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:35 PM Subject: Re: history-collection-hack bug Any idea what the problem with the hack is? Oliver On Tue, 7 Dec 2004 12:33:16 +0100, Jacob Lund [EMAIL PROTECTED] wrote: Hi all, When slide is configured to split the history collection into seperate stores parameter name=historypath/history/${store}/parameter, then the history-collection-hack breaks the versioning part of slide. I have attached an example domain.xml file. When history-collection-hack is set to false it works fine. I tested this with 2.1rc1. /jacob - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Idea on final release of Slide 2.1
Agreed. I'd be all +1 even if more minor issues arise with rc1. I am repeating myself, but compare 2.1rc1 to 2.0 and you will know why... Oliver On Wed, 08 Dec 2004 00:13:45 -0800, James Mason [EMAIL PROTECTED] wrote: Hopefully before the end of the year. It's looking pretty stable, and most of us are getting anxious for another release. -James On Tue, 2004-12-07 at 14:44 -0600, Chris O'Connell wrote: Anyone have an idea of when the final release of Slide 2.1 will be available? Regards, Chris - 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: history-collection-hack bug
??? Maybe the problem is that the history folder structures with the hack turned on / off are incompatible? Oliver On Wed, 8 Dec 2004 15:41:02 +0100, Jacob Lund [EMAIL PROTECTED] wrote: OK - I think I found the origin of the problem. In the HistoryPathHandler class there are 2 getHistoryPathHandler functions, but only one of them are handling the situation where the history path has a parameter in it. I don't know this part of the code very well, so I don't have a solution yet. /jacob - Original Message - From: Jacob Lund [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:42 PM Subject: Re: history-collection-hack bug I am looking into it now - i just found out! It does not throw an exception! I will report back as soon as I have something. /jacob - Original Message - From: Oliver Zeigermann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:35 PM Subject: Re: history-collection-hack bug Any idea what the problem with the hack is? Oliver On Tue, 7 Dec 2004 12:33:16 +0100, Jacob Lund [EMAIL PROTECTED] wrote: Hi all, When slide is configured to split the history collection into seperate stores parameter name=historypath/history/${store}/parameter, then the history-collection-hack breaks the versioning part of slide. I have attached an example domain.xml file. When history-collection-hack is set to false it works fine. I tested this with 2.1rc1. /jacob - 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: history-collection-hack bug
Any idea what the problem with the hack is? Oliver On Tue, 7 Dec 2004 12:33:16 +0100, Jacob Lund [EMAIL PROTECTED] wrote: Hi all, When slide is configured to split the history collection into seperate stores parameter name=historypath/history/${store}/parameter, then the history-collection-hack breaks the versioning part of slide. I have attached an example domain.xml file. When history-collection-hack is set to false it works fine. I tested this with 2.1rc1. /jacob - 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: Exceptions on MySQL 4.1
As a final hint: set isolation level to read committed! Oliver P.S.: Thanks for reporting all this; I am currently working on the deadlock retry thing... On Mon, 06 Dec 2004 17:02:56 -0800, Mirko Froehlich [EMAIL PROTECTED] wrote: In that case, I don't think this will solve my issue. Slide actually started up fine with MySQL 4.1 for the first time, using the MySql41RDBMSAdapter and the new schema. I ran my concurrency test, which again failed after less than a minute. Only subsequent startups failed due to the schema issues, for some reason. -Mirko On Mon, 2004-12-06 at 16:47, Oliver Zeigermann wrote: Nono, use the MySql41RDBMSAdapter. That's what worked for me. Oliver On Mon, 06 Dec 2004 16:37:36 -0800, Mirko Froehlich [EMAIL PROTECTED] wrote: In that case, should I continue to use the MySqlRDBMSAdapter, or should I use the MySql41RDBMSAdapter? -Mirko On Mon, 2004-12-06 at 16:25, Oliver Zeigermann wrote: May be true, I did my tests with the 4.0 schema and it worked just fine. No idea what the original problem is. Anyway, use the 4.0 schema even for 4.1 and it should work. Oliver - 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: WebDav LOCK and MOVE question
What is the WebDAV server you are programming to? Slide? If so, just upload the file. Oliver On Tue, 7 Dec 2004 15:11:42 +0100, Bernd Kühl [EMAIL PROTECTED] wrote: Hello, I want to upload a file to a web server. Several machines maybe try in parallel to upload the same file. Therefore locking is needed to allow only one upload. Moreover I have to ensure that no other machine downloads the file before the complete upload is done. So the algorithm I have in mind goes like this: 0) Check whether the file already exists on the file server. If yes = done 1) Lock non existing temporary file. 2) Upload the bytes to the locked temporary file. 3) Move the temporary file to the destination name. 4) Unlock the lock. Unfortunately it seems that I'm to dump and/or have not enough knowledge about WebDay and the slide WebDav client library to implement the algorithm. Who is able to help me? Thx! Bernd -- Bernd Wellhöfer VerdiSoft GmbH Phone: +49 40 280054-24 Süderstraße 77 Fax: +49 40 280054-50 20097 Hamburg Email: [EMAIL PROTECTED]Germany - 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: WebDav LOCK and MOVE question
So, you still could has a problem while moving the temporary file. Bottom line: You try to reimplement transactional features modav does not seem to have. Maybe then it is not the right choice in the first place. Oliver On Tue, 7 Dec 2004 16:06:49 +0100, Bernd Kühl [EMAIL PROTECTED] wrote: Hello, It is Apache/2.0.44 (Unix) DAV/2 mod_webapp/1.2.0-dev. Just uploading the file is not good enough since then different server machines can do the upload in parallel. Moreover a client machine can fetch the file while a [slow] server machine is currently doing the upload. This leads into a corrupted file. Thx, Bernd -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 3:47 PM To: Slide Users Mailing List Subject: Re: WebDav LOCK and MOVE question What is the WebDAV server you are programming to? Slide? If so, just upload the file. Oliver On Tue, 7 Dec 2004 15:11:42 +0100, Bernd Kühl [EMAIL PROTECTED] wrote: Hello, I want to upload a file to a web server. Several machines maybe try in parallel to upload the same file. Therefore locking is needed to allow only one upload. Moreover I have to ensure that no other machine downloads the file before the complete upload is done. So the algorithm I have in mind goes like this: 0) Check whether the file already exists on the file server. If yes = done 1) Lock non existing temporary file. 2) Upload the bytes to the locked temporary file. 3) Move the temporary file to the destination name. 4) Unlock the lock. Unfortunately it seems that I'm to dump and/or have not enough knowledge about WebDay and the slide WebDav client library to implement the algorithm. Who is able to help me? Thx! Bernd -- Bernd Wellhöfer VerdiSoft GmbH Phone: +49 40 280054-24 Süderstraße 77 Fax: +49 40 280054-50 20097 Hamburg Email: [EMAIL PROTECTED]Germany - 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]
New feature for
Folks, I have added a new option to internally and transparently repeat a transaction if it has failed becasue of concurrency confclits. Right now only tx file and mysql support this experimental feature. There are two new parameters in the configuration section of Domain.xml repeat-upon-conflict which enables this feature and max-retry-repeat which sets the maximum number of repeats, defaults are false and 1. E.g. this parameter name=repeat-upon-conflicttrue/parameter parameter name=max-retry-repeat5/parameter enables the repeast feature and sets the maximum number of repeats to 5. If it is disabled everything should work just as before. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New feature for internally repeating conflicting requests
Sorry, messed up the subject... On Tue, 7 Dec 2004 18:11:49 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Folks, I have added a new option to internally and transparently repeat a transaction if it has failed becasue of concurrency confclits. Right now only tx file and mysql support this experimental feature. There are two new parameters in the configuration section of Domain.xml repeat-upon-conflict which enables this feature and max-retry-repeat which sets the maximum number of repeats, defaults are false and 1. E.g. this parameter name=repeat-upon-conflicttrue/parameter parameter name=max-retry-repeat5/parameter enables the repeast feature and sets the maximum number of repeats to 5. If it is disabled everything should work just as before. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exceptions on MySQL 4.1
OK, this should work for MySQL now. Mirko, do you still have enough patience to try it with the latest CVS head? Oliver On Tue, 7 Dec 2004 15:40:15 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: As a final hint: set isolation level to read committed! Oliver P.S.: Thanks for reporting all this; I am currently working on the deadlock retry thing... On Mon, 06 Dec 2004 17:02:56 -0800, Mirko Froehlich [EMAIL PROTECTED] wrote: In that case, I don't think this will solve my issue. Slide actually started up fine with MySQL 4.1 for the first time, using the MySql41RDBMSAdapter and the new schema. I ran my concurrency test, which again failed after less than a minute. Only subsequent startups failed due to the schema issues, for some reason. -Mirko On Mon, 2004-12-06 at 16:47, Oliver Zeigermann wrote: Nono, use the MySql41RDBMSAdapter. That's what worked for me. Oliver On Mon, 06 Dec 2004 16:37:36 -0800, Mirko Froehlich [EMAIL PROTECTED] wrote: In that case, should I continue to use the MySqlRDBMSAdapter, or should I use the MySql41RDBMSAdapter? -Mirko On Mon, 2004-12-06 at 16:25, Oliver Zeigermann wrote: May be true, I did my tests with the 4.0 schema and it worked just fine. No idea what the original problem is. Anyway, use the 4.0 schema even for 4.1 and it should work. Oliver - 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: WCK API question
(WebApplicationHandler.java:342) at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at com.ris.manager.gateway.http.IPAddressRestriction.doFilter(IPAddressRestriction.java:248) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1808) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1758) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501) Also, why so many calls to objectExists, and it is really necessary to getChildrenNames on all the parents? Thanks again! -John Oliver Zeigermann wrote: Just checked it and it works the way it should be. Maybe the confusion is caused by Slide's weird init proc where it tries to set content before creation of a folder? In this case you will have to throw an ObjectNotFoundException as you can not store anything to a non-existing file. The start of the code of setResourceContent in the file RI looks like this File file = getFile(resourceUri); if (!file.exists()) throw new ObjectNotFoundException(resourceUri); I hope this helps, Oliver On Fri, 3 Dec 2004 23:58:48 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: What you expected is the way it should be. If it is not this is a bug. I will check this with the reference implementation. Oliver On Fri, 03 Dec 2004 15:59:59 -0500, John Rousseau [EMAIL PROTECTED] wrote: I'm trying to understand the BasicWebdavStore API a bit better. I was expecting that during a PUT, createResource() would be called with the name of a new resource and then setResourceContent() would be then called to supply the content itself. What I'm seeing is that setResourceContent is being called first and then createResource. In my implementation of createResource, I check to see if the resource already exists and if so throw ObjectAlreadyExistsException. Since I just created the resource in setResourceCountent, this causes me to throw and the WCK then calls rollback. Can someone describe these two methods in a bit more detail and explain what I should be doing in them? Should I just make createResource a no-op? Thanks -John --- John Rousseau Archivas, Inc. - 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: Exceptions on MySQL 4.1
May be true, I did my tests with the 4.0 schema and it worked just fine. No idea what the original problem is. Anyway, use the 4.0 schema even for 4.1 and it should work. Oliver On Mon, 06 Dec 2004 14:44:48 -0800, Mirko Froehlich [EMAIL PROTECTED] wrote: I have upgraded my database to MySQL 4.1 and changed the adapter to MySql41RDBMSAdapter in Domain.xml. I also dropped my old Slide database and created a fresh database using the MySQL 4.1 Slide db script. The first startup worked fine, and I was able to access the repository through the WebDAV client API (note that I ran into the same deadlock issues...). Now, every time I start Tomcat, I get the following exceptions in the log. If I try to hit Slide using the browser, it complains about the actions cache not being loaded and also spits out an exception in the logs (at the bottom, below). Any ideas? -Mirko At startup: 06 Dec 2004 14:36:38 - org.apache.slide.common.XMLUnmarshaller - INFO - Loading object / 06 Dec 2004 14:36:38 - org.apache.slide.common.XMLUnmarshaller - INFO - Object already exists at / 06 Dec 2004 14:36:38 - org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter - ERROR - SQL error 1267 on /: General error message from server: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'substr_index' org.apache.slide.common.ServiceAccessException: Service [EMAIL PROTECTED] access error : General error message from server: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'substr_index' at org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter.createException(MySqlRDBMSAdapter.java:66) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveRevisionDescriptors(StandardRDBMSAdapter.java:942) at org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveRevisionDescriptors(AbstractRDBMSStore.java:652) at org.apache.slide.store.AbstractStore.retrieveRevisionDescriptors(AbstractStore.java:996) at org.apache.slide.store.ExtendedStore.retrieveRevisionDescriptors(ExtendedStore.java:816) at org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:168) at org.apache.slide.common.XMLUnmarshaller.loadObjectRevision(XMLUnmarshaller.java:340) at org.apache.slide.common.XMLUnmarshaller.loadDefaultObjectRevision(XMLUnmarshaller.java:307) at org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:237) at org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:90) at org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:272) at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:808) at org.apache.slide.common.Domain.initNamespace(Domain.java:845) at org.apache.slide.common.Domain.init(Domain.java:432) at org.apache.slide.common.Domain.init(Domain.java:366) at org.apache.slide.common.Domain.init(Domain.java:329) at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:253) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:195) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:617) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at
Re: WCK API question
You should throw in setResourceCountent, not in createResource. Oliver On Mon, 06 Dec 2004 12:10:04 -0500, John Rousseau [EMAIL PROTECTED] wrote: But if I throw ObjectNotFoundException from createResource, then (as I indicated in my initial post) rollback is called and the client gets a 412 Precondition Failed. Thanks -John Oliver Zeigermann wrote: OK, then just throw the ObjectNotFoundException if the object is not there as indicated in the last post. Concerning the occurennce of the method calls, they are just needed by the Slide core... Oliver On Mon, 06 Dec 2004 10:51:18 -0500, John Rousseau [EMAIL PROTECTED] wrote: H. That's just not what I am seeing. I have a printout in each of my BasicWebdavStore implementation methods. Here's what I see when I use the slide webdav client to put /etc/resolv.conf into /music in my system. %% WebdavStoreImpl: begin %% objectExists: /music/resolv.conf %% objectExists: / %% getChildrenNames: / %% objectExists: /music %% getChildrenNames: /music %% objectExists: /music/resolv.conf %% objectExists: /music/resolv.conf %% objectExists: /music/resolv.conf %% objectExists: /music/resolv.conf %% objectExists: /music/resolv.conf %% objectExists: /music %% objectExists: /music %% objectExists: /music %% objectExists: /music/resolv.conf %% setResourceContent: /music/resolv.conf %% createResource: /music/resolv.conf %% WebdavStoreImpl: commit Note the order of the setResourceContent and createResource calls. Here's the trace for setResourceContent: java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1064) at com.ris.manager.gateway.http.WebdavStoreImpl.setResourceContent(WebdavStoreImpl.java:195) at org.apache.slide.simple.store.WebdavStoreAdapter$TransactionId.storeRevisionContent(WebdavStoreAdapter.java:520) at org.apache.slide.simple.store.WebdavStoreAdapter.storeRevisionContent(WebdavStoreAdapter.java:159) at org.apache.slide.store.AbstractStore.storeRevisionContent(AbstractStore.java:1474) at org.apache.slide.store.ExtendedStore.storeRevisionContent(ExtendedStore.java:546) at org.apache.slide.content.ContentImpl.create(ContentImpl.java:593) at org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:407) at org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:412) at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:151) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342) at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at com.ris.manager.gateway.http.IPAddressRestriction.doFilter(IPAddressRestriction.java:248) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1808) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1758) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501) Here's the trace for createResource: at com.ris.manager.gateway.http.WebdavStoreImpl.createResource(WebdavStoreImpl.java:176) at org.apache.slide.simple.store.WebdavStoreAdapter$TransactionId.storeRevisionDescriptor(WebdavStoreAdapter.java:675) at org.apache.slide.simple.store.WebdavStoreAdapter.storeRevisionDescriptor(WebdavStoreAdapter.java:255) at org.apache.slide.store.AbstractStore.storeRevisionDescriptor(AbstractStore.java:1305) at org.apache.slide.store.ExtendedStore.storeRevisionDescriptor(ExtendedStore.java:1060) at org.apache.slide.content.ContentImpl.create(ContentImpl.java:608) at org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:407
Re: Exceptions on MySQL 4.1
Nono, use the MySql41RDBMSAdapter. That's what worked for me. Oliver On Mon, 06 Dec 2004 16:37:36 -0800, Mirko Froehlich [EMAIL PROTECTED] wrote: In that case, should I continue to use the MySqlRDBMSAdapter, or should I use the MySql41RDBMSAdapter? -Mirko On Mon, 2004-12-06 at 16:25, Oliver Zeigermann wrote: May be true, I did my tests with the 4.0 schema and it worked just fine. No idea what the original problem is. Anyway, use the 4.0 schema even for 4.1 and it should work. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: main branch vs. 2.1 release branch
I never worked with 4.0, so there is nothing 4.1 resolved for me. It just worked. Just try it, you can install it and let it run in half an hour. Oliver On Fri, 03 Dec 2004 18:14:55 -0800, Mirko Froehlich [EMAIL PROTECTED] wrote: Thanks for the suggestion, I will definitely try that. Do you know which particular improvements in MySQL 4.1 would have made a difference? When you say it worked for you, which specific issue did it resolve? -Mirko On Fri, 2004-12-03 at 16:02, Oliver Zeigermann wrote: I would try upgrading to MySQL 4.1. It worked fine for me. Oliver On Fri, 03 Dec 2004 13:34:41 -0800, Mirko Froehlich [EMAIL PROTECTED] wrote: How stable would you consider the Slide main branch at this point? What are some of the significant differences between this and 2.1? I am still doing my concurrency testing, and unfortunately I think I spoke too soon when I said that everything runs fine with caching enabled. I still get deadlocks under Slide 2.1. Sometimes it deadlocks very soon, other times it takes about 1 hour or so. For some reason, I no longer get stacktraces in the Tomcat logs. Initial testing using the main branch from CVS suggests that this version might be more stable, as I have yet to run into this deadlock problem. But of course I am concerned about actually running with a development release. I'd appreciate any thoughts on this. -Mirko - 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: main branch vs. 2.1 release branch
More general: the Slide main branch has new features going in which always tends to reduce stability and things continue to change. Of course in 2005 it will freeze with the first beta and will finally become 2.2. Differences so far are improved concurrency, improved speed for MySQL, timeouts in caching and much more. I do not thing for your specific issue the main branch will be better, but if it turns out your problems are still related to Slide there is much more potential for further changes in the CVS Head. E.g. I was just suggesting in the dev list to add an option to silently redo a request internally without telling the client in case of a deadlock. This would be a new feature and would not go into 2.1 maintenance releases... Oliver On Fri, 03 Dec 2004 13:34:41 -0800, Mirko Froehlich [EMAIL PROTECTED] wrote: How stable would you consider the Slide main branch at this point? What are some of the significant differences between this and 2.1? I am still doing my concurrency testing, and unfortunately I think I spoke too soon when I said that everything runs fine with caching enabled. I still get deadlocks under Slide 2.1. Sometimes it deadlocks very soon, other times it takes about 1 hour or so. For some reason, I no longer get stacktraces in the Tomcat logs. Initial testing using the main branch from CVS suggests that this version might be more stable, as I have yet to run into this deadlock problem. But of course I am concerned about actually running with a development release. I'd appreciate any thoughts on this. -Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: developers: table prefix
I would definitely be +1 for moving to a ORM tool. There is *soo* much maintenance with all these different dbs. As Hibernate is no option *right now*, and I have zero experience with OJB I had a lookt at ibatis. It's nice, but it is an SQL mapper only and can not help us with different dbs :( Would be great if you could do a start with OJB. Maybe others will chime in as soon as the initial pain of getting it started is over. Oliver On Fri, 03 Dec 2004 11:15:28 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Well I have experience with OJB but not the time :-( I had promissed to look at the issues about the property-value field for storing lists like the revisions or group members. Maybe I can do it as part of that but I'm still trying to make the time... OJB will do just fine for Slide purposes and it's simple enough. The Java code for OJB is very readable, more than the embedded SQL in raw JDBC which adds to the maintainability. Carlos James Mason wrote: This is sort of on my todo list, but the only O/R tool I'm familiar with is Hibernate and for licensing reasons we can't integrate that with Slide (this may change in the future). I looked at OJB, but I wasn't impressed with some of the hoops I would have to jump through to accomplish, for example, lazy instantiation. I think this is the right way to go, if someone with the time and knowledge is willing to chip in. Right now I don't really have either :). -James On Fri, 2004-12-03 at 09:18 +0900, Carlos Villegas wrote: This is simple enough. But how about using one of the O/R mapping tools like Hibernate, Apache's OJB or Torque. The table names or mappings are usually setup in an external configuraton file. It adds additional benefits like supporting more databases and keeping all the database adapters in sync since they all become just one. Converting JDBC code to OJB, for example, is straightforward, we have done it, specially if there are no stored procedures like in Slide. Carlos Warwick Burrows wrote: There's something about preprocessing Java source that makes me a little uneasy :-) Isn't there another way? eg. instead of inserting a placeholder that gets replaced simply change the jdbc operation strings passed to the jdbc client as in this example? select name from + Config.table_prefix + PROPERTIES where field=1 Java will insert the prefix into the command automatically. There's no need for preprocessing and the amount of work required to change the code to suit this approach is no more or less than that needed to insert a placeholder string? Warwick -Original Message- From: Richard Emberson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 3:51 PM To: Slide Users Mailing List Subject: developers: table prefix This subject has been kicked around recently. Basically, there is an easy way to do it but if none of the Slide developers are interested then it will never go anywhere. How to add table prefixes to Slide's database table names - the simple way: Alter the build.xml file so that it does a filtered copy to a new directory build/gen_src prior to compilation. It is from this directory that the sources are then compiled. Each table name in the source has the string @TABLE_PREFIX@ prepened to it. The build.properties file has a new property: table.prefix=value The value can be, for example, empty resulting in the current table names or one might set the value to SLIDE_ which would result in that string being prepended to all table names. Additional benefits: One can now add properties to the build.properties file: version.major=2 version.minor=1 version.release=0 which could be used during the filtered copy to embed the Slide version number is some class which can be accessed at runtime. The build date, who built the code, compile host architecture, java version and vender doing compilation, cvs version tag, etc. can also be generated by ant and used during the filtered copy to add more runtime accessible information. For those embedding Slide in a J2EE application, this information would then be accessible via a JMX page. None of this is hard to do, its just a question of identifying someone (with checkin ability) to take the first step - altering the build process. Richard - 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: developers: table prefix
Some sort of very short pratcial OJB introduction at : http://blogs.codepuccino.com/dude/index.php?p=23 Oliver On Fri, 3 Dec 2004 16:24:35 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: I would definitely be +1 for moving to a ORM tool. There is *soo* much maintenance with all these different dbs. As Hibernate is no option *right now*, and I have zero experience with OJB I had a lookt at ibatis. It's nice, but it is an SQL mapper only and can not help us with different dbs :( Would be great if you could do a start with OJB. Maybe others will chime in as soon as the initial pain of getting it started is over. Oliver On Fri, 03 Dec 2004 11:15:28 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Well I have experience with OJB but not the time :-( I had promissed to look at the issues about the property-value field for storing lists like the revisions or group members. Maybe I can do it as part of that but I'm still trying to make the time... OJB will do just fine for Slide purposes and it's simple enough. The Java code for OJB is very readable, more than the embedded SQL in raw JDBC which adds to the maintainability. Carlos James Mason wrote: This is sort of on my todo list, but the only O/R tool I'm familiar with is Hibernate and for licensing reasons we can't integrate that with Slide (this may change in the future). I looked at OJB, but I wasn't impressed with some of the hoops I would have to jump through to accomplish, for example, lazy instantiation. I think this is the right way to go, if someone with the time and knowledge is willing to chip in. Right now I don't really have either :). -James On Fri, 2004-12-03 at 09:18 +0900, Carlos Villegas wrote: This is simple enough. But how about using one of the O/R mapping tools like Hibernate, Apache's OJB or Torque. The table names or mappings are usually setup in an external configuraton file. It adds additional benefits like supporting more databases and keeping all the database adapters in sync since they all become just one. Converting JDBC code to OJB, for example, is straightforward, we have done it, specially if there are no stored procedures like in Slide. Carlos Warwick Burrows wrote: There's something about preprocessing Java source that makes me a little uneasy :-) Isn't there another way? eg. instead of inserting a placeholder that gets replaced simply change the jdbc operation strings passed to the jdbc client as in this example? select name from + Config.table_prefix + PROPERTIES where field=1 Java will insert the prefix into the command automatically. There's no need for preprocessing and the amount of work required to change the code to suit this approach is no more or less than that needed to insert a placeholder string? Warwick -Original Message- From: Richard Emberson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 3:51 PM To: Slide Users Mailing List Subject: developers: table prefix This subject has been kicked around recently. Basically, there is an easy way to do it but if none of the Slide developers are interested then it will never go anywhere. How to add table prefixes to Slide's database table names - the simple way: Alter the build.xml file so that it does a filtered copy to a new directory build/gen_src prior to compilation. It is from this directory that the sources are then compiled. Each table name in the source has the string @TABLE_PREFIX@ prepened to it. The build.properties file has a new property: table.prefix=value The value can be, for example, empty resulting in the current table names or one might set the value to SLIDE_ which would result in that string being prepended to all table names. Additional benefits: One can now add properties to the build.properties file: version.major=2 version.minor=1 version.release=0 which could be used during the filtered copy to embed the Slide version number is some class which can be accessed at runtime. The build date, who built the code, compile host architecture, java version and vender doing compilation, cvs version tag, etc. can also be generated by ant and used during the filtered copy to add more runtime accessible information. For those embedding Slide in a J2EE application, this information would then be accessible via a JMX page. None of this is hard to do, its just a question of identifying someone (with checkin ability) to take the first step - altering the build process. Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
Re: developers: table prefix
Has anyone got any idea what role Spring would play in all this??? Oliver On Fri, 3 Dec 2004 16:57:42 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Some sort of very short pratcial OJB introduction at : http://blogs.codepuccino.com/dude/index.php?p=23 Oliver On Fri, 3 Dec 2004 16:24:35 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: I would definitely be +1 for moving to a ORM tool. There is *soo* much maintenance with all these different dbs. As Hibernate is no option *right now*, and I have zero experience with OJB I had a lookt at ibatis. It's nice, but it is an SQL mapper only and can not help us with different dbs :( Would be great if you could do a start with OJB. Maybe others will chime in as soon as the initial pain of getting it started is over. Oliver On Fri, 03 Dec 2004 11:15:28 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Well I have experience with OJB but not the time :-( I had promissed to look at the issues about the property-value field for storing lists like the revisions or group members. Maybe I can do it as part of that but I'm still trying to make the time... OJB will do just fine for Slide purposes and it's simple enough. The Java code for OJB is very readable, more than the embedded SQL in raw JDBC which adds to the maintainability. Carlos James Mason wrote: This is sort of on my todo list, but the only O/R tool I'm familiar with is Hibernate and for licensing reasons we can't integrate that with Slide (this may change in the future). I looked at OJB, but I wasn't impressed with some of the hoops I would have to jump through to accomplish, for example, lazy instantiation. I think this is the right way to go, if someone with the time and knowledge is willing to chip in. Right now I don't really have either :). -James On Fri, 2004-12-03 at 09:18 +0900, Carlos Villegas wrote: This is simple enough. But how about using one of the O/R mapping tools like Hibernate, Apache's OJB or Torque. The table names or mappings are usually setup in an external configuraton file. It adds additional benefits like supporting more databases and keeping all the database adapters in sync since they all become just one. Converting JDBC code to OJB, for example, is straightforward, we have done it, specially if there are no stored procedures like in Slide. Carlos Warwick Burrows wrote: There's something about preprocessing Java source that makes me a little uneasy :-) Isn't there another way? eg. instead of inserting a placeholder that gets replaced simply change the jdbc operation strings passed to the jdbc client as in this example? select name from + Config.table_prefix + PROPERTIES where field=1 Java will insert the prefix into the command automatically. There's no need for preprocessing and the amount of work required to change the code to suit this approach is no more or less than that needed to insert a placeholder string? Warwick -Original Message- From: Richard Emberson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 3:51 PM To: Slide Users Mailing List Subject: developers: table prefix This subject has been kicked around recently. Basically, there is an easy way to do it but if none of the Slide developers are interested then it will never go anywhere. How to add table prefixes to Slide's database table names - the simple way: Alter the build.xml file so that it does a filtered copy to a new directory build/gen_src prior to compilation. It is from this directory that the sources are then compiled. Each table name in the source has the string @TABLE_PREFIX@ prepened to it. The build.properties file has a new property: table.prefix=value The value can be, for example, empty resulting in the current table names or one might set the value to SLIDE_ which would result in that string being prepended to all table names. Additional benefits: One can now add properties to the build.properties file: version.major=2 version.minor=1 version.release=0 which could be used during the filtered copy to embed the Slide version number is some class which can be accessed at runtime. The build date, who built the code, compile host architecture, java version and vender doing compilation, cvs version tag, etc. can also be generated by ant and used during the filtered copy to add more runtime accessible information. For those embedding Slide in a J2EE application, this information would then be accessible via a JMX page. None of this is hard to do, its just a question of identifying someone (with checkin ability) to take the first step - altering the build process
Re: WCK question
I see, you are right, this has been done with the latest 29th November patch by Stefan. I will fix this ASAP, thanks for reporting :) Oliver On Fri, 03 Dec 2004 10:28:55 -0500, John Rousseau [EMAIL PROTECTED] wrote: I'm new to slide and WebDAV (but not to Java, HTTP, etc.). I'm trying to put a WebDAV frontend on our product. WCK seems to be exactly what I need. I'm using HEAD as of 02 Dec 2004. I've implemented BasicWebdavStore and I can browse our archive with the slide webdav client, however when I try to get a resource, I get back an HTML directory listing. This is because: webdav/method/GetMethod.java:238 finds that the NodeRevisionDescriptor for my resource has a COLLECTION property. This is because: slide/simple/store/WebdavStoreAdapter:597 news up a NodeRevisionDescriptor using a deprecated constructor, which calls the no-arg ctor which calls initDefaultProperties() which sets the resource type to a COLLECTION_TYPE. So, from the above, I think I understand _what_ is going wrong. What I'm hoping to hear from the list is _why_. Shouldn't the WebdavStoreAdapter call my BasicWebdavStore's isFolder() and set the resource type appropriately? Have I blown my implementation somehow? Did I goof the configuration? Is this a bug? Any help would be appreciated! Thanks for the great tool and the WCK expecially! It's making my life very easy. BTW, I'm having a very hard time groking what I need (and what I don't) in my Domain.xml. The wiki is a little light on details. Anyone have a minimalist Domain.xml for WCK? I just want to serve content. I don't care about authentication right now. Thanks! -John --- John Rousseau Archivas, Inc. - 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: WCK question
OK, I have just committed somthing that should fix it, could you please try if it works for you?! Thanks, Oliver On Fri, 3 Dec 2004 17:15:08 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: I see, you are right, this has been done with the latest 29th November patch by Stefan. I will fix this ASAP, thanks for reporting :) Oliver On Fri, 03 Dec 2004 10:28:55 -0500, John Rousseau [EMAIL PROTECTED] wrote: I'm new to slide and WebDAV (but not to Java, HTTP, etc.). I'm trying to put a WebDAV frontend on our product. WCK seems to be exactly what I need. I'm using HEAD as of 02 Dec 2004. I've implemented BasicWebdavStore and I can browse our archive with the slide webdav client, however when I try to get a resource, I get back an HTML directory listing. This is because: webdav/method/GetMethod.java:238 finds that the NodeRevisionDescriptor for my resource has a COLLECTION property. This is because: slide/simple/store/WebdavStoreAdapter:597 news up a NodeRevisionDescriptor using a deprecated constructor, which calls the no-arg ctor which calls initDefaultProperties() which sets the resource type to a COLLECTION_TYPE. So, from the above, I think I understand _what_ is going wrong. What I'm hoping to hear from the list is _why_. Shouldn't the WebdavStoreAdapter call my BasicWebdavStore's isFolder() and set the resource type appropriately? Have I blown my implementation somehow? Did I goof the configuration? Is this a bug? Any help would be appreciated! Thanks for the great tool and the WCK expecially! It's making my life very easy. BTW, I'm having a very hard time groking what I need (and what I don't) in my Domain.xml. The wiki is a little light on details. Anyone have a minimalist Domain.xml for WCK? I just want to serve content. I don't care about authentication right now. Thanks! -John --- John Rousseau Archivas, Inc. - 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: developers: table prefix
This may be OT, but I haven't found anyone yet who could explain an idiot like me what the fantastic benefits of IOC are. Can you? Oliver On Fri, 3 Dec 2004 11:31:30 -0500, John Gilbert [EMAIL PROTECTED] wrote: Springs big play is its IOC framework. (Inversion of Control) I'm new to it, but so far I haven't found anything in it that I couldn't whip together on my own. However, I am a big fan of the IOC design pattern. It has Hibernate and JDO support for using IOC to plug in implementations. I have recently been using JPOX JDO and the xDoclet JDO tags and Ant tasks to generate my JDO files and to enhance my POJOs. So far so good. I really like the fact that it will dynamically generate db schema for me. I believe it has a way to resolve table name conflicts. -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 11:02 AM To: Slide Users Mailing List Subject: Re: developers: table prefix Has anyone got any idea what role Spring would play in all this??? Oliver On Fri, 3 Dec 2004 16:57:42 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Some sort of very short pratcial OJB introduction at : http://blogs.codepuccino.com/dude/index.php?p=23 Oliver On Fri, 3 Dec 2004 16:24:35 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: I would definitely be +1 for moving to a ORM tool. There is *soo* much maintenance with all these different dbs. As Hibernate is no option *right now*, and I have zero experience with OJB I had a lookt at ibatis. It's nice, but it is an SQL mapper only and can not help us with different dbs :( Would be great if you could do a start with OJB. Maybe others will chime in as soon as the initial pain of getting it started is over. Oliver On Fri, 03 Dec 2004 11:15:28 +0900, Carlos Villegas [EMAIL PROTECTED] wrote: Well I have experience with OJB but not the time :-( I had promissed to look at the issues about the property-value field for storing lists like the revisions or group members. Maybe I can do it as part of that but I'm still trying to make the time... OJB will do just fine for Slide purposes and it's simple enough. The Java code for OJB is very readable, more than the embedded SQL in raw JDBC which adds to the maintainability. Carlos James Mason wrote: This is sort of on my todo list, but the only O/R tool I'm familiar with is Hibernate and for licensing reasons we can't integrate that with Slide (this may change in the future). I looked at OJB, but I wasn't impressed with some of the hoops I would have to jump through to accomplish, for example, lazy instantiation. I think this is the right way to go, if someone with the time and knowledge is willing to chip in. Right now I don't really have either :). -James On Fri, 2004-12-03 at 09:18 +0900, Carlos Villegas wrote: This is simple enough. But how about using one of the O/R mapping tools like Hibernate, Apache's OJB or Torque. The table names or mappings are usually setup in an external configuraton file. It adds additional benefits like supporting more databases and keeping all the database adapters in sync since they all become just one. Converting JDBC code to OJB, for example, is straightforward, we have done it, specially if there are no stored procedures like in Slide. Carlos Warwick Burrows wrote: There's something about preprocessing Java source that makes me a little uneasy :-) Isn't there another way? eg. instead of inserting a placeholder that gets replaced simply change the jdbc operation strings passed to the jdbc client as in this example? select name from + Config.table_prefix + PROPERTIES where field=1 Java will insert the prefix into the command automatically. There's no need for preprocessing and the amount of work required to change the code to suit this approach is no more or less than that needed to insert a placeholder string? Warwick -Original Message- From: Richard Emberson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 3:51 PM To: Slide Users Mailing List Subject: developers: table prefix This subject has been kicked around recently. Basically, there is an easy way to do it but if none of the Slide developers are interested then it will never go anywhere. How to add table prefixes to Slide's database table names - the simple way: Alter the build.xml file so that it does a filtered copy to a new directory build/gen_src prior to compilation. It is from this directory that the sources are then compiled. Each table name in the source has the string @TABLE_PREFIX@ prepened
Re: WCK question
Great :) The problem is that WCK has not yet been released with anything stable, but once reported I will try to fix issues as quickly as possble. Please do not hesitate to report anything that looks like a bug to you or what should be improved. Thanks, Oliver On Fri, 03 Dec 2004 13:16:10 -0500, John Rousseau [EMAIL PROTECTED] wrote: Much better. Thanks for the quick fix! -John Oliver Zeigermann wrote: OK, I have just committed somthing that should fix it, could you please try if it works for you?! Thanks, Oliver On Fri, 3 Dec 2004 17:15:08 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: I see, you are right, this has been done with the latest 29th November patch by Stefan. I will fix this ASAP, thanks for reporting :) Oliver On Fri, 03 Dec 2004 10:28:55 -0500, John Rousseau [EMAIL PROTECTED] wrote: I'm new to slide and WebDAV (but not to Java, HTTP, etc.). I'm trying to put a WebDAV frontend on our product. WCK seems to be exactly what I need. I'm using HEAD as of 02 Dec 2004. I've implemented BasicWebdavStore and I can browse our archive with the slide webdav client, however when I try to get a resource, I get back an HTML directory listing. This is because: webdav/method/GetMethod.java:238 finds that the NodeRevisionDescriptor for my resource has a COLLECTION property. This is because: slide/simple/store/WebdavStoreAdapter:597 news up a NodeRevisionDescriptor using a deprecated constructor, which calls the no-arg ctor which calls initDefaultProperties() which sets the resource type to a COLLECTION_TYPE. So, from the above, I think I understand _what_ is going wrong. What I'm hoping to hear from the list is _why_. Shouldn't the WebdavStoreAdapter call my BasicWebdavStore's isFolder() and set the resource type appropriately? Have I blown my implementation somehow? Did I goof the configuration? Is this a bug? Any help would be appreciated! Thanks for the great tool and the WCK expecially! It's making my life very easy. BTW, I'm having a very hard time groking what I need (and what I don't) in my Domain.xml. The wiki is a little light on details. Anyone have a minimalist Domain.xml for WCK? I just want to serve content. I don't care about authentication right now. Thanks! -John --- John Rousseau Archivas, Inc. - 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: WCK API question
What you expected is the way it should be. If it is not this is a bug. I will check this with the reference implementation. Oliver On Fri, 03 Dec 2004 15:59:59 -0500, John Rousseau [EMAIL PROTECTED] wrote: I'm trying to understand the BasicWebdavStore API a bit better. I was expecting that during a PUT, createResource() would be called with the name of a new resource and then setResourceContent() would be then called to supply the content itself. What I'm seeing is that setResourceContent is being called first and then createResource. In my implementation of createResource, I check to see if the resource already exists and if so throw ObjectAlreadyExistsException. Since I just created the resource in setResourceCountent, this causes me to throw and the WCK then calls rollback. Can someone describe these two methods in a bit more detail and explain what I should be doing in them? Should I just make createResource a no-op? Thanks -John --- John Rousseau Archivas, Inc. - 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]