RE: Binding store rename accents
Slide 2.1 Encoding : UTF-8 Client : Java Webdavlib Store : BindingStore The code : HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;); oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); WebdavResource oWebdavResource = new WebdavResource(oHttpURL); oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT ); if ( oWebdavResource.moveMethod( /slide/files/test, /slide/files/testéàù)) { oWebdavResource.commitTransaction(); } else oWebdavResource.abortTransaction(); oWebdavResource.close(); -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 08:57 À : Slide Users Mailing List Objet : Re: Binding store rename accents Sounds like an encoding problem! What version of slide are you using? What client? What encoding have you configured? /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 12:18 PM Subject: Binding store rename accents Hi, I use the binding store. If I try to rename a resource and the new resource name contains accents, then my resource disappears. I can't see it anymore. In the console, I can see when I access the parent folder of my resource : http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal Server Error, 16 ms, /files/workspaces Any idea ? 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: ACL permissions
Hi! Bertrand Tignon wrote: Hello ! I'm trying to understand how permissions work with Slide using its API and I have a few questions about it. 1) In the Privilege class there are 5 statics fields : ALL, READ, WRITE, READ_ACL, WRITE_ACL but I don't understand the difference between WRITE and WRITE_ACL, READ and READ_ACL. see specs http://www.webdav.org/specs/rfc3744.html 2) A privilege can only be one of these 5 fields or can we build other privileges ? There are other privileges like bind, unbind and so on see specs above and Domain.xml where all privileges are defined inside objectnode classname=org.apache.slide.structure.ActionNode uri=/actions element. You can also declare custom privileges under this node. They could be mapped to Slide actions in Domain.xml. Here is the example how we do: namespace name=slide . configuration !-- Actions mapping -- read-object/actions/read/read-object create-object/actions/sp-create-object/create-object remove-object/actions/sp-delete-object/remove-object grant-permission/actions/write-acl/grant-permission revoke-permission/actions/write-acl/revoke-permission read-permissions/actions/read-acl/read-permissions read-own-permissions/actions/read-current-user-privilege-set/read-own-permissions lock-object/actions/sp-modify/lock-object kill-lock/actions/unlock/kill-lock read-locks/actions/read/read-locks read-revision-metadata/actions/read/read-revision-metadata create-revision-metadata/actions/sp-create-properties/create-revision-metadata modify-revision-metadata/actions/write-properties/modify-revision-metadata remove-revision-metadata/actions/write-properties/remove-revision-metadata read-revision-content/actions/read/read-revision-content create-revision-content/actions/sp-create-content/create-revision-content modify-revision-content/actions/write-content/modify-revision-content remove-revision-content/actions/write-content/remove-revision-content bind-member/actions/bind/bind-member unbind-member/actions/unbind/unbind-member configuration All the privileges, that starts with sp- is our custom privileges. WARNING! Adding you custom privileges should not break standard behavior, specified in http://www.webdav.org/specs/rfc3744.html. To meet this requirement some other changes in Domain.xml was made. For example: objectnode classname=org.apache.slide.structure.ActionNode uri=/actions/write revision property name=privilege-member-set![CDATA[D:href xmlns:D='DAV:'/actions/sp-modify/D:href D:href xmlns:D='DAV:'/actions/sp-delete/D:hrefD:href xmlns:D='DAV:'/actions/sp-create/D:href]]/property /revision /objectnode ... And another newbie question, is there a wicki about creating slide users and slide roles with the Slide API ? Thanx a lot for your help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Binding store rename accents
If you are using the files based store and windows then you have to have following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise java will use local characterset instead of unicode in IO operations. I am not familiar with the client lib, but I don't think that lib will do the UTF-8 conversion for you. If I am correct the you will have to change /slide/files/testéàù to /slide/files/test%c3%a9%c3%a0%c3%b9. /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:06 AM Subject: RE: Binding store rename accents Slide 2.1 Encoding : UTF-8 Client : Java Webdavlib Store : BindingStore The code : HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;); oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); WebdavResource oWebdavResource = new WebdavResource(oHttpURL); oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT ); if ( oWebdavResource.moveMethod( /slide/files/test, /slide/files/testéàù)) { oWebdavResource.commitTransaction(); } else oWebdavResource.abortTransaction(); oWebdavResource.close(); -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 08:57 À : Slide Users Mailing List Objet : Re: Binding store rename accents Sounds like an encoding problem! What version of slide are you using? What client? What encoding have you configured? /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 12:18 PM Subject: Binding store rename accents Hi, I use the binding store. If I try to rename a resource and the new resource name contains accents, then my resource disappears. I can't see it anymore. In the console, I can see when I access the parent folder of my resource : http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal Server Error, 16 ms, /files/workspaces Any idea ? 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: Binding store rename accents
I have already configured -Dfile.encoding=UTF-8. I have seen that some methods need the parameters to be UTF-8 encoded, others don't. The move method doesnot need the parameters to be encoded. I don't have the problem with the standard store. -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 09:32 À : Slide Users Mailing List Objet : Re: Binding store rename accents If you are using the files based store and windows then you have to have following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise java will use local characterset instead of unicode in IO operations. I am not familiar with the client lib, but I don't think that lib will do the UTF-8 conversion for you. If I am correct the you will have to change /slide/files/testéàù to /slide/files/test%c3%a9%c3%a0%c3%b9. /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:06 AM Subject: RE: Binding store rename accents Slide 2.1 Encoding : UTF-8 Client : Java Webdavlib Store : BindingStore The code : HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;); oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); WebdavResource oWebdavResource = new WebdavResource(oHttpURL); oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT ); if ( oWebdavResource.moveMethod( /slide/files/test, /slide/files/testéàù)) { oWebdavResource.commitTransaction(); } else oWebdavResource.abortTransaction(); oWebdavResource.close(); -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 08:57 À : Slide Users Mailing List Objet : Re: Binding store rename accents Sounds like an encoding problem! What version of slide are you using? What client? What encoding have you configured? /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 12:18 PM Subject: Binding store rename accents Hi, I use the binding store. If I try to rename a resource and the new resource name contains accents, then my resource disappears. I can't see it anymore. In the console, I can see when I access the parent folder of my resource : http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal Server Error, 16 ms, /files/workspaces Any idea ? 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: Binding store rename accents
Try to use a trace program to see what data is sent from the client to the server. The request from the client should look something like this: MOVE /files/test HTTP/1.1 Host: localhost:82 Connection: TE TE: trailers Destination: http://localhost:82/files/test%c3%a9%c3%a0%c3%b9 /jacob PS: A nice little TCP trace program: http://www.pocketsoap.com/tcpTrace/ - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:38 AM Subject: RE: Binding store rename accents I have already configured -Dfile.encoding=UTF-8. I have seen that some methods need the parameters to be UTF-8 encoded, others don't. The move method doesnot need the parameters to be encoded. I don't have the problem with the standard store. -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 09:32 À : Slide Users Mailing List Objet : Re: Binding store rename accents If you are using the files based store and windows then you have to have following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise java will use local characterset instead of unicode in IO operations. I am not familiar with the client lib, but I don't think that lib will do the UTF-8 conversion for you. If I am correct the you will have to change /slide/files/testéàù to /slide/files/test%c3%a9%c3%a0%c3%b9. /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:06 AM Subject: RE: Binding store rename accents Slide 2.1 Encoding : UTF-8 Client : Java Webdavlib Store : BindingStore The code : HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;); oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); WebdavResource oWebdavResource = new WebdavResource(oHttpURL); oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT ); if ( oWebdavResource.moveMethod( /slide/files/test, /slide/files/testéàù)) { oWebdavResource.commitTransaction(); } else oWebdavResource.abortTransaction(); oWebdavResource.close(); -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 08:57 À : Slide Users Mailing List Objet : Re: Binding store rename accents Sounds like an encoding problem! What version of slide are you using? What client? What encoding have you configured? /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 12:18 PM Subject: Binding store rename accents Hi, I use the binding store. If I try to rename a resource and the new resource name contains accents, then my resource disappears. I can't see it anymore. In the console, I can see when I access the parent folder of my resource : http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal Server Error, 16 ms, /files/workspaces Any idea ? 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Binding store rename accents
Forgot to mention: I am using 2.1 and the filestore with bindings. Encoding set to UTF-8. The move shown below will move /files/test to /files/testéàù on my slide instance. /jacob - Original Message - From: Jacob Lund [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 10:00 AM Subject: Re: Binding store rename accents Try to use a trace program to see what data is sent from the client to the server. The request from the client should look something like this: MOVE /files/test HTTP/1.1 Host: localhost:82 Connection: TE TE: trailers Destination: http://localhost:82/files/test%c3%a9%c3%a0%c3%b9 /jacob PS: A nice little TCP trace program: http://www.pocketsoap.com/tcpTrace/ - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:38 AM Subject: RE: Binding store rename accents I have already configured -Dfile.encoding=UTF-8. I have seen that some methods need the parameters to be UTF-8 encoded, others don't. The move method doesnot need the parameters to be encoded. I don't have the problem with the standard store. -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 09:32 À : Slide Users Mailing List Objet : Re: Binding store rename accents If you are using the files based store and windows then you have to have following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise java will use local characterset instead of unicode in IO operations. I am not familiar with the client lib, but I don't think that lib will do the UTF-8 conversion for you. If I am correct the you will have to change /slide/files/testéàù to /slide/files/test%c3%a9%c3%a0%c3%b9. /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:06 AM Subject: RE: Binding store rename accents Slide 2.1 Encoding : UTF-8 Client : Java Webdavlib Store : BindingStore The code : HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;); oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); WebdavResource oWebdavResource = new WebdavResource(oHttpURL); oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT ); if ( oWebdavResource.moveMethod( /slide/files/test, /slide/files/testéàù)) { oWebdavResource.commitTransaction(); } else oWebdavResource.abortTransaction(); oWebdavResource.close(); -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 08:57 À : Slide Users Mailing List Objet : Re: Binding store rename accents Sounds like an encoding problem! What version of slide are you using? What client? What encoding have you configured? /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 12:18 PM Subject: Binding store rename accents Hi, I use the binding store. If I try to rename a resource and the new resource name contains accents, then my resource disappears. I can't see it anymore. In the console, I can see when I access the parent folder of my resource : http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal Server Error, 16 ms, /files/workspaces Any idea ? 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] - 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]
SQL Script for Slide 2.1 database on DB2 8
Dear All, I discovered that the db2server.sql database script hasn't been completely kept up to date with changes made to the other scripts. Specifically in my case the fix for the length of PROPERTIES.PROPERTY_VALUE not being enough hadn't been implemented (Bugzilla bugs 31020, 31118) I've been through the script and applied changes found in the MySQL scripts which appear to work the best. I've attached the modified DB2 script. I also noticed that the maximum possible length for a uri (URI.URI_STRING) is 255 characters. This strikes me as a little short, particularly if you have a lot of nested collections. Regards, Ben. -- Ben Sales Open Logic Solutions Limited Woodside, Perry Wood Walk, Worcester, WR5 1ES Tel: ++44 (0) 1905 760950 Fax: ++44 (0) 01905 760951 Email: [EMAIL PROTECTED] URL: http:// www.openlogic.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Binding store rename accents
Hia folks, I'm using binding store also, and had this similar problem last week. Can you confirm in server.xml that the http connector has the «URIEncoding=UTF-8» property ? Best regards, Miguel Figueiredo -Original Message- From: Jacob Lund [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 18 de Maio de 2005 9:12 To: Slide Users Mailing List Subject: Re: Binding store rename accents Forgot to mention: I am using 2.1 and the filestore with bindings. Encoding set to UTF-8. The move shown below will move /files/test to /files/testéàù on my slide instance. /jacob - Original Message - From: Jacob Lund [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 10:00 AM Subject: Re: Binding store rename accents Try to use a trace program to see what data is sent from the client to the server. The request from the client should look something like this: MOVE /files/test HTTP/1.1 Host: localhost:82 Connection: TE TE: trailers Destination: http://localhost:82/files/test%c3%a9%c3%a0%c3%b9 /jacob PS: A nice little TCP trace program: http://www.pocketsoap.com/tcpTrace/ - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:38 AM Subject: RE: Binding store rename accents I have already configured -Dfile.encoding=UTF-8. I have seen that some methods need the parameters to be UTF-8 encoded, others don't. The move method doesnot need the parameters to be encoded. I don't have the problem with the standard store. -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 09:32 À : Slide Users Mailing List Objet : Re: Binding store rename accents If you are using the files based store and windows then you have to have following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise java will use local characterset instead of unicode in IO operations. I am not familiar with the client lib, but I don't think that lib will do the UTF-8 conversion for you. If I am correct the you will have to change /slide/files/testéàù to /slide/files/test%c3%a9%c3%a0%c3%b9. /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:06 AM Subject: RE: Binding store rename accents Slide 2.1 Encoding : UTF-8 Client : Java Webdavlib Store : BindingStore The code : HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;); oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); WebdavResource oWebdavResource = new WebdavResource(oHttpURL); oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT ); if ( oWebdavResource.moveMethod( /slide/files/test, /slide/files/testéàù)) { oWebdavResource.commitTransaction(); } else oWebdavResource.abortTransaction(); oWebdavResource.close(); -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 08:57 À : Slide Users Mailing List Objet : Re: Binding store rename accents Sounds like an encoding problem! What version of slide are you using? What client? What encoding have you configured? /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 12:18 PM Subject: Binding store rename accents Hi, I use the binding store. If I try to rename a resource and the new resource name contains accents, then my resource disappears. I can't see it anymore. In the console, I can see when I access the parent folder of my resource : http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal Server Error, 16 ms, /files/workspaces Any idea ? 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] - 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: Binding store rename accents
Yes, the property is configured. Does it work for u now ? -Message d'origine- De : Miguel Figueiredo [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 12:22 À : 'Slide Users Mailing List' Objet : RE: Binding store rename accents Hia folks, I'm using binding store also, and had this similar problem last week. Can you confirm in server.xml that the http connector has the «URIEncoding=UTF-8» property ? Best regards, Miguel Figueiredo -Original Message- From: Jacob Lund [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 18 de Maio de 2005 9:12 To: Slide Users Mailing List Subject: Re: Binding store rename accents Forgot to mention: I am using 2.1 and the filestore with bindings. Encoding set to UTF-8. The move shown below will move /files/test to /files/testéàù on my slide instance. /jacob - Original Message - From: Jacob Lund [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 10:00 AM Subject: Re: Binding store rename accents Try to use a trace program to see what data is sent from the client to the server. The request from the client should look something like this: MOVE /files/test HTTP/1.1 Host: localhost:82 Connection: TE TE: trailers Destination: http://localhost:82/files/test%c3%a9%c3%a0%c3%b9 /jacob PS: A nice little TCP trace program: http://www.pocketsoap.com/tcpTrace/ - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:38 AM Subject: RE: Binding store rename accents I have already configured -Dfile.encoding=UTF-8. I have seen that some methods need the parameters to be UTF-8 encoded, others don't. The move method doesnot need the parameters to be encoded. I don't have the problem with the standard store. -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 09:32 À : Slide Users Mailing List Objet : Re: Binding store rename accents If you are using the files based store and windows then you have to have following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise java will use local characterset instead of unicode in IO operations. I am not familiar with the client lib, but I don't think that lib will do the UTF-8 conversion for you. If I am correct the you will have to change /slide/files/testéàù to /slide/files/test%c3%a9%c3%a0%c3%b9. /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:06 AM Subject: RE: Binding store rename accents Slide 2.1 Encoding : UTF-8 Client : Java Webdavlib Store : BindingStore The code : HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;); oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); WebdavResource oWebdavResource = new WebdavResource(oHttpURL); oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT ); if ( oWebdavResource.moveMethod( /slide/files/test, /slide/files/testéàù)) { oWebdavResource.commitTransaction(); } else oWebdavResource.abortTransaction(); oWebdavResource.close(); -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 08:57 À : Slide Users Mailing List Objet : Re: Binding store rename accents Sounds like an encoding problem! What version of slide are you using? What client? What encoding have you configured? /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 12:18 PM Subject: Binding store rename accents Hi, I use the binding store. If I try to rename a resource and the new resource name contains accents, then my resource disappears. I can't see it anymore. In the console, I can see when I access the parent folder of my resource : http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal Server Error, 16 ms, /files/workspaces Any idea ? 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
RE: Binding store rename accents
Yes it does, I don't have an encoding problem after setting that property to UTF8... Also, from the client side I have default configurations so I didn't have the opportunity to mess them up. Miguel -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 18 de Maio de 2005 11:24 To: Slide Users Mailing List Subject: RE: Binding store rename accents Yes, the property is configured. Does it work for u now ? -Message d'origine- De : Miguel Figueiredo [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 12:22 À : 'Slide Users Mailing List' Objet : RE: Binding store rename accents Hia folks, I'm using binding store also, and had this similar problem last week. Can you confirm in server.xml that the http connector has the «URIEncoding=UTF-8» property ? Best regards, Miguel Figueiredo -Original Message- From: Jacob Lund [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 18 de Maio de 2005 9:12 To: Slide Users Mailing List Subject: Re: Binding store rename accents Forgot to mention: I am using 2.1 and the filestore with bindings. Encoding set to UTF-8. The move shown below will move /files/test to /files/testéàù on my slide instance. /jacob - Original Message - From: Jacob Lund [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 10:00 AM Subject: Re: Binding store rename accents Try to use a trace program to see what data is sent from the client to the server. The request from the client should look something like this: MOVE /files/test HTTP/1.1 Host: localhost:82 Connection: TE TE: trailers Destination: http://localhost:82/files/test%c3%a9%c3%a0%c3%b9 /jacob PS: A nice little TCP trace program: http://www.pocketsoap.com/tcpTrace/ - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:38 AM Subject: RE: Binding store rename accents I have already configured -Dfile.encoding=UTF-8. I have seen that some methods need the parameters to be UTF-8 encoded, others don't. The move method doesnot need the parameters to be encoded. I don't have the problem with the standard store. -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 09:32 À : Slide Users Mailing List Objet : Re: Binding store rename accents If you are using the files based store and windows then you have to have following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise java will use local characterset instead of unicode in IO operations. I am not familiar with the client lib, but I don't think that lib will do the UTF-8 conversion for you. If I am correct the you will have to change /slide/files/testéàù to /slide/files/test%c3%a9%c3%a0%c3%b9. /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:06 AM Subject: RE: Binding store rename accents Slide 2.1 Encoding : UTF-8 Client : Java Webdavlib Store : BindingStore The code : HttpURL oHttpURL = new HttpURL(http://localhost:8080/slide;); oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); WebdavResource oWebdavResource = new WebdavResource(oHttpURL); oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT ); if ( oWebdavResource.moveMethod( /slide/files/test, /slide/files/testéàù)) { oWebdavResource.commitTransaction(); } else oWebdavResource.abortTransaction(); oWebdavResource.close(); -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 08:57 À : Slide Users Mailing List Objet : Re: Binding store rename accents Sounds like an encoding problem! What version of slide are you using? What client? What encoding have you configured? /jacob - Original Message - From: Laurent Michenaud [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 12:18 PM Subject: Binding store rename accents Hi, I use the binding store. If I try to rename a resource and the new resource name contains accents, then my resource disappears. I can't see it anymore. In the console, I can see when I access the parent folder of my resource : http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 Internal Server Error, 16 ms, /files/workspaces Any idea ? 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
Re: Re: Problems getting authentication working
I've been following the online documentation but I guess I'm not clear on the difference between access control and authentication and where/how it should be applied. As I understand it access control determines the permissions that a user has for certain actions. These access controls are specified in Domain.xml correct? So how does authentication differ? Reading the Security section of the online docs it simply indicates that to enable authentication one should uncomment the indicated lines in web.xml but doesn't indicate any further JAAS setup is required. I have quite limited experience with this so any help/clarification is much appreciated. Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag On Wed, 18 May 2005, Jacob Lund ([EMAIL PROTECTED]) wrote: What realm do you want to use? If you want to use users and groups defined in slide the have a look at: http://jakarta.apache.org/slide/howto-jaas.html /jacob - Original Message - From: Brandon Dove [EMAIL PROTECTED] To: slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 11:21 PM Subject: Problems getting authentication working I've enabled authentication (by uncommenting the lines indicated in web.xml) but subsequent attempts to log in fail using any login/password (including root/root). The logs indicate the following error: SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone offer some help? I'm using Slide 2.1 with Tomcat 5.5.4. Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - 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: Re: Problems getting authentication working
Hello Brandon, Authentication is a process in witch a user makes himself unmistakably known to the web application. Access Control is another process, in witch it's tested if an authenticated user (also called a principal), has rights to perform an action on a resource. You can configure default access control to principals in the startup repository image that is created inside the data tag in domain.xml, but the usual way to do it shall be in runtime, by using the client side API. Uncommenting the security directives on web.xml, just enables the usage of the default roles and users (principals), also configured in domain.xml, so JAAS isn't needed now. My advice: messing up with jaas isn't for the feint of heart, so I wouldn't sugest you to try it just yet ;) Best regards, Miguel Figueiredo -Original Message- From: Brandon Dove [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 18 de Maio de 2005 15:21 To: Jacob Lund Subject: Re: Re: Problems getting authentication working I've been following the online documentation but I guess I'm not clear on the difference between access control and authentication and where/how it should be applied. As I understand it access control determines the permissions that a user has for certain actions. These access controls are specified in Domain.xml correct? So how does authentication differ? Reading the Security section of the online docs it simply indicates that to enable authentication one should uncomment the indicated lines in web.xml but doesn't indicate any further JAAS setup is required. I have quite limited experience with this so any help/clarification is much appreciated. Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag On Wed, 18 May 2005, Jacob Lund ([EMAIL PROTECTED]) wrote: What realm do you want to use? If you want to use users and groups defined in slide the have a look at: http://jakarta.apache.org/slide/howto-jaas.html /jacob - Original Message - From: Brandon Dove [EMAIL PROTECTED] To: slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 11:21 PM Subject: Problems getting authentication working I've enabled authentication (by uncommenting the lines indicated in web.xml) but subsequent attempts to log in fail using any login/password (including root/root). The logs indicate the following error: SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone offer some help? I'm using Slide 2.1 with Tomcat 5.5.4. Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - 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: Problems getting authentication working
Brandon Dove wrote: I've been following the online documentation but I guess I'm not clear on the difference between access control and authentication and where/how it should be applied. As I understand it access control determines the permissions that a user has for certain actions. These access controls are specified in Domain.xml correct? Access control is a way of restricting user access to resources. Resources have Access Control Lists (ACL) attached to them. ACL contains lists of privileges for a principals (a user or a role). Initial ACLs are defined in Domain.xml. Later you can alter any resource ACL you want (if you have permission to do it) by WebdavResource.aclMethod() So how does authentication differ? Authentication is about checking whether the user is really the one he stated he is. (Login procedure does authentication). When you disable authentication, you do not see Login promt when connecting to Slide. You act as unauthenticated principal then. Reading the Security section of the online docs it simply indicates that to enable authentication one should uncomment the indicated lines in web.xml but doesn't indicate any further JAAS setup is required. I have quite limited experience with this so any help/clarification is much appreciated. Do you have jaas.config file under Tomcat/conf? Also you should have properly configured server.xml. If you downloaded a bundle from Slide site you shouldn't have any problem with this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Problems getting authentication working
Do you have jaas.config file under Tomcat/conf? Also you should have properly configured server.xml. If you downloaded a bundle from Slide site you shouldn't have any problem with this. I didn't download the Tomcat/Slide bundle as I already have Tomcat configured and running and didn't want to change my existing setup. The security section makes no mention of any further JAAS setup needed to get authentication working. Is this simply an oversight in the docs or am I missing something? Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DASL
Hi! I try like with a DASL search but it don't woork... any idea? Where (the class) can I extend DASL grammar to support unsupported statament? Thanks! Gio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Problems getting authentication working
Hello Brandon, See my responses inline. Best regards, Miguel Figueiredo -Original Message- From: Brandon Dove [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 18 de Maio de 2005 16:28 To: slide-user@jakarta.apache.org Subject: RE: Re: Problems getting authentication working Miguel -- thanks for the clarification. So access control deals with principals and the rights they have to perform actions on resources and authentication deals with granting a user access to the webapp itself. Reading the documentation is it not authentication that's enabled/disabled in web.xml and not access control? Miguel that is correct At any rate I've followed the basic steps outlined in the security documentation but get the following error in my logs: May 17, 2005 5:32:46 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97) Any ideas why I'd be getting this error? I've never intalled/setup anything to do with JAAS on this server (and I've setup the server from scratch and been the sole adminstrator since then) so I'm a little confused as to why I'd see mention of the JAASRealm in the logs. Miguel I believe that one distribution of slide comes with jaas integration. It seems to be your case, so, I believe that you only need to delete the JAASRealm pointing to a slide configuration on server.xml of tomcat. Cheers, Brandon On Wed, 18 May 2005, Miguel Figueiredo ([EMAIL PROTECTED]) wrote: Hello Brandon, Authentication is a process in witch a user makes himself unmistakably known to the web application. Access Control is another process, in witch it's tested if an authenticated user (also called a principal), has rights to perform an action on a resource. You can configure default access control to principals in the startup repository image that is created inside the data tag in domain.xml, but the usual way to do it shall be in runtime, by using the client side API. Uncommenting the security directives on web.xml, just enables the usage of the default roles and users (principals), also configured in domain.xml, so JAAS isn't needed now. My advice: messing up with jaas isn't for the feint of heart, so I wouldn't sugest you to try it just yet ;) Best regards, Miguel Figueiredo -Original Message- From: Brandon Dove [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 18 de Maio de 2005 15:21 To: Jacob Lund Subject: Re: Re: Problems getting authentication working I've been following the online documentation but I guess I'm not clear on the difference between access control and authentication and where/how it should be applied. As I understand it access control determines the permissions that a user has for certain actions. These access controls are specified in Domain.xml correct? So how does authentication differ? Reading the Security section of the online docs it simply indicates that to enable authentication one should uncomment the indicated lines in web.xml but doesn't indicate any further JAAS setup is required. I have quite limited experience with this so any help/clarification is much appreciated. Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag On Wed, 18 May 2005, Jacob Lund ([EMAIL PROTECTED]) wrote: What realm do you want to use? If you want to use users and groups defined in slide the have a look at: http://jakarta.apache.org/slide/howto-jaas.html /jacob - Original Message - From: Brandon Dove [EMAIL PROTECTED] To: slide-user@jakarta.apache.org Sent: Tuesday, May 17, 2005 11:21 PM Subject: Problems getting authentication working I've enabled authentication (by uncommenting the lines indicated in web.xml) but subsequent attempts to log in fail using any login/password (including root/root). The logs indicate the following error: SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a login configuration Can anyone offer some help? I'm using Slide 2.1 with Tomcat 5.5.4. Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - 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,
RE: Re: Problems getting authentication working
I believe that one distribution of slide comes with jaas integration. It seems to be your case, so, I believe that you only need to delete the JAASRealm pointing to a slide configuration on server.xml of tomcat. I've looked for any references to JAAS in my configuration and can see nothing. I've done the following in $TOMCAT_HOME: grep -i jass $(find .) and find no matches other than in the binary file $TOMCAT_HOME/webapps/slide/WEB-INF/slide-jaas-2.1.jar. Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems getting authentication working
So, fresh install of Tomcat 5.5.9 and fresh install of Slide 2.1 (I removed slide-jaas-2.1.jar). I notice right away the following lines in catalina.out: May 18, 2005 3:55:20 PM org.apache.catalina.realm.JAASRealm setContainer INFO: Set JAAS app name Catalina I haven't specifically configured the JAASRealm anywhere. Any idea why it seems to be getting used? Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag Brandon Dove ([EMAIL PROTECTED]) wrote Reply-To: Slide Users Mailing List slide-user@jakarta.apache.org Date: Wed, 18 May 2005 14:24:06 -0400 To: slide-user@jakarta.apache.org From: Brandon Dove [EMAIL PROTECTED] Reply-to: [EMAIL PROTECTED] Subject: RE: Re: Problems getting authentication working I believe that one distribution of slide comes with jaas integration. It seems to be your case, so, I believe that you only need to delete the JAASRealm pointing to a slide configuration on server.xml of tomcat. I've looked for any references to JAAS in my configuration and can see nothing. I've done the following in $TOMCAT_HOME: grep -i jass $(find .) and find no matches other than in the binary file $TOMCAT_HOME/webapps/slide/WEB-INF/slide-jaas-2.1.jar. Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - 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]
Problems integrating Slide
I asked this question last week but received no reply. Authentication aside, I'd like to integrate Slide's webdav servlet into and existing web application. I've done the following: -copied the necessary info from Slide's web.xml into my existing web.xml -copied all the JARs included with Slide into my existing /WEB-INF/lib/ directory Now, when I startup Tomcat I see Slide getting started up in the logs (tons of INFO messages), and I can actually map http://myserver/slide as a web folder in XP, but when I try to navigate to one of the folders such as /files/ to actually browse my content I get an error. Is there anything I'm missing? Any ideas/suggestions would be greatly appreciated! Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems integrating Slide
Hi Brandon, I am also facing the same problem..i am waiting for the replay...because i traied so much times...i mailed somany times but..still i am getting the same errorplz anybody know the solution plz give me the replay... Thanks Srinivas Brandon Dove [EMAIL PROTECTED] wrote: I asked this question last week but received no reply. Authentication aside, I'd like to integrate Slide's webdav servlet into and existing web application. I've done the following: -copied the necessary info from Slide's web.xml into my existing web.xml -copied all the JARs included with Slide into my existing /WEB-INF/lib/ directory Now, when I startup Tomcat I see Slide getting started up in the logs (tons of INFO messages), and I can actually map http://myserver/slide as a web folder in XP, but when I try to navigate to one of the folders such as /files/ to actually browse my content I get an error. Is there anything I'm missing? Any ideas/suggestions would be greatly appreciated! Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone.
Re: Re: Problems integrating Slide
Well I've figured out *my* problem. I changed the servlet mapping from the default to: /slide when it should have been: /slide/* I can now store/retrieve content from the /files subdirectory. Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag On Wed, 18 May 2005, Srinivas Rao ([EMAIL PROTECTED]) wrote: Hi Brandon, I am also facing the same problem..i am waiting for the replay...because i traied so much times...i mailed somany times but..still i am getting the same errorplz anybody know the solution plz give me the replay... Thanks Srinivas Brandon Dove [EMAIL PROTECTED] wrote: I asked this question last week but received no reply. Authentication aside, I'd like to integrate Slide's webdav servlet into and existing web application. I've done the following: -copied the necessary info from Slide's web.xml into my existing web.xml -copied all the JARs included with Slide into my existing /WEB-INF/lib/ directory Now, when I startup Tomcat I see Slide getting started up in the logs (tons of INFO messages), and I can actually map http://myserver/slide as a web folder in XP, but when I try to navigate to one of the folders such as /files/ to actually browse my content I get an error. Is there anything I'm missing? Any ideas/suggestions would be greatly appreciated! Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]