[xwiki-users] Check if User is in a group
Hi, how can I check programmatically that a certain member is in a group. I need this in my custom authentication, to prevent the same user from been added several times to the same group. Thanks ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Check if User is in a group
Hi, I tried many things already. But not this. http://jira.xwiki.org/plugins/servlet/mobile#issue/XWIKI-5440 I'll give this a try. Thanks Am 13.06.2014 09:12 schrieb vinc...@massol.net vinc...@massol.net: Hi, Did you check on google? I see that https://www.google.com/search?q=xwiki+check+if+a+user+is+in+a+groupoq=xwiki+check+if+a+user+is+in+a+group returns several topics related to this. Thanks -Vincent On 13 Jun 2014 at 09:04:28, Daniel Ebanja (danieleba...@googlemail.com (mailto:danieleba...@googlemail.com)) wrote: Hi, how can I check programmatically that a certain member is in a group. I need this in my custom authentication, to prevent the same user from been added several times to the same group. Thanks ___ 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] AddUserToGroup Programmatically
Hi Jeremie, adding the member to the group works just well. The problem is that the same user or say member can be added several times to the same group. I need some means to stop this. I can't see that log. Thanks Am 11.06.2014 01:08 schrieb Jeremie BOUSQUET jeremie.bousq...@gmail.com: Hi, Le 10 juin 2014 21:09, Daniel Ebanja danieleba...@googlemail.com a écrit : Hi, i am adding Users to a group as shown below d want to prevent that a user be added to a group twice. It is not working this way. if( null == groupDoc.getXObject(groupDocumentReference, member, xwikiname)){ I never used this method, and its javadoc could be improved, are you sure it does what you think ? ;) You could use something like (to be checked): xwiki.getUser(username, context).isUserInGroup(group) // Add a member object to document BaseObject memberObj = groupDoc.newXObject( groupClass.getDocumentReference(), context); memberObj.setStringValue(member, xwikiname); context.getWiki().saveDocument(groupDoc, context); }else log.error(the user already existed in the requested group...); You say it doesn't work, but do you see that log ? What happens ? I will appreciate any help. Thanks ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] AddUserToGroup Programmatically
Hi, i am adding Users to a group as shown below d want to prevent that a user be added to a group twice. It is not working this way. if( null == groupDoc.getXObject(groupDocumentReference, member, xwikiname)){ // Add a member object to document BaseObject memberObj = groupDoc.newXObject( groupClass.getDocumentReference(), context); memberObj.setStringValue(member, xwikiname); context.getWiki().saveDocument(groupDoc, context); }else log.error(the user already existed in the requested group...); I will appreciate any help. Thanks ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] IllegalArgumentException
Hi, thanks for all the help. I solved the problem. This link helped me: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding 2014-06-03 5:16 GMT+02:00 Daniel Ebanja danieleba...@googlemail.com: Hi, i am receiveing the following exception: Caused by: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ! My scenario: Users can create space by using a URL that looks like: mydomain.com/xwiki/bin/...?space= %C3%A4%C3%B6%C3%BC%C3%9F%C2%A7%25%21%3C%3E_helloworld i then try to decode this spacename and create the space without success. String decodedspacename = URLDecoder.decode(space, UTF-8); How should i deal with this? thanks for your help in advance. -- Ebanja Daniel Informatikstudent der Hochschule Darmstadt Deutschland ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] IllegalArgumentException
Hi, just wanted to ask if someone has an idea for me. I'll appreciate any help. Thanks Am 03.06.2014 05:16 schrieb Daniel Ebanja danieleba...@googlemail.com: Hi, i am receiveing the following exception: Caused by: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ! My scenario: Users can create space by using a URL that looks like: mydomain.com/xwiki/bin/...?space= %C3%A4%C3%B6%C3%BC%C3%9F%C2%A7%25%21%3C%3E_helloworld i then try to decode this spacename and create the space without success. String decodedspacename = URLDecoder.decode(space, UTF-8); How should i deal with this? thanks for your help in advance. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] IllegalArgumentException
Hi, I am trying to decode only once and I'm getting the exception already. String decodedspacename = URLDecoder.decode(space, UTF-8).getpath(); Am 03.06.2014 09:50 schrieb Clemens Klein-Robbenhaar c.robbenh...@espresto.com: On 06/03/2014 05:16 AM, Daniel Ebanja wrote: Hi, i am receiveing the following exception: Caused by: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ! Hm, are you sure it is already decoded? I can reproduce the error message you get by decoding it twice ... My scenario: Users can create space by using a URL that looks like: mydomain.com/xwiki/bin/...?space= %C3%A4%C3%B6%C3%BC%C3%9F%C2%A7%25%21%3C%3E_helloworld i then try to decode this spacename and create the space without success. String decodedspacename = URLDecoder.decode(space, UTF-8); How should i deal with this? thanks for your help in advance. ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Xwiki exceptions
Hi Vincent, Error number 0 in 11: Uncaught exception com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:317) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.j ava:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFi lter(SavedRequestRestorerFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFi lter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100 ) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce ssor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac tProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java: 310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11 45) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6 15) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.IllegalArgumentException: An Entity Reference name cannot be null or empty at org.xwiki.model.reference.EntityReference.setName(EntityReference.java:183) at org.xwiki.model.reference.EntityReference.init(EntityReference.java:151) at org.xwiki.model.reference.DocumentReference.init(DocumentReference.java:15 6) at org.xwiki.model.reference.DocumentReference.init(DocumentReference.java:89 ) at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.findUser(XWikiAuthService Impl.java:458) at com.xpn.xwiki.user.impl.sso.SSOAuthServiceImpl.createUserIfNeeded(SSOAuthSer viceImpl.java:269) at com.xpn.xwiki.user.impl.sso.SSOAuthServiceImpl.checkAuth(SSOAuthServiceImpl. java:115) at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3555) at
Re: [xwiki-users] Xwiki exceptions
Hi, Several types of exceptions are been displayed this way and what I want is to display some other page. I think what I'll do is to redirect to some page of mine where I display less error information as this i.e I'll try my best to handle the different exceptions. Thanks Am 02.06.2014 11:33 schrieb vinc...@massol.net vinc...@massol.net: Hi, I know what an exception is ;) What I don’t know is: * what you do to get it * where do you get it AFAICS this is related to authentication but I don’t know the code well enough to know how authentication errors are reported. I’ll let others chime in. Thanks -Vincent On 2 Jun 2014 at 11:17:51, Daniel Ebanja (danieleba...@googlemail.com (mailto:danieleba...@googlemail.com)) wrote: Hi Vincent, Error number 0 in 11: Uncaught exception com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:317) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.j ava:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFi lter(SavedRequestRestorerFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFi lter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100 ) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce ssor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac tProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java: 310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11 45) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6 15) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.IllegalArgumentException: An Entity Reference name cannot be null or empty at org.xwiki.model.reference.EntityReference.setName(EntityReference.java:183
[xwiki-users] IllegalArgumentException
Hi, i am receiveing the following exception: Caused by: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ! My scenario: Users can create space by using a URL that looks like: mydomain.com/xwiki/bin/...?space= %C3%A4%C3%B6%C3%BC%C3%9F%C2%A7%25%21%3C%3E_helloworld i then try to decode this spacename and create the space without success. String decodedspacename = URLDecoder.decode(space, UTF-8); How should i deal with this? thanks for your help in advance. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] exceptions
Hallo Devs, is there anyway to avoid exceptions being shown to Users? I already have them written in my log. Thanks. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] context.setUser(xwikiname);
Thanks for that Tipp. Am 28.05.2014 03:04 schrieb Sergiu Dumitriu ser...@xwiki.com: Whenever something is deprecated, the replacement is mentioned in the JavaDoc: https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-5.4.5/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWikiContext.java#L409 On 05/27/2014 06:10 PM, Daniel Ebanja wrote: Hi Devs, just wanted to ask what the alternative to context.setUser(xwikiname); is. This is depracated. Thanks in advance. -- Sergiu Dumitriu http://purl.org/net/sergiu ___ 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
[xwiki-users] context.setUser(xwikiname);
Hi Devs, just wanted to ask what the alternative to context.setUser(xwikiname); is. This is depracated. Thanks in advance. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Space name
Hello Developers, are there any signs not allowed in space names? How long can the space name be? Thanks -- Ebanja Daniel Informatikstudent der Hochschule Darmstadt Deutschland ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] LOGIN
Hi Developers, i can't login to my xwiki. Clicking on LOG-IN leads to an error page(403). What can this be? and how could i please solve this. Wish u a nice day. Thanks. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Dynamically create space and add rights and members
Hi does someone please see what i am getting wrong here? The rights are not just beeing set. protected void addUserToGroup(String xwikiname, XWikiContext context) throws XWikiException { // // Create a group and add the user to the newly created group. BaseClass groupClass = context.getWiki().getGroupClass(context); // Get document representing group DocumentReference groupDocumentReference = new DocumentReference( context.getDatabase(), Myspace, Testgroup); XWikiDocument groupDoc = context.getWiki().getDocument( groupDocumentReference, context); BaseClass rightsClass = context.getWiki().getRightsClass(context); // trying to see how to add rights if (groupDoc.isNew()) { log.error(Creating Test group); synchronized (groupDoc) { // Add a member object to document BaseObject memberObj = groupDoc.newXObject( groupClass.getDocumentReference(), context); memberObj.setStringValue(member, xwikiname); // groupDoc.getObject(XWiki.XWikiGlobalRights); // If the document is new, set its content groupDoc.setSyntax(Syntax.XWIKI_2_1); groupDoc.setContent({{include document='XWiki.XWikiGroupSheet' /}}); // Save modifications context.getWiki().saveDocument(groupDoc, context); DocumentReference spacePrefsRef = new DocumentReference(context .getWiki().getDatabase(), Myspace, WebPreferences); XWikiDocument spacePrefs = context.getWiki().getDocument( spacePrefsRef, context); BaseObject rights = spacePrefs.newXObject( rightsClass.getDocumentReference(), context); rights.setStringValue(groups, XWiki.XWikiAllGroup); rights.setStringValue(levels, view,edit); rights.setStringValue(users, ); rights.setIntValue(deny, 1); context.getWiki().saveDocument(spacePrefs, context); } log.error(Added user + xwikiname + to Testgroup); } } thanks in advance. 2014-04-19 16:09 GMT+02:00 Clemens Klein-Robbenhaar c.robbenh...@espresto.com: Hi, to add access rights to a space, you have to add an XWiki.XWikiRight object to the page spacename.WebPreferences. I have not tested it, but it should look somewhat like: DocumentReference spacePrefsReference = new DocumentReference( context.getWiki().getName(), spaceName, WebPreferences) XWikiDocument spacePrefs = context.getWiki().getDocument(spacePrefsReference, context) [...] then add the rights object like you did in your code, except that you add it to spacePrefs instead of groupDoc. (I guess you also need to set rights.setStringValue(levels,view,edit); instead of doing two calls) Do not forget to save spacePrefs, too. hope this helps, clemens On 04/19/2014 08:14 AM, Daniel Ebanja wrote: Hi Developers, i have been trying this the whole time already and decided to ask for help. I want to create a space, a group and add a member to the group. The space should only be viewed by this group. Here is my code till now. The Space is created, the group too and the user login in is added to the group. I can't figure how to assign the rights. The CODE: protected void addUserToGroup(String xwikiname, XWikiContext context) throws XWikiException{ // // Create a group and add the user to the newly created group. BaseClass groupClass = context.getWiki().getGroupClass(context); // Get document representing group DocumentReference groupDocumentReference = new DocumentReference( context.getDatabase(), myspace, Testgroup); XWikiDocument groupDoc = context.getWiki().getDocument( groupDocumentReference, context); BaseClass rightsClass = context.getWiki().getRightsClass(context); if (groupDoc.isNew()) { log.error(Creating Test group); synchronized (groupDoc) { // Add a member object to document BaseObject memberObj = groupDoc.newXObject( groupClass.getDocumentReference(), context); memberObj.setStringValue(member, xwikiname); BaseObject rights= groupDoc.newXObject(rightsClass.getDocumentReference(),context); rights.setStringValue(groups, Testgroup); rights.setStringValue(levels,view); rights.setStringValue(levels, edit); rights.setStringValue(users, ); rights.setIntValue(allow,1); //groupDoc.getObject(XWiki.XWikiGlobalRights
Re: [xwiki-users] Dynamically create space and add rights and members
Hi Developers, i like came up with this. It functions just well, but i have a problem: I have to safe all 3 Documents as you can see in the code below. -What if the Users created some other pages or add attachments to that space and don't set the rights so that only members of the group should see the stuff in the space? I guess i will have some space with some hidden docs and some public. -So how could i set the rights globally for the space? -I am trying to do this upon authentication. i.e user transmits me the name of the group and space to create upon Authentication.. Problem is at the time of creation the user is not yet logged in. So i see space created by unknown User. -Could anyone please help with some ideas. Thanks Clemens, and thank you all in advance. The code: protected void addUserToGroup(String xwikiname, XWikiContext context) throws XWikiException { // // Create a group and add the user to the newly created group. BaseClass groupClass = context.getWiki().getGroupClass(context); // Get document representing group. Rights are set for the group when the group is saved in Xwiki space DocumentReference groupDocumentReference = new DocumentReference( context.getDatabase(), XWiki, XWikiTestgroup); XWikiDocument groupDoc = context.getWiki().getDocument( groupDocumentReference, context); BaseClass rightsClass = context.getWiki().getRightsClass(context); // trying to see how to add rights if (groupDoc.isNew()) { log.error(Creating Test group); synchronized (groupDoc) { // Add a member object to document BaseObject memberObj = groupDoc.newXObject( groupClass.getDocumentReference(), context); memberObj.setStringValue(member, xwikiname); // groupDoc.getObject(XWiki.XWikiGlobalRights); // If the document is new, set its content groupDoc.setSyntax(Syntax.XWIKI_2_1); groupDoc.setContent({{include document='XWiki.XWikiGroupSheet' /}}); BaseObject grouprights = groupDoc.newXObject( rightsClass.getDocumentReference(), context); grouprights.setStringValue(groups, XWiki.XWikiTestgroup); grouprights.setStringValue(levels, view); grouprights.setStringValue(levels, edit); grouprights.setStringValue(users, ); grouprights.setIntValue(deny, 1); // Save modifications context.getWiki().saveDocument(groupDoc, context); DocumentReference spacePrefsRef = new DocumentReference(context .getWiki().getDatabase(), XWiki.Myspace, WebPreferences); XWikiDocument spacePrefs = context.getWiki().getDocument( spacePrefsRef, context); BaseObject rights = spacePrefs.newXObject( rightsClass.getDocumentReference(), context); rights.setStringValue(groups, XWiki.XWikiTestgroup); rights.setStringValue(levels, view,edit); rights.setStringValue(users, ); rights.setIntValue(deny, 1); context.getWiki().saveDocument(spacePrefs, context); DocumentReference spacePrefsRefWebh = new DocumentReference(context .getWiki().getDatabase(), XWiki.Myspace, WebHome); XWikiDocument spacePrefsWh = context.getWiki().getDocument( spacePrefsRefWebh, context); BaseObject rightsWh = spacePrefsWh.newXObject( rightsClass.getDocumentReference(), context); rightsWh.setStringValue(groups, XWiki.XWikiTestgroup); rightsWh.setStringValue(levels, view,edit); rightsWh.setStringValue(users, ); rightsWh.setIntValue(deny, 1); context.getWiki().saveDocument(spacePrefsWh, context); } log.error(Added user + xwikiname + to Testgroup); } } 2014-04-21 5:06 GMT+02:00 Daniel Ebanja danieleba...@googlemail.com: Hi does someone please see what i am getting wrong here? The rights are not just beeing set. protected void addUserToGroup(String xwikiname, XWikiContext context) throws XWikiException { // // Create a group and add the user to the newly created group. BaseClass groupClass = context.getWiki().getGroupClass(context); // Get document representing group DocumentReference groupDocumentReference = new DocumentReference( context.getDatabase(), Myspace, Testgroup); XWikiDocument groupDoc = context.getWiki().getDocument( groupDocumentReference, context
[xwiki-users] Dynamically create space and add rights and members
Hi Developers, i have been trying this the whole time already and decided to ask for help. I want to create a space, a group and add a member to the group. The space should only be viewed by this group. Here is my code till now. The Space is created, the group too and the user login in is added to the group. I can't figure how to assign the rights. The CODE: protected void addUserToGroup(String xwikiname, XWikiContext context) throws XWikiException{ // // Create a group and add the user to the newly created group. BaseClass groupClass = context.getWiki().getGroupClass(context); // Get document representing group DocumentReference groupDocumentReference = new DocumentReference( context.getDatabase(), myspace, Testgroup); XWikiDocument groupDoc = context.getWiki().getDocument( groupDocumentReference, context); BaseClass rightsClass = context.getWiki().getRightsClass(context); if (groupDoc.isNew()) { log.error(Creating Test group); synchronized (groupDoc) { // Add a member object to document BaseObject memberObj = groupDoc.newXObject( groupClass.getDocumentReference(), context); memberObj.setStringValue(member, xwikiname); BaseObject rights= groupDoc.newXObject(rightsClass.getDocumentReference(),context); rights.setStringValue(groups, Testgroup); rights.setStringValue(levels,view); rights.setStringValue(levels, edit); rights.setStringValue(users, ); rights.setIntValue(allow,1); //groupDoc.getObject(XWiki.XWikiGlobalRights); groupDoc.setSyntax(Syntax.XWIKI_2_1); groupDoc.setContent({{include document='XWiki.XWikiGroupSheet' /}}); // Save modifications context.getWiki().saveDocument(groupDoc, context); } log.error(Added user+ xwikiname +to Testgroup); } } Thanks for any help. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Fwd: Xwiki 5.4. Implicit Search
ebanja.dan...@it.stockstadt.eso.de Am 03.04.2014 13:23 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: It's not unusual that the Search Suggest and the default search page provide different search results. The search suggest is very targeted as it provides results from a list of configured sources that look into specific fields (e.g. Document Content source looks only in the document content, Attachment Names looks only in the attachment names, etc.). The default search page on the other hand provides generic results because it looks everywhere. It's normal that the same result gets a different score when you search only in a specific field than when you search on all fields. Moreover, the search suggest does (in XWiki 5.4) prefix matching by default. It appends * (star) automatically at the end of the typed text. The default search page doesn't do that. So there are two options: (1) type * at the end of your search text (i.e. explicitly tell the search engine that you want prefix matching) (2) modify the default search page to append the * automatically (but note that the search query supports a special query syntax which you can break by appending * blindly; the special query syntax is used by advanced users) Hope this helps, Marius On Thu, Apr 3, 2014 at 12:56 PM, Daniel Ebanja danieleba...@googlemail.com wrote: The actual problem is the result in the result in the standard search page. Am 03.04.2014 11:20 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: Which search engine are you using? Solr, Lucene or Database? See http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchAdministration . Are you referring to the standard search page (e.g. http://extensions.xwiki.org/xwiki/bin/download/Extension/Solr+Search+Application/searchPage.png ) or to the Search Suggest ( http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchSuggest ) input from the top right corner? On Wed, Apr 2, 2014 at 11:26 PM, Daniel Ebanja danieleba...@googlemail.com wrote: -- Weitergeleitete Nachricht -- Von: Daniel Ebanja danieleba...@googlemail.com Datum: 02.04.2014 15:50 Betreff: Xwiki 5.4. Implicit Search An: Sergiu Dumitriu ser...@xwiki.org Cc: Hi Sergiu, i have this problem when I search. Searching for say, foot gives me only results where this word is explicitly found. I will like to have implicit results e.g footy, football i.e as if i had searched for foot*. Can this be configured in xwiki.cfg? Thanks in advance. Wish you a nice day. Daniel ___ 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 ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Fwd: Xwiki 5.4. Implicit Search
Hi Devs, i can't find the file in which this change is to be made. I am Using version 5.4.1 of XWIKI. Thanks 2014-04-03 15:27 GMT+02:00 Daniel Ebanja danieleba...@googlemail.com: Thanks, I needed just that. Am 03.04.2014 14:13 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: Here https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-5.4/xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-ui/src/main/resources/Main/SolrSearch.xml#L1143 #set ($queryString = $!{text}*) Hope this helps, Marius On Thu, Apr 3, 2014 at 3:04 PM, Daniel Ebanja danieleba...@googlemail.com wrote: I had this idea too but the question is where to append * to the searchpage. I didn't find where to do that in the velocity code of the search page. Thanks a lot Am 03.04.2014 13:23 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: It's not unusual that the Search Suggest and the default search page provide different search results. The search suggest is very targeted as it provides results from a list of configured sources that look into specific fields (e.g. Document Content source looks only in the document content, Attachment Names looks only in the attachment names, etc.). The default search page on the other hand provides generic results because it looks everywhere. It's normal that the same result gets a different score when you search only in a specific field than when you search on all fields. Moreover, the search suggest does (in XWiki 5.4) prefix matching by default. It appends * (star) automatically at the end of the typed text. The default search page doesn't do that. So there are two options: (1) type * at the end of your search text (i.e. explicitly tell the search engine that you want prefix matching) (2) modify the default search page to append the * automatically (but note that the search query supports a special query syntax which you can break by appending * blindly; the special query syntax is used by advanced users) Hope this helps, Marius On Thu, Apr 3, 2014 at 12:56 PM, Daniel Ebanja danieleba...@googlemail.com wrote: The actual problem is the result in the result in the standard search page. Am 03.04.2014 11:20 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: Which search engine are you using? Solr, Lucene or Database? See http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchAdministration . Are you referring to the standard search page (e.g. http://extensions.xwiki.org/xwiki/bin/download/Extension/Solr+Search+Application/searchPage.png ) or to the Search Suggest ( http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchSuggest ) input from the top right corner? On Wed, Apr 2, 2014 at 11:26 PM, Daniel Ebanja danieleba...@googlemail.com wrote: -- Weitergeleitete Nachricht -- Von: Daniel Ebanja danieleba...@googlemail.com Datum: 02.04.2014 15:50 Betreff: Xwiki 5.4. Implicit Search An: Sergiu Dumitriu ser...@xwiki.org Cc: Hi Sergiu, i have this problem when I search. Searching for say, foot gives me only results where this word is explicitly found. I will like to have implicit results e.g footy, football i.e as if i had searched for foot*. Can this be configured in xwiki.cfg? Thanks in advance. Wish you a nice day. Daniel ___ 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 ___ 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 ___ 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 -- Ebanja Daniel Informatikstudent der Hochschule Darmstadt Deutschland ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Fwd: Xwiki 5.4. Implicit Search
Hi Devs, i am using the solr engine and i am mean the input typed into the top right search. The search suggest is working just fine but after pressing enter I get only results in which the inputtext is explicitly found. Thanks Am 03.04.2014 11:20 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: Which search engine are you using? Solr, Lucene or Database? See http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchAdministration . Are you referring to the standard search page (e.g. http://extensions.xwiki.org/xwiki/bin/download/Extension/Solr+Search+Application/searchPage.png ) or to the Search Suggest ( http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchSuggest ) input from the top right corner? On Wed, Apr 2, 2014 at 11:26 PM, Daniel Ebanja danieleba...@googlemail.com wrote: -- Weitergeleitete Nachricht -- Von: Daniel Ebanja danieleba...@googlemail.com Datum: 02.04.2014 15:50 Betreff: Xwiki 5.4. Implicit Search An: Sergiu Dumitriu ser...@xwiki.org Cc: Hi Sergiu, i have this problem when I search. Searching for say, foot gives me only results where this word is explicitly found. I will like to have implicit results e.g footy, football i.e as if i had searched for foot*. Can this be configured in xwiki.cfg? Thanks in advance. Wish you a nice day. Daniel ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Fwd: Xwiki 5.4. Implicit Search
The actual problem is the result in the result in the standard search page. Am 03.04.2014 11:20 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: Which search engine are you using? Solr, Lucene or Database? See http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchAdministration . Are you referring to the standard search page (e.g. http://extensions.xwiki.org/xwiki/bin/download/Extension/Solr+Search+Application/searchPage.png ) or to the Search Suggest ( http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchSuggest ) input from the top right corner? On Wed, Apr 2, 2014 at 11:26 PM, Daniel Ebanja danieleba...@googlemail.com wrote: -- Weitergeleitete Nachricht -- Von: Daniel Ebanja danieleba...@googlemail.com Datum: 02.04.2014 15:50 Betreff: Xwiki 5.4. Implicit Search An: Sergiu Dumitriu ser...@xwiki.org Cc: Hi Sergiu, i have this problem when I search. Searching for say, foot gives me only results where this word is explicitly found. I will like to have implicit results e.g footy, football i.e as if i had searched for foot*. Can this be configured in xwiki.cfg? Thanks in advance. Wish you a nice day. Daniel ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Fwd: Xwiki 5.4. Implicit Search
I had this idea too but the question is where to append * to the searchpage. I didn't find where to do that in the velocity code of the search page. Thanks a lot Am 03.04.2014 13:23 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: It's not unusual that the Search Suggest and the default search page provide different search results. The search suggest is very targeted as it provides results from a list of configured sources that look into specific fields (e.g. Document Content source looks only in the document content, Attachment Names looks only in the attachment names, etc.). The default search page on the other hand provides generic results because it looks everywhere. It's normal that the same result gets a different score when you search only in a specific field than when you search on all fields. Moreover, the search suggest does (in XWiki 5.4) prefix matching by default. It appends * (star) automatically at the end of the typed text. The default search page doesn't do that. So there are two options: (1) type * at the end of your search text (i.e. explicitly tell the search engine that you want prefix matching) (2) modify the default search page to append the * automatically (but note that the search query supports a special query syntax which you can break by appending * blindly; the special query syntax is used by advanced users) Hope this helps, Marius On Thu, Apr 3, 2014 at 12:56 PM, Daniel Ebanja danieleba...@googlemail.com wrote: The actual problem is the result in the result in the standard search page. Am 03.04.2014 11:20 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: Which search engine are you using? Solr, Lucene or Database? See http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchAdministration . Are you referring to the standard search page (e.g. http://extensions.xwiki.org/xwiki/bin/download/Extension/Solr+Search+Application/searchPage.png ) or to the Search Suggest ( http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchSuggest ) input from the top right corner? On Wed, Apr 2, 2014 at 11:26 PM, Daniel Ebanja danieleba...@googlemail.com wrote: -- Weitergeleitete Nachricht -- Von: Daniel Ebanja danieleba...@googlemail.com Datum: 02.04.2014 15:50 Betreff: Xwiki 5.4. Implicit Search An: Sergiu Dumitriu ser...@xwiki.org Cc: Hi Sergiu, i have this problem when I search. Searching for say, foot gives me only results where this word is explicitly found. I will like to have implicit results e.g footy, football i.e as if i had searched for foot*. Can this be configured in xwiki.cfg? Thanks in advance. Wish you a nice day. Daniel ___ 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 ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Fwd: Xwiki 5.4. Implicit Search
Thanks, I needed just that. Am 03.04.2014 14:13 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: Here https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-5.4/xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-ui/src/main/resources/Main/SolrSearch.xml#L1143 #set ($queryString = $!{text}*) Hope this helps, Marius On Thu, Apr 3, 2014 at 3:04 PM, Daniel Ebanja danieleba...@googlemail.com wrote: I had this idea too but the question is where to append * to the searchpage. I didn't find where to do that in the velocity code of the search page. Thanks a lot Am 03.04.2014 13:23 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: It's not unusual that the Search Suggest and the default search page provide different search results. The search suggest is very targeted as it provides results from a list of configured sources that look into specific fields (e.g. Document Content source looks only in the document content, Attachment Names looks only in the attachment names, etc.). The default search page on the other hand provides generic results because it looks everywhere. It's normal that the same result gets a different score when you search only in a specific field than when you search on all fields. Moreover, the search suggest does (in XWiki 5.4) prefix matching by default. It appends * (star) automatically at the end of the typed text. The default search page doesn't do that. So there are two options: (1) type * at the end of your search text (i.e. explicitly tell the search engine that you want prefix matching) (2) modify the default search page to append the * automatically (but note that the search query supports a special query syntax which you can break by appending * blindly; the special query syntax is used by advanced users) Hope this helps, Marius On Thu, Apr 3, 2014 at 12:56 PM, Daniel Ebanja danieleba...@googlemail.com wrote: The actual problem is the result in the result in the standard search page. Am 03.04.2014 11:20 schrieb Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: Which search engine are you using? Solr, Lucene or Database? See http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchAdministration . Are you referring to the standard search page (e.g. http://extensions.xwiki.org/xwiki/bin/download/Extension/Solr+Search+Application/searchPage.png ) or to the Search Suggest ( http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchSuggest ) input from the top right corner? On Wed, Apr 2, 2014 at 11:26 PM, Daniel Ebanja danieleba...@googlemail.com wrote: -- Weitergeleitete Nachricht -- Von: Daniel Ebanja danieleba...@googlemail.com Datum: 02.04.2014 15:50 Betreff: Xwiki 5.4. Implicit Search An: Sergiu Dumitriu ser...@xwiki.org Cc: Hi Sergiu, i have this problem when I search. Searching for say, foot gives me only results where this word is explicitly found. I will like to have implicit results e.g footy, football i.e as if i had searched for foot*. Can this be configured in xwiki.cfg? Thanks in advance. Wish you a nice day. Daniel ___ 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 ___ 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 ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Fwd: Xwiki 5.4. Implicit Search
-- Weitergeleitete Nachricht -- Von: Daniel Ebanja danieleba...@googlemail.com Datum: 02.04.2014 15:50 Betreff: Xwiki 5.4. Implicit Search An: Sergiu Dumitriu ser...@xwiki.org Cc: Hi Sergiu, i have this problem when I search. Searching for say, foot gives me only results where this word is explicitly found. I will like to have implicit results e.g footy, football i.e as if i had searched for foot*. Can this be configured in xwiki.cfg? Thanks in advance. Wish you a nice day. Daniel ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Logout from Custom SSO Authentication
Hallo, i succeeded to implement an SSO Authentication for Xwiki using a configured URL with some parameter and the login is functioning well. The logout will not work if the passed parameter is still in the URL. To logout user must go after login to another page so that parameter is no more. I will appreciate any help. Thanks ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Fwd: Pdf and powerpoint
-- Weitergeleitete Nachricht -- Von: Daniel Ebanja danieleba...@googlemail.com Datum: 07.03.2014 10:46 Betreff: Pdf and powerpoint An: us...@wiki.org Cc: Hi, Have some problem with images. Images are sometimes displayed and sometimes not at there. Is there a particular format or a particular way to import images. Couldn't also import pdf and powerpoint documents. Thanks. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] (no subject)
Hi, i have some perfomance problems. It takes a while till xwiki's home page is loaded in my browser. Looking into the log gives me the following: Mar 07, 2014 3:06:14 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib Mar 07, 2014 3:06:15 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] Mar 07, 2014 3:06:15 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-bio-8020] Mar 07, 2014 3:06:15 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 730 ms Mar 07, 2014 3:06:15 PM org.apache.catalina.mbeans.JmxRemoteLifecycleListener createServer INFO: The JMX Remote Listener has configured the registry on port 9080 and the server on port 10080 for the Platform server Mar 07, 2014 3:06:15 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 07, 2014 3:06:15 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.47 Mar 07, 2014 3:06:15 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /srv/tomcat-xwiki/www/catalina-base/webapps/ROOT 2014-03-07 15:06:34,874 [localhost-startStop-1] WARN o.x.e.i.ServletEnvironment - No permanent directory configured. Using temporary directory [/srv/tomcat-xwiki/www/catalina-base/work/Catalina/localhost/_]. 2014-03-07 15:06:35,957 [localhost-startStop-1] INFO o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server... 2014-03-07 15:06:35,957 [localhost-startStop-1] INFO o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: /srv/tomcat-xwiki/www/catalina-base/work/Catalina/localhost/_/solr 2014-03-07 15:06:37,788 [localhost-startStop-1] WARN o.a.s.c.SolrCore - New index directory detected: old=null new=/srv/tomcat-xwiki/www/catalina-base/work/Catalina/localhost/_/solr/./data/index/ 2014-03-07 15:06:37,789 [localhost-startStop-1] WARN o.a.s.c.SolrCore - [xwiki] Solr index directory '/srv/tomcat-xwiki/www/catalina-base/work/Catalina/localhost/_/solr/./data/index' doesn't exist. Creating new index... 2014-03-07 15:06:38,648 [localhost-startStop-1] INFO o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server. Mar 07, 2014 3:06:39 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /srv/tomcat-xwiki/www/catalina-base/webapps/manager Mar 07, 2014 3:06:40 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler [http-bio-8080] Mar 07, 2014 3:06:40 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler [ajp-bio-8020] Mar 07, 2014 3:06:40 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 24842 ms 2014-03-07 15:07:25,793 [Lucene Index Updater] ERROR o.a.p.p.f.PDCIDFont- Error: Could not parse predefined CMAP file for 'Adobe-WinCharSet-UCS2' 2014-03-07 15:08:14,257 [XWiki Solr index thread] ERROR o.a.p.p.f.PDCIDFont- Error: Could not parse predefined CMAP file for 'Adobe-WinCharSet-UCS2' 2014-03-07 15:08:14,283 [XWiki Solr index thread] ERROR o.a.p.p.f.PDCIDFont- Error: Could not parse predefined CMAP file for 'Adobe-WinCharSet-UCS2' i just outlined my suspicions in blue. I will appreciate any help. Thanks. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Activity Stream
Hallo, is it possible to turn the activity Stream for users of. I want the admin only to see this. Thanks. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] SSO
Hallo xwiki-users, i have a webapplication from which i direct users to XWIKI through a link. The idea i have now is using basic Authentication: http:// username:passw...@mywiki.xwiki.com/xwiki/bin/view/Main/WebHome?basicauth=1 The problem here is i am using username:OID in the url above. I will like to customize the basic authentication such that i can use the OID to get userpassword from a database. Register the user in xwiki if it's the first time getting to xwiki and login if user already exist. The two apps are running in tomcat and on debian OS. I tried to write a java class(with eclipse on windows) extending the XWikiAuthServiceImpl class. Eclipse did not recognise the packages.Could i get the packages from somewhere? Is there a way to test an implementation? I archived the Java file to a jar and added it to WEB_INF/lib, But xwiki did not work. The jar file i added was not a proper jar file and caused everytthing to stop functioning. Thanks in advance for your help. -- Ebanja Daniel Informatikstudent der Hochschule Darmstadt Deutschland ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users