[xwiki-users] generic XML API snippet, and SOS
I've posted a snippet: http://code.xwiki.org/xwiki/bin/view/Snippets/GenericXMLapiSnippet Which adds a very simple XML API to a site. This API allows other sites to programmaticaly query the XWiki site, and display data from it in any form they choose. You can see an example here: http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/api/genericXML I came across two problems in the process of writing this. One is general, and onw specific to my site - and fatal. the first problem is that is seems like this API can deliver protected data to a non-registered user. To avoid this on my site, I restricted it not to show classes under the XWiki space. Shouldn't this be blocked at a lower level? The second problem was that I have some fields (propoerties) in some of the classes which I'm not using. Since I can't delete them, I decided to change the name to ".unused" and filter. However, once I did this it seems to have completly crashed the class at hand. I can't even look at the Class in the ClassEditor to delete the latest versions and go back to the latest good one. Here is the corrupted class: http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Cases/CaseClass Any ideas? ___ Yishay Mor, Researcher, London Knowledge Lab http://www.lkl.ac.uk/people/mor.html http://www.google.com/calendar/embed?src=yishaym%40gmail.com +44-20-7837 x5737 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki eating all the CPU
> > My 1.6 Xwiki install has started eating all my CPU when I try to go to > > any "dynamic page" like Blogs or What's New. Regular static pages work > > fine. Eventually, tomcat times out the connection to the rendered page. > >I upgraded to 1.7 but the behavior is still the same. > Make sure you don't allow robots to browse the PDF exports, as the > export process takes a lot of computation power. See > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HRobotstxt > (and in general read all the performance tips on that page). This is an internal corporate wiki and it only blows up when I try to go to "dynamic pages" as I mentioned above. There are no robots involved in any way. > > Attached is the Xwiki.log, which doesn't seem to have much other than an > > NPE which I doubt is the cause. Also included is a thread dump in the > > catalina.out. > Note that our mailing list does not accept attachments, and it is a bad > practice to post large attachments to public mailing list. The best > thing to do is to use a public text sharing tool, like > http://pastebin.com/ or http://rafb.net/paste/ I would hardly consider an 8 K attachment to be "large". The thread dump alone is too big to really put on pastebin but nonetheless: Xwiki.log: http://terracotta.pastebin.com/m3733cc04 Catalina.out: http://terracotta.pastebin.com/m8eaf221 I think "TP-Processor12" looks pretty suspect here. > > At the very least this could be a denial of service attack because I'm > > sure it > > must be because of some entry someone made. > Unlikely. Well, the version of Xwiki hadn't changed, nor tomcat, nor java. One day it's been running for months without issue and the next it is eating CPU every time I try to look at What's New or Blogs. What should I be looking at besides users posting? I've opened XE-351 to track the issue. Thanks for the help, -Dave ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki eating all the CPU
Dave Mangot wrote: > My 1.6 Xwiki install has started eating all my CPU when I try to go to > any "dynamic page" like Blogs or What's New. Regular static pages work > fine. Eventually, tomcat times out the connection to the rendered page. >I upgraded to 1.7 but the behavior is still the same. Make sure you don't allow robots to browse the PDF exports, as the export process takes a lot of computation power. See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HRobotstxt (and in general read all the performance tips on that page). > Attached is the Xwiki.log, which doesn't seem to have much other than an > NPE which I doubt is the cause. Also included is a thread dump in the > catalina.out. Note that our mailing list does not accept attachments, and it is a bad practice to post large attachments to public mailing list. The best thing to do is to use a public text sharing tool, like http://pastebin.com/ or http://rafb.net/paste/ > At the very least this could be a denial of service attack because I'm > sure it > must be because of some entry someone made. Unlikely. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] xwiki eating all the CPU
My 1.6 Xwiki install has started eating all my CPU when I try to go to any "dynamic page" like Blogs or What's New. Regular static pages work fine. Eventually, tomcat times out the connection to the rendered page. I upgraded to 1.7 but the behavior is still the same. Attached is the Xwiki.log, which doesn't seem to have much other than an NPE which I doubt is the cause. Also included is a thread dump in the catalina.out. At the very least this could be a denial of service attack because I'm sure it must be because of some entry someone made. Help!? -Dave -- Dave Mangot Terracotta Inc. 650 Townsend St. Suite 325 San Francisco, CA 94103 USA +1 415 738 4059 dman...@terracottatech.com This e-mail incorporates Terracotta's confidentiality policy, which is online at http://www.terracottatech.com/emailconfidentiality.shtml -- Dave Mangot Terracotta Inc. 650 Townsend St. Suite 325 San Francisco, CA 94103 USA +1 415 738 4059 dman...@terracottatech.com This e-mail incorporates Terracotta's confidentiality policy, which is online at http://www.terracottatech.com/emailconfidentiality.shtml ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Multiple LDAP backends?
Hi. We had the same requirement in our company. I ended up extending LDAPAuthServiceImpl to sequentially checking against the AD servers in the list. It also required extending xwiki configuration to pass a list of AD servers and DN's etc - instead of a single AD. That is probably a quick and dirty way to go. Now, all our groups are created in Wiki itself. I am not using AD groups to map to Wiki groups. So, it was not as much complicated. HTH, Srini Pulugurtha On Thu, Dec 18, 2008 at 12:45 PM, Thomas Mortagne wrote: > Hi, > > First thing to do is to vote for > http://jira.xwiki.org/jira/browse/XWIKI-2577 (which looks like what > you are asking for I think) to make it more important ;) > > For now nobody from core developers team has time to work on it but > patches and suggestion are very welcome. > > On Thu, Dec 18, 2008 at 4:36 PM, wrote: > > I'd also be interested in such a feature so we could fall back to our > > backup LDAP server (actually, Active Directory). > > > > Regards, > > Brian. > > > > - > > CONFIDENTIALITY STATEMENT: > > This e-mail transmission contains information that is intended to > > be confidential. It is intended only for the addressee named > > above. If you receive this e-mail in error, please do not read, > > copy, or disseminate it. If you are not the intended recipient, > > any disclosure, copying, distribution or use of the contents of > > this information is prohibited. Please reply to the message > > immediately by informing the sender that the message was > > misdirected. After replying, please erase it from your computer > > system. Your assistance in correcting this error is appreciated. > > ___ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > > > Thanks, > -- > Thomas Mortagne > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Multiple LDAP backends?
Hi, First thing to do is to vote for http://jira.xwiki.org/jira/browse/XWIKI-2577 (which looks like what you are asking for I think) to make it more important ;) For now nobody from core developers team has time to work on it but patches and suggestion are very welcome. On Thu, Dec 18, 2008 at 4:36 PM, wrote: > I'd also be interested in such a feature so we could fall back to our > backup LDAP server (actually, Active Directory). > > Regards, > Brian. > > - > CONFIDENTIALITY STATEMENT: > This e-mail transmission contains information that is intended to > be confidential. It is intended only for the addressee named > above. If you receive this e-mail in error, please do not read, > copy, or disseminate it. If you are not the intended recipient, > any disclosure, copying, distribution or use of the contents of > this information is prohibited. Please reply to the message > immediately by informing the sender that the message was > misdirected. After replying, please erase it from your computer > system. Your assistance in correcting this error is appreciated. > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > Thanks, -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] WebDAV.XWikiUI.V1.PATCH
Hi Karsten, On Thu, Dec 18, 2008 at 9:06 PM, Karsten Nielsen wrote: > Hi Asiri > > The problem has 2 aspects it seams. > > 1. The problem turned out not to be a vista problem but an microsoft > office 2007 issue. I have googled for a solution and what I found was to > copy xwiki to tomcat's ROOT directory but xwiki webdav does not like that. > the $xwiki.webdav.getURL() returns nothing. > You should use the xwiki-root-webapp which was exactly meant to solve this problem [ http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/tools/xwiki-rootwebapp/1.1-SNAPSHOT/xwiki-rootwebapp-1.1-20081218.144304-589.war ] Deploy this war file as your root webapp and deploy the xwiki webapp as usual and you are good to go. 2. If I try to use the latest xwiki-webdav-1.8-20081218.123600-108.jar I > get this error when I try to reload my xwiki Sorry, I should have mentioned this but didn't came into mind. The latest webdav version Uses XWikiDavFilter and XWikiDavServlet instead of DavFilter & DavServlet. So you need to edit your web.xml file accordingly. Open your /webapps/xwiki/WEB-INF/web.xml and find the following entries : DavFilter com.xpn.xwiki.plugin.webdav.DavFilter AND webdav com.xpn.xwiki.plugin.webdav.DavServlet Then change them to : DavFilter com.xpn.xwiki.plugin.webdav.XWikiDavFilter AND webdav com.xpn.xwiki.plugin.webdav.XWikiDavServlet I think you need to do both of these tasks to make it work. I'm sorry about having to drag you this long but it's a feature we haven't released yet, so there is some trouble... ;) - Asiri ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] WebDAV.XWikiUI.V1.PATCH
Hi Asiri The problem has 2 aspects it seams. 1. The problem turned out not to be a vista problem but an microsoft office 2007 issue. I have googled for a solution and what I found was to copy xwiki to tomcat's ROOT directory but xwiki webdav does not like that. the $xwiki.webdav.getURL() returns nothing. I hav not yet tried the rights issue but will return on that one. 2. If I try to use the latest xwiki-webdav-1.8-20081218.123600-108.jar I get this error when I try to reload my xwiki 2008-12-18 17:26:36,383 [] [http-8080-Processor24] ERROR [localhost].[/xwiki]- Exception starting filter DavFilter java.lang.ClassNotFoundException: com.xpn.xwiki.plugin.webdav.DavFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:207) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3025) at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:907) at org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.java:491) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:619) Dec 18, 2008 5:26:36 PM org.apache.catalina.core.StandardContext start > Hi Karsten, > > It is correct that a webdav client reports /pages and not /spaces. But >> after I upgraded the xwiki-webdav-*.jar file it stil reports /pages >> however the upgrade fixet the 500 server error. >> >> The only issue I have left is to get the edit attachment to work with >> Vista, it opens the files in read-only mode. >> >> Is it true that the user Editing the attachments must be a member og >> Admin? If not I think that is a bug in the system. >> > > Anyone with 'Edit' rights can edit the attachments. You can verify this at > http://91.121.237.216/xwiki/bin/view/WebDAV/ by registering a new account > and trying to edit one of the attachments. If you still can't edit the > attachments there, that means there is a problem specific to vista. Can > you > verify this ? > > Also, are you using the latest version of webdav ? > http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-webdav/1.8-SNAPSHOT/xwiki-webdav-1.8-20081218.123600-108.jar > > Thanks. > > - Asiri > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Multiple LDAP backends?
I'd also be interested in such a feature so we could fall back to our backup LDAP server (actually, Active Directory). Regards, Brian. - CONFIDENTIALITY STATEMENT: This e-mail transmission contains information that is intended to be confidential. It is intended only for the addressee named above. If you receive this e-mail in error, please do not read, copy, or disseminate it. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Multiple LDAP backends?
Hello everyone, We have XWiki set up to authenticate users against our Active Directory using XWiki's LDAP lookup feature. It works beautifully for our main office. However, we have several other offices, and they would like to use XWiki as well. The problem is that these users are in different domains, and use different AD domain controllers, which means we have to query those LDAP backends separately. It looks to me like XWiki only supports querying of one domain controller at a time. As a workaround until a more permanent solution can be found, I am creating local user accounts on XWiki for these people and allowing fallback authentication against the local database. Of course, this setup will be problematic in the future with regard to password policy, so I'd really like to get LDAP functional for them as well. Any suggestions? Thanks-- we're really liking XWiki here. Dan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki mssql
Could you please attach your working mapping file to this issue : http://jira.xwiki.org/jira/browse/XWIKI-3017 ? Thanks, JV. On Thu, Dec 18, 2008 at 2:10 PM, hel-o wrote: > > Hi, > > the included xwiki.mssql.hbm.xml does not work. I found some problems and > changed it and got a running XEM 1.7 installation but im not a mssql expert > so im concerned about one thing: > > In the original file there is: > > table="xwikiattrecyclebin" mutable="false"> > ... > > not-null="true" /> > > ... > > that doesn't work -> throws an exeption. > > I changed it to: > > table="xwikiattrecyclebin" mutable="false"> > ... > > length="10"/> > > ... > > and it works but i don't know if this could have negative consequences. > > hel. > > > > Sergiu Dumitriu-2 wrote: >> >> >> The change is that a new field for XWikiDocument was added, "hidden". >> You should search for the mapping for that field in the default (hsql) >> mapping file, and copy it in your mssql file. >> >> > > -- > View this message in context: > http://n2.nabble.com/xwiki-mssql-tp1672414p1672853.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] WebDAV.XWikiUI.V1.PATCH
> > Anyone with 'Edit' rights can edit the attachments. You can verify this at > http://91.121.237.216/xwiki/bin/view/WebDAV/ by registering a new account > and trying to edit one of the attachments. If you still can't edit the > attachments there, that means there is a problem specific to vista. Can you > verify this ? PS : server at 91.121.237.216 might not be available all the time because it's a *test* server ;) Thanks. - Asiri ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] WebDAV.XWikiUI.V1.PATCH
Hi Karsten, It is correct that a webdav client reports /pages and not /spaces. But > after I upgraded the xwiki-webdav-*.jar file it stil reports /pages > however the upgrade fixet the 500 server error. > > The only issue I have left is to get the edit attachment to work with > Vista, it opens the files in read-only mode. > > Is it true that the user Editing the attachments must be a member og > Admin? If not I think that is a bug in the system. > Anyone with 'Edit' rights can edit the attachments. You can verify this at http://91.121.237.216/xwiki/bin/view/WebDAV/ by registering a new account and trying to edit one of the attachments. If you still can't edit the attachments there, that means there is a problem specific to vista. Can you verify this ? Also, are you using the latest version of webdav ? http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-webdav/1.8-SNAPSHOT/xwiki-webdav-1.8-20081218.123600-108.jar Thanks. - Asiri ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] WebDAV.XWikiUI.V1.PATCH
Hi Asiri It is correct that a webdav client reports /pages and not /spaces. But after I upgraded the xwiki-webdav-*.jar file it stil reports /pages however the upgrade fixet the 500 server error. The only issue I have left is to get the edit attachment to work with Vista, it opens the files in read-only mode. Is it true that the user Editing the attachments must be a member og Admin? If not I think that is a bug in the system. - Karsten > Hi Karsten, > > [http://223.9.0.148:8080/xwiki/webdav/spaces/Main/WebHome/ahh.xls] > > Most likely the webdav module (not the plugin but the server) uses /pages > for instead of /spaces. You can verify this by connecting to your xwiki > server with a webdav client as guided in > http://dev.xwiki.org/xwiki/bin/view/Drafts/WebDAV. If you see a 'pages' > view > instead of a 'spaces' view, you might want toupdate your webdav module. > > You can do this by erasing your > /webapps/xwiki/WEB-INF/lib/xwiki-webdav-**.jar file and replacing it with > one from > http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-webdav/1.8-SNAPSHOT/ > > But this requires you to restart your xwiki server. > > - Asiri > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki mssql
Hi, the included xwiki.mssql.hbm.xml does not work. I found some problems and changed it and got a running XEM 1.7 installation but im not a mssql expert so im concerned about one thing: In the original file there is: ... ... that doesn't work -> throws an exeption. I changed it to: ... ... and it works but i don't know if this could have negative consequences. hel. Sergiu Dumitriu-2 wrote: > > > The change is that a new field for XWikiDocument was added, "hidden". > You should search for the mapping for that field in the default (hsql) > mapping file, and copy it in your mssql file. > > -- View this message in context: http://n2.nabble.com/xwiki-mssql-tp1672414p1672853.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki groups + ldap
On Thu, Dec 18, 2008 at 10:36 AM, Bartłomiej Radziszewski wrote: > Thomas Mortagne wrote: >> On Thu, Dec 18, 2008 at 9:04 AM, Bartłomiej Radziszewski >> wrote: >> >>> Thomas Mortagne wrote: >>> 2008/12/17 Bartłomiej Radziszewski : > hello, > > I have a question about ldap posixGroups and xwiki groups. > > it is posible synchronize ldap groups to xwiki dynamically? for example > when i will add group to ldap then it will created in xwiki? > > I know about opition: > > #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl] > #-# mapps XWiki groups to LDAP groups, separator is "|" > # > xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=AdminRole,ou=groups,o=MegaNova,c=US|\ > # > XWiki.Organisation=cn=testers,ou=groups,o=MegaNova,c=US > > > ..but after created ldap group i need to add new group to xwiki.cfg file > and restart xwiki app.. this is not useful solution. :( Anybody know > other solution? > > Yes you can set the mapping configuration (and any other LDAP configuration, even indicate if LDAP is enabled or not) at XWiki.XWikiPreferences level in the ldap_group_mapping field. See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HGenericLDAPconfiguration for more details. >>> So i have a question. After created new posixGroup in ldap i need to add >>> this group to ldap_group_mapping and restart xwiki? >>> >> >> No, all you put in XWiki.XWikiPreference is dynamically taken into >> account so you don't need to restart. >> >> > Ok i have found this object in Xwiki.XwikiPreferences, i can right now > delete all ldap configuration from xwiki.cfg and move it to this object > right? You don't need to remove it: all configuration in xwiki.cfg will be considered as default configuration if it can't be found in XWiki.XWikiPreference. So the better I think is just to modify what you need to modify in XWiki.XWikiPreferences only when you need it. > thx for help and greets! > > -- > Bartłomiej Radziszewski > mobile: +48 509 561 540 > e-mail: b...@debian.linux.pl > JID: b...@debian.linux.pl > ICQ: #305569725 > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > > > >>> -- >>> Bartłomiej Radziszewski >>> mobile: +48 509 561 540 >>> e-mail: b...@debian.linux.pl >>> JID: b...@debian.linux.pl >>> ICQ: #305569725 >>> >>> >>> ___ >>> users mailing list >>> users@xwiki.org >>> http://lists.xwiki.org/mailman/listinfo/users >>> >>> >> >> >> >> > > > -- > Bartłomiej Radziszewski > mobile: +48 509 561 540 > e-mail: b...@debian.linux.pl > JID: b...@debian.linux.pl > ICQ: #305569725 > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Removing the Register Link
I apologize for my very delayed response. Yes, I did explicitly deny the guest user access to Register. Here's what I found when playing around with the permissions this morning. I don't want anyone to register so I explicitly denied all groups access to Register. I also denied unregistered users Register access. This scenario does not remove the register link. However, if I allow any of the groups access to Register the link then gets removed. I'm not sure if this is related to what Vincent said about group permissions or not. Did you forbid the right to the guest also? > > The guest appears when you select Users instead of Groups, and is the > first entry, above the filter, called "Unregistered Users". > > To remove the registration link completely, you can override the > global.vm template in a custom skin. Admins will still be able to use > the Administration->Users interface to add users. > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Nick Watts blog: thewonggei.wordpress.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki mssql
hel-o wrote: > Hi, > > XWiki and mssql doesn't seem to work. I found an hibernate file for mssql in > 1.7 (seems to be there by default since 1.5.? (not 1.5 but 1.5.2 didn't look > at 1.5.1)). But i can't get the system running (MSSQL Server 2000, jtds > Driver 1.2.1). > The change is that a new field for XWikiDocument was added, "hidden". You should search for the mapping for that field in the default (hsql) mapping file, and copy it in your mssql file. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] xwiki mssql
Hi, XWiki and mssql doesn't seem to work. I found an hibernate file for mssql in 1.7 (seems to be there by default since 1.5.? (not 1.5 but 1.5.2 didn't look at 1.5.1)). But i can't get the system running (MSSQL Server 2000, jtds Driver 1.2.1). Log for 1.7: "11:50:45,687 [http://localhost/xwiki17/bin/view/Main/] [http-80-1] ERROR impl.SessionFactoryImpl - Error in named query: getAllDocuments org.hibernate.QueryException: could not resolve property: hidden of: com.xpn.xwiki.doc.XWikiDocument [ select doc.fullName from com.xpn.xwiki.doc.XWikiDocument as doc where (doc.hidden <> 1 or doc.hidden is null) ] at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:44) at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:38) at org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1362) at org.hibernate.hql.ast.tree.FromElementType.getPropertyType(FromElementType.java:279) at org.hibernate.hql.ast.tree.FromElement.getPropertyType(FromElement.java:386) at org.hibernate.hql.ast.tree.DotNode.getDataType(DotNode.java:567) at org.hibernate.hql.ast.tree.DotNode.prepareLhs(DotNode.java:241) at org.hibernate.hql.ast.tree.DotNode.resolve(DotNode.java:188) at org.hibernate.hql.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:94) at org.hibernate.hql.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:90) at org.hibernate.hql.ast.HqlSqlWalker.resolve(HqlSqlWalker.java:728) at org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1216) at org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(HqlSqlBaseWalker.java:4041) at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3549) at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1762) at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1712) at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:776) at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:577) at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281) at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229) at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77) at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56) at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72) at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:402) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:352) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300) at com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:165) at com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:562) at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1038) at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1082) at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.getDBVersion(XWikiHibernateMigrationManager.java:63) at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.(AbstractXWikiMigrationManager.java:68) at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.(XWikiHibernateMigrationManager.java:50) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.xpn.xwiki.XWiki.createClassFromConfig(XWiki.java:994) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:726) at com.xpn.xwiki.XWiki.(XWiki.java:668) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:316) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:387) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(Act
Re: [xwiki-users] xwiki groups + ldap
Thomas Mortagne wrote: > On Thu, Dec 18, 2008 at 9:04 AM, Bartłomiej Radziszewski > wrote: > >> Thomas Mortagne wrote: >> >>> 2008/12/17 Bartłomiej Radziszewski : >>> >>> hello, I have a question about ldap posixGroups and xwiki groups. it is posible synchronize ldap groups to xwiki dynamically? for example when i will add group to ldap then it will created in xwiki? I know about opition: #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl] #-# mapps XWiki groups to LDAP groups, separator is "|" # xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=AdminRole,ou=groups,o=MegaNova,c=US|\ # XWiki.Organisation=cn=testers,ou=groups,o=MegaNova,c=US ..but after created ldap group i need to add new group to xwiki.cfg file and restart xwiki app.. this is not useful solution. :( Anybody know other solution? >>> Yes you can set the mapping configuration (and any other LDAP >>> configuration, even indicate if LDAP is enabled or not) at >>> XWiki.XWikiPreferences level in the ldap_group_mapping field. See >>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HGenericLDAPconfiguration >>> for more details. >>> >>> >> So i have a question. After created new posixGroup in ldap i need to add >> this group to ldap_group_mapping and restart xwiki? >> > > No, all you put in XWiki.XWikiPreference is dynamically taken into > account so you don't need to restart. > > Ok i have found this object in Xwiki.XwikiPreferences, i can right now delete all ldap configuration from xwiki.cfg and move it to this object right? thx for help and greets! -- Bartłomiej Radziszewski mobile: +48 509 561 540 e-mail: b...@debian.linux.pl JID: b...@debian.linux.pl ICQ: #305569725 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users >>> >>> >>> >> -- >> Bartłomiej Radziszewski >> mobile: +48 509 561 540 >> e-mail: b...@debian.linux.pl >> JID: b...@debian.linux.pl >> ICQ: #305569725 >> >> >> ___ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> >> > > > > -- Bartłomiej Radziszewski mobile: +48 509 561 540 e-mail: b...@debian.linux.pl JID: b...@debian.linux.pl ICQ: #305569725 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki groups + ldap
On Thu, Dec 18, 2008 at 9:04 AM, Bartłomiej Radziszewski wrote: > Thomas Mortagne wrote: >> 2008/12/17 Bartłomiej Radziszewski : >> >>> hello, >>> >>> I have a question about ldap posixGroups and xwiki groups. >>> >>> it is posible synchronize ldap groups to xwiki dynamically? for example >>> when i will add group to ldap then it will created in xwiki? >>> >>> I know about opition: >>> >>> #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl] >>> #-# mapps XWiki groups to LDAP groups, separator is "|" >>> # >>> xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=AdminRole,ou=groups,o=MegaNova,c=US|\ >>> # >>> XWiki.Organisation=cn=testers,ou=groups,o=MegaNova,c=US >>> >>> >>> ..but after created ldap group i need to add new group to xwiki.cfg file >>> and restart xwiki app.. this is not useful solution. :( Anybody know >>> other solution? >>> >> >> Yes you can set the mapping configuration (and any other LDAP >> configuration, even indicate if LDAP is enabled or not) at >> XWiki.XWikiPreferences level in the ldap_group_mapping field. See >> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HGenericLDAPconfiguration >> for more details. >> > So i have a question. After created new posixGroup in ldap i need to add > this group to ldap_group_mapping and restart xwiki? No, all you put in XWiki.XWikiPreference is dynamically taken into account so you don't need to restart. >> >>> thx for help and greets! >>> >>> -- >>> Bartłomiej Radziszewski >>> mobile: +48 509 561 540 >>> e-mail: b...@debian.linux.pl >>> JID: b...@debian.linux.pl >>> ICQ: #305569725 >>> >>> >>> ___ >>> users mailing list >>> users@xwiki.org >>> http://lists.xwiki.org/mailman/listinfo/users >>> >>> >> >> >> >> > > > -- > Bartłomiej Radziszewski > mobile: +48 509 561 540 > e-mail: b...@debian.linux.pl > JID: b...@debian.linux.pl > ICQ: #305569725 > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Documentation Class Propertys
Hi, exactly what i wanted to say (seems im a little to late .-). It would be great to add it to the documentation. I fact i would agree to create a Documentation page for each property typ in http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel but i'm afraid i can't give much information on most of the fields of the different property types. Are there any documentation guidelines? hel. Guillaume Lerouge wrote: > > Hi Hoani, > > thanks for this :-) > > Please consider adding it to the documentation on XWiki.org (if it's not > done already) since it would be very helpful for others as well. > > Guillaume > > -- View this message in context: http://n2.nabble.com/Documentation-Class-Propertys-tp1655023p1672064.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Importing the default xar
This seems to crop up a lot i.e. overwriting existing admin pages, etc. Couldn't there be a flag associated with admin type pages to prevent them getting wrongly overwritten when copying content from an older version of xwiki to a newer version of xwiki, but enabling existing user acounts and page content to be copied over? Regards, Richard -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org]on Behalf Of Chad Gorshing Sent: 17 December 2008 21:45 To: users@xwiki.org Subject: [xwiki-users] Importing the default xar Greetings, I have an installation of xwiki enterprise which was on 1.2 and I have just completed the upgrade to 1.7. The steps I performed for the upgrade are as follows (I'm going to leave out steps which I feel are not pertinent to my question): 1 created MySQL schema and applied user rights 2 stood up the new wiki and pointed it to the MySQL DB 3 imported xwiki-enterprise-wiki-1.7.xar in the new wiki 4 exported all content from the old wiki (1.2) to a xar 5 I had to break up the xar into a few chucks so the import would work 6 imported _all_ content along with history into the new wiki I was then able to log in and everything seemed fine. My question is did I overwrite anything the xwiki-enterprise-wiki-1.7.xar provides? I am wondering if by doing step 6 that I overrode things that I should not have, I imported everything even the Xwiki items. If I did overwrite some items, would it be best to re-import xwiki-enterprise-wiki-1.7.xar and be more selective on what to import? Regards, Chad _ Suspicious message? There’s an alert for that. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_ 122008 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail is confidential. It may also be legally privileged. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. We may monitor all e-mail communications through our networks. If you have received this e-mail in error, please inform us immediately on sender’s telephone number above and delete it and all copies from your system. We accept no responsibility for changes to any e-mail which occur after it has been sent. Attachments to this e-mail may contain software viruses which could damage your system. We therefore recommend you virus-check all attachments before opening. Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No. 868273 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki groups + ldap
Thomas Mortagne wrote: > 2008/12/17 Bartłomiej Radziszewski : > >> hello, >> >> I have a question about ldap posixGroups and xwiki groups. >> >> it is posible synchronize ldap groups to xwiki dynamically? for example >> when i will add group to ldap then it will created in xwiki? >> >> I know about opition: >> >> #-# [Since 1.3M2, XWikiLDAPAuthServiceImpl] >> #-# mapps XWiki groups to LDAP groups, separator is "|" >> # >> xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=AdminRole,ou=groups,o=MegaNova,c=US|\ >> # >> XWiki.Organisation=cn=testers,ou=groups,o=MegaNova,c=US >> >> >> ..but after created ldap group i need to add new group to xwiki.cfg file >> and restart xwiki app.. this is not useful solution. :( Anybody know >> other solution? >> > > Yes you can set the mapping configuration (and any other LDAP > configuration, even indicate if LDAP is enabled or not) at > XWiki.XWikiPreferences level in the ldap_group_mapping field. See > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HGenericLDAPconfiguration > for more details. > So i have a question. After created new posixGroup in ldap i need to add this group to ldap_group_mapping and restart xwiki? > >> thx for help and greets! >> >> -- >> Bartłomiej Radziszewski >> mobile: +48 509 561 540 >> e-mail: b...@debian.linux.pl >> JID: b...@debian.linux.pl >> ICQ: #305569725 >> >> >> ___ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> >> > > > > -- Bartłomiej Radziszewski mobile: +48 509 561 540 e-mail: b...@debian.linux.pl JID: b...@debian.linux.pl ICQ: #305569725 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users