Hello,
My previous issue with LDAP authentication has been resolved, largely thanks to tmontagne's assistance. Info on that can be found at the Use Cases for LDAP page.
The current problem is that when an LDAP group is mapped to an XWiki group, the privileges don't seem to be set properly for users of that group. I am able to log in as a test user, and no matter the privileges I set, the user is unable to view any pages! The user is show as being in the correct group in the XWiki Groups UI, and the group has the proper privileges in the Access Rights UI. I'm not sure whether this is a configuration issue on my part, or an issue with XWiki itself.
Note that if I map an LDAP group to a pre-existing XWiki group, such as XWiki.XWikiAdminGroup, then the user is able to log in, view pages, and even administrate the XWiki properly. The issue seems to be with groups that I have created.
Does anybody have any advice?
I'm running XWiki 1.9 currently.
Regards,
Patrick Dignan
Hi,
I'm using XEM 1.6 from the jetty pack and Oracle 10g and i have the same problem. The template feature is not working. You should also have sometimes exceptions in the console with data types problems, founding an empty data set but expecting a blob one. What i did is to create a virtuel wiki only used as a template and exporting it and then import in any new wiki.
-----Message d'origine-----
De : users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] De la part de Henk Schouten
Envoyé : lundi 15 juin 2009 14:39
À : users(a)xwiki.org
Objet : [xwiki-users] Error creating wiki using template
Hello,
I have recently started using the XWiki Manager to manage 2 separate
xwiki instances. While playing around and creating a new wiki I noticed
that I cannot create a new wiki using a template wiki. If I create a new
wiki using exactly the same settings but without a template it works
just fine. I have tried this with XEM 1.6.4 and XEM 1.7. Both have the
same problem. I am using tomcat 5.5.27 and an Oracle 10G database. The
problem apparently has to do with a sequence in the database.
Anyone got an idea what may be causing this?
Thanks,
Henk
Error number 4001 in 4: Error while parsing velocity page
WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate content
with id
<http://localhost:8000/xwiki/bin/view/WikiManager/CreateNewWiki?wikiname=hhs…>Create
New Wiki <http://localhost:8000/xwiki/bin/view/WikiManager/CreateNewWiki>
Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki
Wrapped Exception: Failed to evaluate content with id Create New Wiki <http://localhost:8000/xwiki/bin/view/WikiManager/CreateNewWiki>
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki
Wrapped Exception: Failed to evaluate content with id Create New Wiki <http://localhost:8000/xwiki/bin/view/WikiManager/CreateNewWiki>
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:533)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:450)
at sun.reflect.GeneratedMethodAccessor294.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1611)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655)
at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1611)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
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(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
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:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
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:689)
at java.lang.Thread.run(Thread.java:619)
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'createNewWiki' in class
com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi threw exception
com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while
hibernate execute Wrapped Exception: could not get next sequence value
at WikiManager.CreateNewWikiline 157, column 32?
<http://localhost:8000/xwiki/bin/edit/WikiManager/line+157%2C+column+32?pare…>
at
org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:533)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:450) at
sun.reflect.GeneratedMethodAccessor294.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1611) at
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655) at
sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1611) at
com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124) at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) 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(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
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:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
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:689)
at java.lang.Thread.run(Thread.java:619) Caused by:
com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while
hibernate execute Wrapped Exception: could not get next sequence value
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1038)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.executeWrite(XWikiHibernateBaseStore.java:1084)
at
com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin(XWikiHibernateRecycleBinStore.java:66)
at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3946) at
com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3938) at
com.xpn.xwiki.XWiki.copyWikiWeb(XWiki.java:4287) at
com.xpn.xwiki.plugin.wikimanager.WikiManager.copyWiki(WikiManager.java:321)
at
com.xpn.xwiki.plugin.wikimanager.WikiManager.createNewWiki(WikiManager.java:514)
at
com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi.createNewWiki(WikiManagerPluginApi.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
... 91 more
==
Henk F. Schouten, ICT-architect, Dienst ICT
room: SL 2.32, phone (31) 70 4457611, email: H.F.Schouten(a)hhs.nl
De Haagse Hogeschool, Johanna Westerdijkplein 75, 2521 EN the Hague (NL)
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--------------------------------------------------------------------------------
This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies.
While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection.
KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1
Hi,
I have published a large XAR import script which instead of working with
an uploaded file (which causes an issue because large XAR files - over
20Megabytes - cannot be attached in the Wiki at all or without a
significant increase in JVM memory settings when hte file is not VERY
large) works with a file on the server file system. Also it works to
import page by page in order to scale to really very large XARs (the
standard import API is also limited since it needs to be able to load
all documents in memory which is of course impossible if the XAR is
bigger than the memory settings of the JVM).
http://code.xwiki.org/xwiki/bin/view/Snippets/LargeXARImportScriptSnippet
We have tested it for some wiki migrations from ISO to UTF which have to
be done using XAR import/export and it worked fine, but it has not been
fully reviewed and can still have some issues. Let me know here if you
experience issues.
Ludovic
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
_______________________________________________
curriki-devs mailing list
curriki-devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/curriki-devs
Hi Stepane,
Although the concept of placing the Toucan.css in the Skin of the Wiki
instead of the filesystem makes sense
I'm not sure if this works for us...
Our skin is DefaultSkin
In this I have the field Style.css. I could put the file style.css
into this field (copy the code)
In this stylesheet there is:
@import "microformats.css";
@import "fullscreenEdit.css";
@import "css/table/table.css";
@import "usersandgroups.css";
@import "suggest/ajaxSuggest.css";
@import "rss.css";
@import "toucan.css";
Now we have updated the toucan.css
If I put toucan.css as a attachment to DefaultSkin i'm not sure if it
works
Because we also have a script in the skin stylesheets.vm
that will replace style.css under certain conditions;
#if($cntryCd)
#set($defaultstyle = $cntryCd+$styleExtn)
#set($completeURL = $request.getRequestURL())
##* $completeURL
#if($completeURL.indexOf("/view") > 0)
##* Am I here
#set($viewIndex = $completeURL.indexOf("/view"))
#set($firstPartURL = $completeURL.substring(0, $viewIndex))
#set($newURL = $firstPartURL + '/skin/skins/cdlsskin/'+$defaultstyle)
#set($urlCont = $xwiki.getURLContent($newURL, 1500))
#if($urlCont.contains("@import"))
#else
#set ( $defaultstyle = "style.css" )
#end
#else
#set ( $defaultstyle = "style.css" )
#end
#end
The stylesheets that would be called by this script are all on the
filesystem;
They all have a call to toucan.css (see below for one example)
@import "microformats.css";
@import "fullscreenEdit.css";
@import "css/table/table.css";
@import "usersandgroups.css";
@import "suggest/ajaxSuggest.css";
@import "rss.css";
@import "toucan.css";
@import "css/colors/blue.css";
If you think it can still work putting the toucan in the wikipage; as
a attachment or into a new attributue toucan.css which I should add to
the standard class xwiki.xwikiskins?
Hope you can help. (i will also post this conversation on users)
Gerritjan
On 4 jun 2009, at 17:40, stephane barbey wrote:
> Hi Gerritjan,
>
> There's a way to set your new css file without access on the server.
>
> 1/ Go on your skin page, edit that page in object mode, open the
> Default XWiki Skin property and chose in which field you want to
> overwrite your new css.
>
> 2/ Back up the current toucan.css : I don't personnally have access
> to the server. Nevertheless, there's a way to read the content of
> the toucan.css files typing that url : http://cdlsworld2.xwiki.com/xwiki/skins/toucan/toucan.css
> . Then you can copy/paste the content of that file.
>
> Best regards
>
> Gerritjan Koekkoek a écrit :
>>
>> Hi Stephane,
>>
>> I've received an update of toucan.css,
>> Could i request you one more time to place this file in our webapps/
>> xwiki/skins/cdlsskin.
>> Could you make a backup of the current toucan.css before doing this?
>>
>> I have a question about placing this file into the wiki?
>> As I understand in the tutorial i can create a new skin in the wiki.
>> Could I add a new property to the Skin, by editing the
>> XWiki.XWikiSkins class?
>> name toucan.css, type TextArea?
>>
>> Or will this only work for vm template's
>>
>> Gerritjan Koekkoek
We've configured our XWiki instance to use a custom authentication plugin to
authenticate via a secure logon cookie. When the user signs in, information
pertaining to the user is fetched from Active Directory; note that this is
done as part of the plugin, and does not access A/D via XWiki.
However, the side effect of this change is that a user has to access XWiki
once to get created in the local user space so they can then be added to the
various groups that have been created in the wiki. This is inconvenient at
best, and I would like to fix this.
I found an interesting script in this post:
http://n2.nabble.com/LDAP---importing-users-td506206.html#a506207
that provides a script to query LDAP via XWiki, and populate the local user
store with all A/D users.
My question is: can I configure XWiki to use both the custom authentication
plugin, *and* configure LDAP access so I can use the above script to
populate the database?
If the above doesn't work, I can create a perl script that will generate a
script that I can put into a Wiki page, but that's not as nice as having a
canned script available the wiki that I can run at the click of a mouse.
Thanks!
--
View this message in context: http://n2.nabble.com/Custom-authentication%2C-LDAP-configuration-tp3031494p…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi all,
I have some groovy page generating an image (BufferedImage), and I would
like it to be returned and displayed in browser.
I first tried to save this image as a png file with ImageIO, and it works
pretty well and image can be displayed.
If then I try to return it in http response, it always return "The image
"http://localhost/...." cannot be displayed because it contains errors".
{{velocity}}
{{groovy}}
[...]
$context.response.setContentType("image/png");
OutputStream os = $context.response.getOutputStream();
ImageIO.write(image, "jpg", os);
os.close();
[...]
{{/groovy}}
{{/velocity}}
Strangely, if I remove this previous code from my page to put back the png
file saving, png file is saved but error message still shows up ... (cache
?)
I'm asking this question here because maybe it's not the better way to
achieve this with XWiki ...
Thx for any help
--
View this message in context: http://n2.nabble.com/Return-image-in-http-response-tp3075088p3075088.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, I just installed 1.9 enterprise and i cannot use the editor to
edit/create pages. Here's the error I get in the browser:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.String.substring(String.java:1938)
java.lang.String.substring(String.java:1905)
com.xpn.xwiki.web.ActionFilter.getTargetURL(ActionFilter.java:147)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:99)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
Interestingly, the above stacktrace does not appear in my catalina.out (I'm
using tomcat 6 and linux). The only thing in my log are warnings:
Request URI [/xwiki%2Denterprise%2Dweb%2D1.9/bin/view/Main/] should have
matched context path
[/xwiki-enterprise-web-1.9] and servlet path [/bin]
2009-06-13 17:45:34,601
[http://xx.xx.xx.xx/xwiki%2Denterprise%2Dweb%2D1.9/bin/edit/Main/test?templa…]
[http-80-3]
Any ideas? Thx
--
View this message in context: http://n2.nabble.com/editor-permission-rights--tp3074204p3074204.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I've set up the xwiki user on mysql, with xwiki as a password and I've
granted all rights on the xwiki database. I've tested the access
rights by logging into mysql as xwiki, creating a test table in the
xwiki database and dropping it.
My hibernate.cfg.xml file contains the correct credentials for xwiki:
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
And yet when I try to open http://localhost:8080/xwiki (or using
127.0.0.1 instead of localhost), it asks for username and password to
access the XWiki area, and it doesn't like username = xwiki and
password = xwiki.
Tomcat says the http authentication failed.
The Tomcat directory structure is owned by the user I use to launch it
(I'm on a Mac OS 10.4).
Any clue as to what the problem might be?
Thanks,
Vittorio