I am upgrading XWIKI from 1.1 to 1.8 in my sites.
And I use Groovy for the user rights module.
When I update the user rights, errors occurs:
Error number 4001 in 4: Error while parsing velocity page
MyNetcipia.PlaceRightsConfirmation
Wrapped Exception: Failed to evaluate content with id Place Rights
Confirmation
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
velocity page MyNetcipia.PlaceRightsConfirmation
Wrapped Exception: Failed to evaluate content with id Place Rights
Confirmation
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:525)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:450)
at sun.reflect.GeneratedMethodAccessor261.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.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
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:1662)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:696)
at sun.reflect.GeneratedMethodAccessor96.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.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
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:1662)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:242)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:122)
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:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'updateRights' in class PlaceManager threw exception
java.lang.NullPointerException: Cannot invoke method getDocument() on null
object @ MyNetcipia.PlaceRightsConfirmation11,15
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:396)
at
org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:64)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:86)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
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:525)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:450)
at sun.reflect.GeneratedMethodAccessor261.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.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at org.apache.velocity.runtime.parser.node.SimpleNode.r
ender(SimpleNode.java:318) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at org.xwiki.vel
ocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143) at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWik
iVelocityRenderer.java:108) at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1662) at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.jav
a:1612) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:696) at
sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Met
hod.java:597) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apach
e.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at
org.apache.velocity.runtime.parser.node.ASTReference.exe
cute(ASTReference.java:203) at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.
velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at
org.apache.velocity.runtime.directive.VelocimacroProxy.
render(VelocimacroProxy.java:194) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org
.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.re
nder(ASTIfStatement.java:88) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at
org.apache.velocity
.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(AST
IfStatement.java:107) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.xwiki.velocity.De
faultVelocityEngine.evaluate(DefaultVelocityEngine.java:178) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocit
yEngine.java:143) at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.
parseTemplate(XWiki.java:1662) at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at
com.xpn.xwiki.web.Utils.parseTemplate(Ut
ils.java:124) at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:242) at
com.xpn.xwiki.web.XWikiAction.execute(XWikiActio
n.java:122) at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.ac
tion.RequestProcessor.process(RequestProcessor.java:236) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:11
96) at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at
javax.servlet.http.HttpServlet.service(HttpServle
t.java:690) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
org.apache.catalina.core.ApplicationFilterChain.i
(ApplicationFilterChain.java:290) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
a
t
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at org.apache.catalina.core.Applicati
onFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
icationFilterChain.java:206) at
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at
org.apache.catalina.core.Appli
cationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
.java:206) at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at org.apache.catalina.core.Applicatio
nFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:206) at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.Appli
cationFilterChain.doFilter(ApplicationFilterChain.java:206) at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacte
rEncodingFilter.java:112) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.Standa
rdWrapperValve.invoke(StandardWrapperValve.java:233) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.Error
ReportValve.invoke(ErrorReportValve.java:102) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10
9) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.jk.server.JkCoyoteHandler.invoke
(JkCoyoteHandler.java:190) at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at
org.apache.jk.common.Channe
lSocket.invoke(ChannelSocket.java:767) at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.ap
ache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$Control
Runnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException: Cannot invoke method
getDocument() on null object
at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
at
org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:748)
at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:725)
at
org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:17)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:43)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:129)
at PlaceManager.updateRights(script1247022056918.groovy:622)
at PlaceManager$updateRights.callCurrent(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:47)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
at PlaceManager.updateRights(script1247022056918.groovy:712)
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.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
… 95 more
I see one sentence:
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'updateRights' in class PlaceManager threw exception
java.lang.NullPointerException: Cannot invoke method getDocument() on null
object @ MyNetcipia.PlaceRightsConfirmation11,15
I find there is null in Groovy:(Italic and bold are null value)
public boolean updateRights(String space) {
Document doc = new
Document(wiki.xWiki.</b>getDocument(getRightsPage(space),context.context),context.context)
if ((doc!=null)&&(!doc.isNew())) {
for (obj in doc.getObjects("XWiki.XWikiGlobalRights")) {
doc.removeObject(obj)
}
doc.saveWithProgrammingRights()
}
boolean update = false;
if (doc!=null) {
update |= updateRights(space, "view",
doc.newObject("XWiki.XWikiGlobalRights"))
update |= updateRights(space, "edit",
doc.newObject("XWiki.XWikiGlobalRights"))
update |= updateRights(space, "comment",
doc.newObject("XWiki.XWikiGlobalRights"))
if (space=="") {
// Make sur the admin rights is set
update |= addAdminRights(doc.newObject("XWiki.XWikiGlobalRights"))
}
} else
return false;
if (update)
doc.saveWithProgrammingRights()
return true;
}
But I cannot find which causes the null value and how to avoid this.
--
View this message in context: http://n2.nabble.com/Groovy-Errors-tp3254453p3254453.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
I want to add three buttons to the toolbar in WYSIWYG V2.
Now I have XWIKI 1.8 and WYSIWYG V2 with Syntax 2.0.
The problem is:
When I use WYSIWYG V1, the message #error(“some messages”)can be parsed as
error message.
While with Syntax 2.0, the new syntax has been changed to:{{velocity}}{{html
wiki=true}}#error("some messages"){{/html}}{{/velocity}}, which is not
allowed to input WYSIWYG messages for parsing.
Is there any method to make the commands parsed by just inputting them to
the editor?
There is Macro box in the new editor, but I didn’t find the macros of error,
info and warning, how can I add them?
--
View this message in context: http://n2.nabble.com/Button-Plugin-in-WYSIWYG-editor-tp3229334p3229334.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
>
> Small typo:
> The check is made on whether the page that holds the groovy script was
saved
> *BY* *AN USER* *WHO HAS* programming rights.
>
> Guillaume
>
The page that contains the Groovy script was create by me, (admin), and it
executes without a problem. It returns the expected results. It is not the
issue.
> On Thu, Jun 11, 2009 at 8:35 PM, Guillaume Lerouge
<guillaume(a)xwiki.com>wrote:
>
> Hi Dean,
>
> On Thu, Jun 11, 2009 at 7:49 PM, Dean G Weber
<Dean.G.Weber(a)raytheon.com>wrote:
>
>> I've been struggling for a while with the dilemma of getting a user
into a
>> group. Let me supply some background on what we've been trying to do
with
>> Xwiki.
>>
>> We're trying to use Xwiki for an internal collaborative site.
Management
>> has decided that users of the wiki must complete proper training.
Without
>> the training, the user cannot add to the wiki pages.
>>
>> For authentication, we've connected the wiki to our LDAP server via the
>> xwik.cfg file. Authenticated users are automatically placed into the
>> XWikiAllGroup by default. In order to accommodate management
>> requirements, I created a new user group... let's call it
>> "TrainedUsersGroup".
>>
>> Once authenticated, users are placed into the Webhome page of the wiki.
>> I've placed Velocity script on the Webhome page to check if the user is
in
>> the TrainedUsersGroup. If the user is not in the group, the user is
>> redirected to the NoAccess.WebHome page.
>>
>> On the NoAccess.Webhome page another check is made to determine if the
>> user is in the TrainedUsersGroup. If the user is not in the group, a
call
>> is made to a Groovy class (on another page in the Groovy namespace).
The
>> groovy code executes a system call to grep on the Linux system running
the
>> Xwiki against a CSV file pulled from an intranet web report. The passed
>> user's login (which is the same as the LDAP user id) is checked against
>> this file. If the returned grep output shows that the training has been
>> completed, the NoAccess.WebHome page will attempt to add the user to
the
>> TrainedUsersGroup. If the user is added to the TrainedUsersGroup as
>> determined after another check, the user is redirected back to the
>> originating WebHome page.
>>
>> This mechanism works great if the user accessing the pages is an admin.
>> However, if the user is a regular user everything except the addition
to
>> the group works. Instead, the code to place the user in the group
displays
>> on the page. It does not run and put the user into the
TrainedUsersGroup.
>> This is no good for our needs in which we must restrict Xwiki access
for
>> non-trained users.
>>
>
> "Instead, the code to place the user in the group displays
> on the page."
>
> *-> question:* does the wiki receive the grep output in all cases? Can
you
> get the output printed on the screen even if the context user isn't an
> admin? If not, the problem arises earlier and you'd need to identify
exactly
> where it comes from.
>
The grep output is received as expected. The Groovy code returns a result
that is correct. The Groovy script is working fine and is not the problem.
The variable $completed_training is set to the strings "true" or "false"
output from the Groovy code in the proper manner. I've displayed these in
debugging code to the screen.
> *-> observation:* this issue is typical of lacking programming rights.
> Programming rights are different from other rights in that the check is
not
> made on whether the current user has programming rights. The check is
made
> on whether the page that holds the groovy script was saved with someone
> holding programming rights. This is why the check you're doing against
the
> visiting user doesn't work.
>
> Programming rights work this way in order to prevent a non-authorized
> person to create and execute a privileged script. Therefore what matters
is
> the state of the page holding your script at the point when it is being
> called. What is somehow happening is that the system thinks the page
holding
> the script has been saved by the current user at some point and thus
> displays its literal content instead of running the code.
>
I don't understand this. I am admin and I have edited the page. The users
have been restricted and not granted edit rights to the page. It is not
possible for system to think the page has been saved by the current user.
A search on the page shows the last modified was me.
> Thus you may want to check whether your application makes XWiki think
that
> the context user is the one who saved the groovy page. You need to make
sure
> that XWiki doesn't think that the NoAccess.WebHome page holding your
second
> script has been saved by the current user. Check for occurences of
> $doc.save() (velocity) or doc.save() (groovy) in your code and make sure
> that XWiki thinks the user performing the action is an user with
programming
> rights.
>
The Groovy page is not the problem. The NoAccess.WebHome page has been
shown to be saved by the admin, me. I have even set programming rights for
all users to eliminate the potential or problems.
> I'm not a developer so I can't do much more for you here, hope it makes
> things a bit clearer though. Good luck!
>
> (My original goal was to connect to our Oracle database and based upon
the
>> user id determine directly if the user has completed the training. I've
>> had luck with a simple Groovy script running on my desktop and on the
>> Linux server. However, from within the Xwiki Groovy console or on a
page,
>> I get no output. Therefore, I have abandoned the Oracle query check via
>> Groovy.)
>>
>> I've been researching the Xwiki user list for weeks. I've poured over
>> xwiki documentation. I've peeked at wiki page source. I've done all
this
>> in an attempt to figure out how to get a user to place himself into a
>> group. I've found a lot of confusing and contradicting information.
>> Programming rights are mentioned. The only place I found the ability to
>> set this right was in the xwiki administration. I can't determine if
the
>> problem is even related to programming rights. I've put a debug
statement
>> on the NoAccess.WebHome page to print whether the user visiting the
page
>> has programming rights. In all cases it display that they do. Yet, only
>> admins can add themselves to the TrainedUsersGroup. This doesn't work
for
>> me. I need to automatically add the visiting user to the
TrainedUsersGroup
>> once the training has been validated.
>
>
> Btw, I'm really sorry about you experiencing this frustrating
experience.
> Hope this email will help a bit.
>
> *-> shameless plug:* XWiki SAS (www.xwiki.com) offers development
support
> services to help you when faced with such hurdles. I'm aware you might
not
> be in a position where you can consider this offer, but you'd have the
> guarantee of getting an appropriate answer in a short timeframe (vs
> community support, although it's usually pretty fast on these lists)
plus
> it's a great way to help the development of the XWiki project if you
like
> the product + well, it would have saved you days and effort thus making
save
> money in the end ;-)
>
Unfortunately, I am just a developer and not able to direct the funding.
Since this is for an internal project for a govt. contractor, the time it
would take to resolve the paperwork to put in a request for the funding
for external support would be longer than me to just write the entire wiki
myself.
>
>> What is the problem? Why won't the user go into the group? Is there a
>> better way of doing this? Any help, code snippets or suggestions would
be
>> appreciated.
>
> Thanks.
>> Dean Weber
>
>
> How exactly are you adding the user to that group? If you create an
> XWikiGroups object, add it to the group document, then save it, you
> should use saveWithProgrammingRights() instead of save().
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
THis is from the NoAccess.WebHome page.
Here is the velocity code segment I am using to try and add a user to the
TrainedUsersGroup group.
01 #if($completed_training == "true" or $xwiki.hasAdminRights())
02 ##
03 ## Add the current user to the TrainedUsersGroup group
04 ##
05 #set($MyGroupDoc = $xwiki.getDocument("XWiki.TrainedUsersGroup"))
06 #if(!$MyGroupDoc.getObject("XWiki.XWikiGroups", "member", $fullName))
07 #set($GroupObj = $MyGroupDoc.newObject("XWiki.XWikiGroups"))
08 #set($AddingUser = 1)
09 $GroupObj.set("member", $fullName)
10 $MyGroupDoc.save()
11 #end
12 #end
I have tested the Groovy code that is responsible for setting the
$completed_training variable depending on the user's status. That portion
is correct. The Groovy code did its part and is not the problem. All lines
execute correctly except for lines # 09 and 10. In the case where the
current user is not an admin, those lines display on the page instead of
being executed. In the case where the user is an admin, No code is
display. It is executed. The admin is added to the TrainedUsersGroup
without a problem. I've even changed line #10 to use
saveWithProgrammingRights but it behaves the same and just displays on the
screen in the case of a regular user.
Why can't the user execute the code that adds himself to a group when the
page was written and saved by the admin?
There must be some way for me to automatically place users into a group
based upon their training status.
Thanks
Dean Weber
Sr Software Engineer II
Raytheon Technical Services Company LLC
Hello everyone!
I use XWiki Dashboard (ver. 1.8) to view the documents at the spaces (*.
WebHome). And it works well, but unfortunately, list of documents is not
visible to every visitor. What do I need to change in the code?
Thanks in advance
Sime S.
Hello All!
I want to deploy the xwiki-enterprise-web-1.9.1.war file into a
Glassfish v2.1 server under Solaris 10 Update 7. The deployment does not
work. Here is the error message:
Deploying application in domain failed; Error loading deployment
descriptors for module [xwiki] Line 170 Column 20 -- Deployment
descriptor file WEB-INF/web.xml in archive [xwiki].
cvc-complex-type.2.4.d: Invalid content was found starting with element
'description'. No child element is expected at this point.
Does someone know how I can fix this?
Thank you very much.
Greetings,
Willi
Dear All
I have spent quite a few hours playing with the captcha trying to get it to
work. There were some useful posts on the new group, but none of them was a
complete solution.
The below has worked for me... hopefully it will prove useful to someone
else.
This code is taken from a fairly old xwiki that my client didn't want to
upgrade. It is based around registerinline.vm, which had previously been
edited to add a lot more fields. I am not an expert on OOP but got it to
work with a selection of conditional statements.
First declare the plugin - you have to make sure its enabled - but
apparently it is by default. "if ($reg)..." will evaluate to true/false and
if the value is negative its an error. You test the state of the captcha
using $captchaPlugin.verifyCaptcha("edit") where edit is the name - set
much later on.
One of the problems was that the form would come back with the correct
messages eg it would tell you if the captcha filled in wrong, but the new
user would still be regsitered (assuming all the other fields filled in
correctly). By playing I found that <input type="hidden" name="register"
value="1"/> was the key - if value="1" then registration occurs, if ="0"
then it doesn't. So put this in a conditional - which seems to only depend
on the captcha being ture/flase - which was odd, because I would ahve
thought you'd want to test with $reg as well. However, I couldn't get it to
work with $reg at this stage - reg=$reg usually prints out the nunber - but
at this point it just printed out ref=$reg...
Don't forget to put "verifyCaptcha" into the action of the form tag.
call the displayCaptcha pass the class name as "register_captcha" which
should map to the css classname to render the image with
$captchaPlugin.displayCaptcha("edit","register_captcha")
pass the name as edit
go to
http://<host>:<port>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&
find XWiki.XWikiPreferences[0]: XWiki.DefaultSkin select the values for
Anonymous: and Registered: as image or text - text gives you a simple sum to
fill in. There were 3 sets of each on mine, I set them all to imgae or all
to text
Anyway, back to work...
## declare the plugin
#set($captchaPlugin = $xwiki.jcaptcha)
#if(!$reg||$reg<0 )
<p>Welcome .....</p>
#end
#*
if reg is true (ie form filled), but less than zero OR the captcha is
wrong
*#
#if( ($reg && $reg<=0) || !$captchaPlugin.verifyCaptcha("edit") )
#if($reg==-2)
#error("$msg.get('core.register.passwordMismatch')")
#elseif($reg==-3)
#error("$msg.get('core.register.userAlreadyExists')")
#elseif($reg==-4)
#error("$msg.get('core.register.invalidUsername')")
#elseif($reg==-8)
#error("$msg.get('core.register.userAlreadyExists')")
#else
##error("$msg.get('core.register.registerFailed', [$reg])")
#error("The captcha field was filled in wrongly.")
#end
#elseif($reg && $captchaPlugin.verifyCaptcha("edit"))
#set($xwname = "XWiki.${request.xwikiname}")
#info("$msg.get('core.register.successful',
[$xwiki.getUserName($xwname), $request.xwikiname])")
#end
##form appears if reg is not true or its -ve or capatcha is wrong
#if(!$reg||$reg<0 || !$captchaPlugin.verifyCaptcha("edit") )
<form id="register" action="verifyCaptcha" method="post">
<div>
<input type="hidden" name="template" value="XWiki.XWikiUserTemplate" />
##this is a key statement
#if ($captchaPlugin.verifyCaptcha("edit"))
##set it to 1
<input type="hidden" name="register" value="1"/>
#else
##set it to 0
<input type="hidden" name="register" value="0"/>
#end
#set($class = $xwiki.getClass("XWiki.XWikiUsers"))
#set($obj = $class.newObject())
#set($serverobj = $class.newObject())
#set($discard = $doc.use("XWiki.XWikiUsers"))
#if($request.register_first_name)
$doc.set("first_name", $request.register_first_name)
#end
#if($request.register_last_name)
$doc.set("last_name", $request.register_last_name)
#end
<dl>
##username
<dt>$msg.get("core.register.username")</dt>
<dd><input name="xwikiname" type="text" size="20" onfocus="
prepareName(document.forms.register);" /></dd>
... lots more fields
#if ($captchaPlugin)
$captchaPlugin.displayCaptcha("edit","register_captcha")
#end
<span class="buttonwrapper"><input type="submit"
value="$msg.get("core.register.submit")"/></span></div>
</form>
#end
Windows users can rejoice -- http://www.google.com/chrome -- Because they
work nicely together. Much faster/smoother. Unfortunately, to get it on
linux, you have to switch to google's
linux<http://news.cnet.com/8301-17939_109-10281744-2.html?tag=newsLeadStoriesArea…>.
I didn't realize chrome was worth bothering with until I understood all the
announcements, which is what got me to switch. (I still use Firefox on Linux
(via X protocol) to run "firebug")... I think IE won't be able to
So far, the biggest new feature I get, other than blazing fast javascript,
is that text boxes (e.g. comment panels, object-editor panels, etc) are
resizeable. (If it's in an "accordion" like in the object editor, you have
to collapse/reexpand to get the sizing correct if you make the window larger
than it's original display.)
Niels
http://nielsmayer.com
Dear All
I have inserted a captcha field into our registration page. It validates
correctly. However the user is still registered even if the code is
incorrectly entered.
I have tried to find the part within the code which actaully does the
registering once the fields are correctly filled in. I could then put this
in an if statement which depends on $reg and the captcha field. However I
can't find it.
Please, please, please can someone now just help me finish off.
I attach a short version of the code I have.
## declare the plugin
#set($captchaPlugin = $xwiki.jcaptcha)
##verify captcha
##call the verifyCaptcha
#if($captchaPlugin.verifyCaptcha("edit"))
<h2>captcha correct</h2>
#else
<h2>captcha wrong</h2>
#end
#if(!$reg||$reg<0 )
<p>Welcome ......</p>
#end
#if($reg && $reg<=0)
#if($reg==-2)
#error("$msg.get('core.register.passwordMismatch')")
#elseif($reg==-3)
#error("$msg.get('core.register.userAlreadyExists')")
#elseif($reg==-4)
#error("$msg.get('core.register.invalidUsername')")
#elseif($reg==-8)
#error("$msg.get('core.register.userAlreadyExists')")
#else
#error("$msg.get('core.register.registerFailed', [$reg])")
#end
#elseif($reg)
#set($xwname = "XWiki.${request.xwikiname}")
#info("$msg.get('core.register.successful',
[$xwiki.getUserName($xwname), $request.xwikiname])")
#end
#if(!$reg||$reg<0)
<form id="register" action="verifyCaptcha" method="post">
<div>
#set($captchaPlugin = $xwiki.jcaptcha)
<input type="hidden" name="template" value="XWiki.XWikiUserTemplate"
/>
<input type="hidden" name="register" value="1"/>
#set($class = $xwiki.getClass("XWiki.XWikiUsers"))
#set($obj = $class.newObject())
#set($serverobj = $class.newObject())
#set($discard = $doc.use("XWiki.XWikiUsers"))
#if($request.register_first_name)
$doc.set("first_name", $request.register_first_name)
#end
#if($request.register_last_name)
$doc.set("last_name", $request.register_last_name)
#end
<dl>
##username
<dt>$msg.get("core.register.username")</dt>
<dd><input name="xwikiname" type="text" size="20" onfocus="
prepareName(document.forms.register);" /></dd>
##password
##lots of form fields here
#if ($captchaPlugin)
$captchaPlugin.displayCaptcha("edit","register_captcha")
#end
<span class="buttonwrapper"><input type="submit"
value="$msg.get("core.register.submit")"/></span></div>
</form>
#end
I could use some help on getting an XWiki server working with Oracle.
I followed the instructions here:
http://platform.xwiki.org/XWiki/bin/view/AdminGuide/InstallationOracle
The mentioned xwiki-oracle.hbm.xml file I finally found here:
http://www.xwiki.org/XWiki/bin/view/FAQ/Isthereasimplewaygettingxwikiworkin…
.
I placed it in the suggested xwiki/Web-INF/classes sub-directory.
But, I could not find a feeds.oracle.hbm.xml file anywhere. (Why would the
page mention those XML files yet not provide them?)
I made the necessary changes to hibernate.cfg.xml file in WEB-INF. I even
placed the ojdbc5.jar (latest rev) in the webaps/WEB-INF/lib directory. I
know that the JDBC jar file is correct because I had to put it in the
jetty/ext directory to get groovy script on one of our pages to
successfully connect to a different Oracle instance and pull data onto the
page. (Side note: groovy classes really need to be on their own separate
pages due to parsing issues with velocity and groovy. This was a heard
learned lesson).
So, I made the changes from the above instructions and created an xwiki
user on my Oracle 10g express edition DB which I installed on our Red-Hat
Linux server. So far things seemed to go well until I tried to pull it all
together and fire up the xwiki server and connect to it from the browser.
Below is the error I received:
HTTP ERROR: 500
Error number 3 in 0: Could not initialize main xwiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XwikiHibernateMigrationManager
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Could not parse mapping document from resource
xwiki.oracle.hbm.xml
RequestURI=/xwiki/bin/CEDSYard/
Powered by Jetty://
The request URI is the configured main page for our wiki. I see no new
tables in the xe Oracle DB.
All of the past emails on the subject in the user list haven't supplied
any answers. I really hope I can get some help on this.
What do I need to do to get Oracle and xwiki to work together since the
instructions I've found miss crucial elements of the puzzle?
Thanks,
Dean Weber
Sr Software Engineer II
Raytheon Technical Services Company LLC
6125 E 21 Street, MS 36
Indianapolis, IN 46219 USA
317.306.2657 Phone
317.306.4253 Fax
Dean.G.Weber(a)raytheon.com
All,
The log-in link on my wiki's main page was broken so I modified its global.vm file in an effort to fix it. After saving my changes and refreshing the wiki, however, I was given an HTTP status 500 error message by my server. I looked into the problem and it appears as though the issue lies with my hibernate.cfg.xml file which is included below:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Template for hibernate configuration. processing by maven using profiles.
Replace original src/main/webapp/WEB-INF/hibernate.cfg.xml -->
<hibernate-configuration>
<session-factory>
<property name="show_sql">false</property>
<property name="use_outer_join">true</property>
<property name="dbcp.defaultAutoCommit">false</property>
<property name="dbcp.maxActive">50</property>
<property name="dbcp.maxIdle">5</property>
<property name="dbcp.maxWait">30000</property>
<property name="dbcp.whenExhaustedAction">1</property>
<property name="dbcp.ps.whenExhaustedAction">1</property>
<property name="dbcp.ps.maxActive">20</property>
<property name="dbcp.ps.maxWait">120000</property>
<property name="dbcp.ps.maxIdle">20</property>
<!-- Please refer to the installation guide on
http://www.xwiki.org/xwiki/bin/view/AdminGuide/Installation for configuring your
database. You'll need to do 2 things:
1) Copy your database driver JAR in WEB-INF/lib or in some shared lib directory
2) Uncomment the properties below for your specific DB
-->
<property name="connection.url">jdbc:hsqldb:file:database/xwiki_db;shutdown=true</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>
<!-- Mapping files -->
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<!-- MySQL configuration.
Uncomment if you want to use MySQL and comment out other database configurations.
Note that the database will be created automatically if it doesn't already exist.
We need to set the sql_mode to a less strict value, see XWIKI-1945
<property name="connection.url">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false&sessionVariables=sql_mode=''</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
-->
<!-- HSQLDB configuration.
Uncomment if you want to use HSQLDB and comment out other database configurations.
Note that the database will be created automatically if it doesn't already exist.
<property name="connection.url">jdbc:hsqldb:file:/some/path/xwikidb;shutdown=true</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
-->
<!-- PostgreSQL configuration.
Uncomment if you want to use PostgreSQL and comment out other database configurations.
Note that the database will be created automatically if it doesn't already exist.
<property name="connection.url">jdbc:postgresql:xwiki</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
-->
<!-- Oracle configuration.
Uncomment if you want to use Oracle and comment out other database configurations.
Note: the 2 properties named "hibernate.connection.SetBigStringTryClob" and
"hibernate.jdbc.batch_size". They are required to tell Oracle to allow CLOBs larger than
32K.
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>
<property name="hibernate.connection.SetBigStringTryClob">true</property>
<property name="hibernate.jdbc.batch_size">0</property>
<mapping resource="xwiki.oracle.hbm.xml"/>
<mapping resource="feeds.oracle.hbm.xml"/>
-->
<!-- Derby configuration.
Uncomment if you want to use Derby and comment out other database configurations.
Note that the database will be created automatically if it doesn't already exist.
<property name="connection.url">jdbc:derby:/some/path/xwikidb;create=true</property>
<property name="connection.driver_class">org.apache.derby.jdbc.EmbeddedDriver</property>
<property name="dialect">org.hibernate.dialect.DerbyDialect</property>
<property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>
<mapping resource="xwiki.derby.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
-->
</session-factory>
</hibernate-configuration>
Although I used MySQL to install the wiki, it ran just fine with the MySQL section commented out. I'll do some additional research but for now any comments or suggestions you have would be greatly appreciated.
Thank you in advance.
Respectfully,
Joe Lawry
Hi All,
This problem has been driving me crazy for several days. I have XWiki
running in Tomcat and it works fine, but I am trying to get LDAP
authentication implemented and am unable to get past this current issue.
I have looked at all the past issues mentioned on this group and
searched the internet, but none of the cases seem to be related to mine.
I am able to use LDAP with Apache httpd from my machine against our AD
Server, but unable to get XWiki (in Tomcat) to do the same. I have tried
different versions of XWiki 1.9.2 and 2.0, followed the instructions
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HLDAP
ConfigurationforActiveDirectory, and am able to bind and find the user
uid, but then it fails on the password authentication.
This is the problem -- XWiki appears to find the user in the directory
then fails on the userPassword attribute:
2009-07-06 16:00:34,812
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPUtils - Searching for the
user in LDAP: user:rgill base:dc=AcceptSoftware,dc=local
query:(sAMAccountName=rgill) uid:sAMAccountName
2009-07-06 16:00:34,812
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - LDAP search:
baseDN=[dc=AcceptSoftware,dc=local] query=[(sAMAccountName=rgill)]
attr=[[sAMAccountName, sn, givenName, displayName, mail, dn]]
ldapScope=[2]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "displayName"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |- [Regan
Gill]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "givenName"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |- [Regan]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "sn"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |- [Gill]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "mail"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |-
[rgill(a)acceptsoftware.com]
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - - values for
attribute "sAMAccountName"
2009-07-06 16:00:34,859
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - |- [rgill]
2009-07-06 16:00:34,875
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - LDAP search found
attributes: [{name=dn value=CN=Regan
Gill,OU=Users,OU=Fremont,OU=ASC,DC=AcceptSoftware,DC=local},
{name=displayName value=Regan Gill}, {name=givenName value=Regan},
{name=sn value=Gill}, {name=mail value=rgill(a)acceptsoftware.com},
{name=sAMAccountName value=rgill}]
2009-07-06 16:00:34,875
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
[http-8080-1] DEBUG ldap.XWikiLDAPConnection - Unable to verify
password because userPassword attribute not found.
LDAPException: No Such Attribute (16) No Such Attribute
LDAPException: Server Message: 00002080: AtrErr: DSID-03080139, #1:
0: 00002080: DSID-03080139, problem 1001
(NO_ATTRIBUTE_OR_VAL), data 0, Att 23 (userPassword)
LDAPException: Matched DN:
at
com.novell.ldap.LDAPResponse.getResultException(Unknown Source)
at com.novell.ldap.LDAPResponse.chkResultCode(Unknown
Source)
at com.novell.ldap.LDAPConnection.chkResultCode(Unknown
Source)
at com.novell.ldap.LDAPConnection.compare(Unknown
Source)
at com.novell.ldap.LDAPConnection.compare(Unknown
Source)
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.checkPassword(XWikiLDAPCon
nection.java:251)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateIn
Context(XWikiLDAPAuthServiceImpl.java:398)
The error message in red is exactly what the AD server sends back when
the request is made so I know its coming from the AD server itself.
However when I using Apache, it authenticates using the same
information:
[Mon Jul 06 16:05:56 2009] [debug] mod_authnz_ldap.c(474): [client
127.0.0.1] [4444] auth_ldap authenticate: accepting rgill, referer:
In addition we have another application that is also able to bind and
authenticate with the same settings and AD Server. Since the user is
being found in AD in both cases I would expect the authenticate to work
as well in XWiki as in Apache's LDAP module. I am not an LDAP or Active
Directory expert but it unless someone can help, I may need to become
one to get this to work...
Thanks,
Regan
________________________________________________________
Regan Gill | Process Architect | Accept Software Corporation
office: +1.510.403.4023 | mobile: +1.510.798.3082 | fax: +1.510.979.0220
42840 Christy Street, Suite 201, Fremont, CA 94538 USA
www.acceptsoftware.com <http://www.acceptsoftware.com/>
Just updated * XWiki.XWikiGroupSheet
(xwiki-enterprise-wiki-2.0-milestone-1.xar) an got page listing feature
but lost Add User To a group button?
Any ideas?
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University.
Hi, can someone help me with setting up CAPTCHA with the albatross skin for
registration and comments? Is there some example code I could look at? Or if
someone has this working could they give some guidence? I have the captcha
plugin enabled but I'm kinda stuck on what to do next. Thanks in advance.
-Marlon
Hello, i'm new to XWiki
I am more used to MediaWiki, thanks to Wikipedia and i was looking for two features from MediaWiki :
- the Category thing : the ability to filter pages by category. Maybe Xwiki does have this functionnality but i have search macro and snippets and FAQs but i can't find how Xwiki named this functionnality.
- the Modele thing : I would like to create several pages on a same modele : like zoologic classification record : all pages should use the same template : name, nature, classification, sub classification etc… Is it possible to create a canvas with XWiki (maybe a page) and include the page with parameters so, once opened, the page will have all the fields fill by the parameters ?
Cordialement
Best Regards
MAI Phương Trâm
Nouvelles Frontières Informatique
=====================
NOUVELLES FRONTIERES
74, rue de Lagny
API 4A10
93107 MONTREUIL CEDEX
+33(0)1 48 51 81 21
Hello there,
I was looking forward to have a more specific statistics website on my xwiki.
Actually, I would like to monitor which user visited a space, how many times he or she did it. Is there any tool (xwiki or external tool) that allows me to do that?
Thanks in advance !
Best Regards
Hi all,
has anyone already tried the "Junp to page" feature of the release 1.9.0
behind an Apache server?
When I type the page name, I'm asked for authentication again and again.
Here is my apache config:
<Location /xwiki>
SSLRequireSSL
AuthType Basic
AuthName "xwiki is a restricted area."
AuthUserFile E:\Programme\xampp\apache\etc\passwd
Require valid-user
ProxyPass ajp://127.0.0.1:8019/xwiki
ProxyPassReverse ajp://127.0.0.1:8019/xwiki
</Location>
My XWiki installation:
XWiki 1.9.0
MySQL 5
Tomcat 5.0.28
Thanks a lot,
Marco
The XWiki development team is pleased to announce the release of XWiki
Enterprise 1.9.1.
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
This is a bug fix and enhancement release mainly around new WYSIWYG
and new Rendering modules.
Changes since XWiki Enterprise 1.9. Improvements:
* Latvian translations available
* XWIKI-4016 Add the ability to configure the colors displayed by the
color picker
* XABLOG-31 Add a default article to the blog
* XABLOG-32 Displaying blog-specific panels on the left of the screen
in the Blog space
Important Bugs fixed:
* Various bugs fixed in the xwiki/2.0 WYSIWYG editor
* Various bugs fixed in the xwiki/1.0 to xwiki/2.0 converter
* XWIKI-3992 Preview is broken in path based multiwiki
* XWIKI-4033 When saving after section edit entire page is overwritten
* XWIKI-3987 Livetable macro isn't working anymore in XWiki 2.0 syntax
* XWIKI-3991 Livetables don't work when edited in the WYSIWYG editor
* XWIKI-4051 Office Importer auto-start feature is broken in 1.9 branch
* XABLOG-49 Publishing blog posts does not work for non-admin users
* XABLOG-48 The Recent Posts panel displays hidden posts
* XATAG-17 Don't allow tags to be renamed to the empty string
For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise191
Thanks,
The XWiki dev team
Dear All
I am trying to get a captcha to work, and am struggling.
If i go to edit the register page and edit the code I can get a captcha
field to display :-) along with an input box.
This is what I did:
#if ($xwiki.jcaptcha.verifyCaptcha("CaptchaName"))
#if ($context.user=="XWiki.XWikiGuest")
<img style="border: solid 1px #000000" src="$doc.getURL("jcaptcha")">
<br /> Please type the captcha below:*
<br /> <input size="40" type="text" name="jcaptcha_response" /> <br />
#end
#end
I have searched through this mail group and read several posts on using this
captcha.
I have tried altering the action thus:
<form id="register" action="captcha.vm" method="post">
but that didn't seem to do much (well, anything really!)
I have also tried this
http://n2.nabble.com/CAPTCHA-for-comments-and-registration-td507976.html#a50
7976 frm Sachin Mittal at the very bottom - but I am lost!
Could somebody please help?
Thanks
E
Hi Asiri,
I installed from the following:
xwiki-enterprise-web-1.8.4.war
xwiki-enterprise-wiki-1.8.4.xar
OOo_3.1.0_Win32Intel_install_en-US.exe
If I open the Word document in OOo I can see the Visio drawing and other
images. In the imported XWiki markup there is no sign that there was
anything either where the drawing or the inserted image were.
Thanks,
Kevin
>> I have just set up the Office Importer and tried importing a Word
document
>> that contains an embedded Visio drawing. The document imported OK,
but the
>> Visio drawing is not visible. Also other images in the document
(simple
>> picture elements) are not visible.
>>
>> Is this an issue in my configuration or is this just the way it
works?
>
>It's definitely not the way it works. Which XE version are you using?
and
>which OOo version?
>
>Thanks.
>
>- Asiri
Hi Florian.
On Wed, Jul 1, 2009 at 1:00 PM, Florian Rhomberg <
florian.rhomberg(a)nettania.net> wrote:
> Hello!
>
> I have a question tot he new WYSWYG. First I have to say that this editor
> is
> really really much better than the old one, gratulations. Especially the
> new
> method to insert macros is quite well! In future will it be possible to add
> news macros to the standard ones? Especially the macro to add a list of all
> pages of this space would be very useful!
>
>
>
> But now my problem:
>
> I did a backup of my old xwiki content which was version 1.8 I think so.
> After installing the new one I ibstalled the new xar file for 1.9. Then I
> imported selected articles of the old wiki tot he new one. But now if I
> want
> to edit an old article I get also the old WYSIWYG editor and not the new
> one. This does not satisfy me, is there a possibility to change this?
>
Try this:
go to the wiki edit mode, change the page syntax to xwiki/2.0, this will ask
you if you want to convert the page into xwiki/2.0 syntax, say "yes" :)
Then xwitch back to wysiwyg editor, you should get the new wysiwyg editor
now.
Not sure if this is the optimal solution, but it should work.
- Asiri
>
>
>
> Thanks,
>
> Florian
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>