Re: [xwiki-users] Problems with Facebook like Button
Hi Richard I don't think it's a character encoding problem. Facebook creates many millions of these links each day. If there were an encoding problem the internet would be full of it. Furthermore, I ran into the same (I think) problem a few months ago. I found that xwiki claims all parameters starting in 'action_'. After finding the problem, Vincent was so kind as to point me to: In ActionFilter.java: ... if (parameter.startsWith(ACTION_PREFIX)) { … where: /** The query property name prefix that indicates the target action. */ private static final String ACTION_PREFIX = action_; This code is in a Filter. FTR here's its javadoc: * A filter that dispatches requests to the right action, depending on the button that was pressed in the editing form. * This is needed since the browser cannot send the form data to different URLs depending on the button pressed, and an * XHTML form has only one target URL. In previous versions of XWiki this was accomplished using javascript code, with a * fall-back on a pseudo-dispatcher inside the {@link PreviewAction}, which was on obvious case of bad code design. * /p * p * The filter dispatches requests based on the presence of a request parameter starting with ttaction_/tt followed * by the name of the struts action that should actually process the request. For example, the button that does * ttSave and Continue/tt looks like: * * pre * lt;input type=quot;submitquot; name=quot;action_saveandcontinuequot; value=quot;...quot;/gt; * /pre * * As a result, when clicking the button, the request is not sent to the form's target (ttpreview/tt), but is * actually forwarded internally to tt/bin/saveandcontinue/The/Document/tt. * /p You can find our solution for the problem on https://github.com/celements/celements-core/blob/dev/src/main/java/com/xpn/xwiki/web/ActionFilterFBHack.java(needsDispatch-90:99) Be aware that this is not a good (robust) solution, but a quick fix just for these Facebook links and there is no guarantee that sooner or later a similar problem will not pop up again. Hope this helps. Edo On Wed, Jan 22, 2014 at 2:43 PM, vinc...@massol.net vinc...@massol.netwrote: Hi Richard, Indeed, the { character needs to be escaped. check section 2.4.3 of the spec at http://www.ietf.org/rfc/rfc2396.txt, specifically: -- Other characters are excluded because gateways and other transport agents are known to sometimes modify such characters, or they are used as delimiters. unwise = { | } | | | \ | ^ | [ | ] | ` Data corresponding to excluded characters must be escaped in order to be properly represented within a URI. -- Thanks -Vincent On 22 Jan 2014 at 14:28:42, Richard Hierlmeier (rhierlme...@googlemail.com (mailto:rhierlme...@googlemail.com)) wrote: Hi Vincent, I get the following exception: java.net.URISyntaxException: Illegal character in query at index 160: http:// ???/bin/ref_map/Main/WebHome?fb_action_ids=22334241213413241fb_action_types=og.likesfb_source=feed_opengraphaction_object_map={%22334241213413241%22%3A211180592403908}action_type_map={%22334241213413241%22%3A%22og.likes%22}action_ref_map=[] at java.net.URI$Parser.fail(URI.java:2829) at java.net.URI$Parser.checkChars(URI.java:3002) at java.net.URI$Parser.parseHierarchical(URI.java:3092) at java.net.URI$Parser.parse(URI.java:3034) at It's the { character after action_type_map. Do I have a character encoding problem? The XWiki instance is running in tomcat behind a Apache http instance. It is connection via mod_proxy and ajp. Here is my Apache configuration: ProxyPreserveHost On ProxyPass / ajp://localhost:9080/ ProxyPassReverse / http://???/ Here ist the ajp connector configuration from server.conf maxThreads=20 URIEncoding=UTF-8/ Thank you Richard Am 22.01.2014 13:54, schrieb Vincent Massol: Hi Richard, On 21 Jan 2014, at 21:07, Richard Hierlmeier wrote: I have a Facebook like Button on my xwiki instance. When clicking on the button in facebook the following link is created: http:// /bin/view/Main/Sample?fb_action_ids=22334241213413241fb_action_types=og.likesfb_source=feed_opengraphaction_object_map={%22334241213413241%22%3A211180592403908}action_type_map={%22334241213413241%22%3A%22og.likes%22}action_ref_map=[] However XWiki can not handle this link correctly. When clicking on it I get the following error message (it's in german language): Hinweis Während der Verarbeitung Ihrer Anfrage trat ein Problem auf. Bitte verständigen Sie den Webmaster, falls der Fehler erneut auftritt. How can I solve this problem? I don’t see any reason why XWiki would care about anything put after the ? unless it contains a parameter that xwiki uses (like “rev”). What error do you get in the xwiki logs? Thanks -Vincent
[xwiki-users] Problem with action_xyz parameter in URL
Hi I have a problem with a URL containing a parameter of the form action_...=... The page does not load with this parameter. For an example see the xwiki.org start page ( http://www.xwiki.org/xwiki/bin/view/Main/WebHome?action_xyz). The parameter action_... seems to be used for something, but I couldn't find anything on what exactly and on how I can work around that. Unfortunately this URL is created by an external source (Facebook), so I can't change it. Can somebody point me in the right direction? Thanks, Edo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem with action_xyz parameter in URL
Thank you Vincent Since I was not sure if this comes from XWiki or somewhere below I forgot the obvious solution - to search the source. On Mon, Sep 30, 2013 at 3:17 PM, Vincent Massol vinc...@massol.net wrote: Hi, On Sep 30, 2013, at 3:06 PM, Edo Beutler ebeut...@synventis.com wrote: Hi I have a problem with a URL containing a parameter of the form action_...=... The page does not load with this parameter. For an example see the xwiki.org start page ( http://www.xwiki.org/xwiki/bin/view/Main/WebHome?action_xyz). The parameter action_... seems to be used for something, but I couldn't find anything on what exactly and on how I can work around that. Unfortunately this URL is created by an external source (Facebook), so I can't change it. Can somebody point me in the right direction? I've just grepped the whole source code and I've found this: In ActionFilter.java: ... if (parameter.startsWith(ACTION_PREFIX)) { … where: /** The query property name prefix that indicates the target action. */ private static final String ACTION_PREFIX = action_; This code is in a Filter. FTR here's its javadoc: * A filter that dispatches requests to the right action, depending on the button that was pressed in the editing form. * This is needed since the browser cannot send the form data to different URLs depending on the button pressed, and an * XHTML form has only one target URL. In previous versions of XWiki this was accomplished using javascript code, with a * fall-back on a pseudo-dispatcher inside the {@link PreviewAction}, which was on obvious case of bad code design. * /p * p * The filter dispatches requests based on the presence of a request parameter starting with ttaction_/tt followed * by the name of the struts action that should actually process the request. For example, the button that does * ttSave and Continue/tt looks like: * * pre * lt;input type=quot;submitquot; name=quot;action_saveandcontinuequot; value=quot;...quot;/gt; * /pre * * As a result, when clicking the button, the request is not sent to the form's target (ttpreview/tt), but is * actually forwarded internally to tt/bin/saveandcontinue/The/Document/tt. * /p Hope it helps, -Vincent ___ 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] XWQL query on several objects of the same class instantiated in the same doc
Hi Ricardo You are only checking in one object. So there has to be one object that contains the doc name, but not the withdrawal part which is fulfilled by the third object in your example. Whilst I don't recall ever having tried checking for multiple objects in XWQL, I would suspect this should work: #set ($xwlquery1 = from doc.object(XWiki.XWikiComments) as comm1, doc.object(XWiki.XWikiComments) as comm2 where doc.translation = 0 and comm1.comment like '%$doc.title%' and comm2.comment not like '%Withdrawal:2011%') Hope this helps Edo On Wed, May 22, 2013 at 2:57 AM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Hi!, I'm really impressed, again, with the performance and easiness of XWQL. Even though I'm using an old XWiki release, I'm able to follow almost all examples provided at... http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module But I'm not able to figure out how to solve one problem: I would like to retrieve documents (and read their properties) based on a combination of values of comments objects. That is: I only want to retrieve a document when a combination of values stored in comments happens. I've tried this... #set ($xwlquery1 = from doc.object(XWiki.XWikiComments) as comm where doc.translation = 0 and comm.comment like '%$doc.title%' and comm.comment not like '%Withdrawal:2011%') But this query retrieve also, for instance, this document holding three comments: Ricardo Rodríguez Fernández, 2012/06/15 07:49 Reply Edit Delete Gender:male Yolanda Liste Martínez, 2012/06/15 09:18 Reply Delete Withdrawal:20111231 Ricardo Rodríguez Fernández, 2013/05/21 13:24 Reply Edit Delete Formely:XWiki.XWikiIDISE001 I'm not able to find a way of not to retrieve this document while all others with comm.comment like '%$doc.title%'. Please, could anybody help me with this issue? Thank you so much for your help, Ricardo -- Ricardo Rodríguez Research Management and Promotion Technician Technical Secretariat Health Research Institute of Santiago de Compostela (IDIS) http://www.idisantiago.es Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ 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] XWQL query on several objects of the same class instantiated in the same doc
Hi Ricardo I just realised that the problem is, that there are more than two comments. So the query will find two comments that satisfies your ristrictions, even though there are more objects which do not. So e.g. comm1 and comm2 are both objects of the type XWD_ID:416379378 Gender: Withdrawal:20121017 Formely:XWiki.XWikiIDISE001 The solution is to write a query like this (unfortunately I can't tell you the exact XWQL syntax, I'm not even sure if this is possible in XWQL. So this is just pseudo code): and comm1.comment like '%$doc.title%' and 0=(select count(*) . where comm2.comment not like '%Withdrawal:2011%') I hope this is possible and you (or somebody else) knows or finds the exact syntax Edo On Wed, May 22, 2013 at 5:26 PM, ricardo.julio.rodriguez.fernan...@sergas.es wrote: Hi! Thanks you both for answering! I'm afraid that your proposals didn't solve the problem. Please, see here... http://www.idisantiago.es/bin/XWQL/SnapshotE0012012 Both users have three comments each. This way: XWD_ID:416379378 Gender: Withdrawal:20121017 Formely:XWiki.XWikiIDISE001 XWD_ID:946660794 Gender: Withdrawal:20111231 Formely:XWiki.XWikiIDISE001 Thus, I'm still not able to design a query to retrive ONLY user XWD_ID:416379378 based on comments :-( Your proposals answer with a list including both users n times. I'm not able neither of explain n in both cases... any idea will be welcome! Thank you very much for your help, Ricardo From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Guillaume Louis-Marie Delhumeau [gdelhum...@xwiki.com] Sent: 22 May 2013 13:02 To: XWiki Users Subject: Re: [xwiki-users] XWQL query on several objects of the same class instantiated in the same doc Hi Ricardo and Edo, 2013/5/22 Edo Beutler ebeut...@synventis.com Hi Ricardo You are only checking in one object. So there has to be one object that contains the doc name, but not the withdrawal part which is fulfilled by the third object in your example. Whilst I don't recall ever having tried checking for multiple objects in XWQL, I would suspect this should work: #set ($xwlquery1 = from doc.object(XWiki.XWikiComments) as comm1, doc.object(XWiki.XWikiComments) as comm2 where doc.translation = 0 and comm1.comment like '%$doc.title%' and comm2.comment not like '%Withdrawal:2011%') You are right. But I think you should add comm1 comm2 in your query to make it work. Louis-Marie ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ 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] XWQL query on several objects of the same class instantiated in the same doc
Ah ... exactly, NOT IN was what I was trying remember. So forget my count construct :) On Wed, May 22, 2013 at 5:51 PM, Guillaume Louis-Marie Delhumeau gdelhum...@xwiki.com wrote: Hi. I'm not sure I really understood what you need to do, but let me propose a solution anyway. I think what you need is to get the all the documents that contains comments with %doc.title% content and where there is NO comment with '%Withdrawal:2011% in the content. So, that's how I would solve the problem: #set ($xwlquery1 = FROM doc.object(XWiki. XWikiComments) AS commWHERE doc.translation = 0 AND and comm.comment LIKE :doctitle AND doc.fullName NOT IN (SELECT doc2.fullName FROM Document doc2, doc2.object(XWiki.XWikiComments) comm2 WHERE comm2.comment LIKE '%Withdrawal:2011%')) #set($results = $services.query.xwql($xwqlquery1).bindValue('doctitle', %${doc.title}%)) I didn't test it but it should work. Louis-Marie. 2013/5/22 ricardo.julio.rodriguez.fernan...@sergas.es Hi! Thanks you both for answering! I'm afraid that your proposals didn't solve the problem. Please, see here... http://www.idisantiago.es/bin/XWQL/SnapshotE0012012 Both users have three comments each. This way: XWD_ID:416379378 Gender: Withdrawal:20121017 Formely:XWiki.XWikiIDISE001 XWD_ID:946660794 Gender: Withdrawal:20111231 Formely:XWiki.XWikiIDISE001 Thus, I'm still not able to design a query to retrive ONLY user XWD_ID:416379378 based on comments :-( Your proposals answer with a list including both users n times. I'm not able neither of explain n in both cases... any idea will be welcome! Thank you very much for your help, Ricardo From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Guillaume Louis-Marie Delhumeau [gdelhum...@xwiki.com] Sent: 22 May 2013 13:02 To: XWiki Users Subject: Re: [xwiki-users] XWQL query on several objects of the same class instantiated in the same doc Hi Ricardo and Edo, 2013/5/22 Edo Beutler ebeut...@synventis.com Hi Ricardo You are only checking in one object. So there has to be one object that contains the doc name, but not the withdrawal part which is fulfilled by the third object in your example. Whilst I don't recall ever having tried checking for multiple objects in XWQL, I would suspect this should work: #set ($xwlquery1 = from doc.object(XWiki.XWikiComments) as comm1, doc.object(XWiki.XWikiComments) as comm2 where doc.translation = 0 and comm1.comment like '%$doc.title%' and comm2.comment not like '%Withdrawal:2011%') You are right. But I think you should add comm1 comm2 in your query to make it work. Louis-Marie ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm ___ 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] java.lang.ClassCastException: com.xpn.xwiki.doc.XWikiAttachment cannot be cast to com.xpn.xwiki.api.Attachment
Hi Valdis Looks to me as if you try to give a List of XWikiAttachments to a method expecting Attachments. The class Attachment is the API class of XWikiAttachment. So if you call getAttachmentList() on an XWikiDocument it returns a List of XWikiAttachments, but calling the same method on a Document returns a List of Attachments. Long story short: I suppose calling getAttachmentList() on the source Document instead of the XWikiDocument should solve your problem. I hope this helps Edo On Thu, Apr 25, 2013 at 4:31 PM, Valdis Vītoliņš valdis.vitol...@odo.lvwrote: I'm writing custom listener to send e-mail after document updates according to: http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorialand: http://xwiki.475771.n2.nabble.com/Send-an-email-in-an-event-listener-td7579175.html Although adding attachment is working in Velocity as described in: http://extensions.xwiki.org/xwiki/bin/view/Extension/Mail+Sender+Plugin Similar approach in Groovy raises exception: java.lang.ClassCastException: com.xpn.xwiki.doc.XWikiAttachment cannot be cast to com.xpn.xwiki.api.Attachment at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.createMimeMultipart(MailSenderPlugin.java:391) ~[xwiki-platform-mailsender-4.5.jar:na] at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.createMimeMessage(MailSenderPlugin.java:327) ~[xwiki-platform-mailsender-4.5.jar:na] at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMails(MailSenderPlugin.java:726) ~[xwiki-platform-mailsender-4.5.jar:na] at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlugin.java:673) ~[xwiki-platform-mailsender-4.5.jar:na] at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlugin.java:659) ~[xwiki-platform-mailsender-4.5.jar:na] at com.xpn.xwiki.plugin.mailsender.MailSenderPluginApi.sendMail(MailSenderPluginApi.java:171) [xwiki-platform-mailsender-4.5.jar:na] at com.xpn.xwiki.plugin.mailsender.MailSenderPluginApi.sendTextMessage(MailSenderPluginApi.java:98) [xwiki-platform-mailsender-4.5.jar:na] at com.xpn.xwiki.plugin.mailsender.MailSender $sendTextMessage.call(Unknown Source) [xwiki-platform-mailsender-4.5.jar:na] at EmailSenderListener.onEvent(Script22.groovy:34) [script:na] ... and line is: def attachments = source.getAttachmentList() What should I do? Thanks! Valdis ___ 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] Calc Macro
Hi Maxime I don't know about the Macro, but if you just want to average 3 numbers you could use the Velocity MathTool ( http://velocity.apache.org/tools/devel/generic/MathTool.html) which is available as $mathtool in XWiki. Hope this helps Edo On Tue, Apr 16, 2013 at 3:22 PM, Maxime Sinclair maxime.sincl...@gmail.comwrote: Hi XWiki users, I'm trying to use the Calc Macro http://extensions.xwiki.org/xwiki/bin/view/Extension/Calc+Macro but it doesn't seem to work out of the box. Is there someone who managed to fix it ? Or if you have an other way to compute dynamically the average of 3 numbers ? Thanks for your help. My wiki version is 3.5.1. Maxime ___ 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] How to update an object only if it change
Hi Arnaud I'm not sure, but I suspect you just flipped the if statement. Shouldn't the document be saved when diffs.size() != 0 instead? Everything else looks ok to me if I understood correctly what you try to do. if (diffs.size() *!=* 0) { println none } else { println Updated ticketDoc.save() } Hope this helps Edo On Mon, Mar 18, 2013 at 5:37 PM, Arnaud bourree arnaud.bour...@gmail.comwrote: Hello, I'm prototyping a connector to a ticket tracking tool: I'm writing a Groovy page which import CSV calls into XWiki. I map each CSV rows to one XWiki object store in one page (one object per page). OK, I succeed to to it. My issue is that imported CSV contains rows (tickets) which don't change since last import and I don't want to update page in this case. Thanks to getDiff() method on BaseObject, XWiki help me to find is ticket change or not. I write the following Groovy code: def http = new HTTPBuilder( 'https://stim.gemalto.com' ) http.parser.'text/csv' = { resp - return new CSVReader( new InputStreamReader( resp.entity.content, ParserRegistry.getCharset( resp ) ) ) } http.request( Method.GET, 'text/csv' ) { uri.path = myPath uri.query = myQuery // response handler for a success response code: response.success = { resp, csv - if (${resp.headers.'Content-Type'}.startsWith('text/csv')) { def names = [] def idIndex = 0 def cpt=0 // Find id column call IncidentNumber in my case csv.readNext().each { field - if (field.equals('IncidentNumber')) { idIndex = cpt; } names.add(field) cpt++; } println |=Incident Number|=action csv.readAll().each { line - def id = line[idIndex] def exists = xwiki.exists('myTicket.'+id) def ticketDoc = xwiki.getDocument('myTicket.'+id) def ticket = ticketDoc.newObject('myTicket.myTicketClass') for(i=0 ; inames.size() ; i++) { ticket.set(names[i], line[i]); } print |[[myTicket.+id+]]| if (!exists) { println Added ticketDoc.save() } else { def tickets=ticketDoc.getObjects('myTicket.myTicketClass') def oldTicket = tickets.size() != 0 ? tickets[0] : ticketDoc.newObject('myTicket.myTicketClass') def diffs=ticket.getBaseObject().getDiff(oldTicket.getBaseObject(), xwiki.context) if (diffs.size() != 0) { println none } else { println Updated ticketDoc.save() } } } } } // handler for any failure status code: response.failure = { resp - println Unexpected error: ${resp.status} : ${resp.statusLine.reasonPhrase} } } The issue in my code, is that I create and add a new ticket object on each update where I want to have only one. I could removed old ticket before save but in this case history diff may not compare two tickets as there have to different GUID. I could copy new ticket fields to old ticket Or may be there is simplest way to do it implemented else where in XWiki? What do you think? Regards, Arnaud. ___ 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] SSO via NTLM
Hi Thilo I'm a bit late to the party, but I have an addition: Around two years ago we implemented a solution using NTLM / SSO with AD using Jespa (http://www.ioplex.com/) for one of our customers. This solution worked pretty well. The downside of Jespa is, that it is a commercial product, thus it is neither free, nor open, but in my opinion the pricing is reasonable, considering AD is mostly used in larger companies. Hope this helps Edo On Wed, Sep 12, 2012 at 9:21 AM, Schmidt, Thilo (VZ) thilo.schm...@vdek.com wrote: Thanks for the reply and link. It just seems to me that running tomcat, apache, samba, kerberos and winbind on a machine just to run a wiki is a little much, especially considering that I'm new to this unix/server world ;) Of course I'll do that if there isn't another way, i just have a hard time believing that there's no simpler solution to a very basic problem. To clarify: I only need users to log in automatically to the wiki, Checking against the AD would be a bonus, but I could just create the wiki-accounts by hand, as well. Intimidated by this strange world, Thilo Hi Thilo, I worked a lot on this subject these two last days. But I only experimented Kerberos, and Samba/Winbind/NTLM. Why don't you want to install Samba? It's easier to make it work than a Kerberos system (from what I saw). You have to install Samba, configure it, install winbind, bind on a AD domain with an administrator, and finally configure Apache to use this auth. You also need to be sure that your java container won't try to authenticate itself. See: http://adldap.sourceforge.net/wiki/doku.php?id=seamless_authentication if you haven't found this before. I don't know any other solution without using samba or krb. Good luck! Guillaume Fenollar XWiki SAS 2012/9/11 Schmidt, Thilo (VZ) thilo.schm...@vdek.com Hello, I'm trying to get some kind of NTLM authentication going on my Debian server, but got lost very early. I find mentions of working NTLM solutions in the archives as well as some fixes for an ominous NTLM authenticator (XCONTRIB-84) in Jira. I even found some installation-guide in the sandbox, but there seems to be no jar file. Is there some kind of working NTLM solution without installing kerberos or samba? Thanks in advance, Thilo ___ 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] How to bind Xwiki to a given IP/port combination?
Hi Konstantin The port depends on the servlet container you are using, so you have to check in the documentation of your container. E.g. in Tomcat you can change the port in /conf/server.xml Hope this helps Edo On Thu, Apr 19, 2012 at 8:56 AM, Boyandin Konstantin d...@boyandin.name wrote: Hello, Could someone tell me how to start Xwiki so that it listen at a given IP address and port? The port is passed to the start script (I wish to use a standard 80), but how do I make it to listen at a specified IP only? Thanks. Sincerely, Konstantin ___ 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] Moderation / Comments Pages
Hi Kevin For pages you just have to set the rights accordingly: 'allow' 'view' and 'edit' for moderator and author. This implies every one else can't view the page. I think for comments it might be a bit trickier since they are saved in an object on the commented page. If nobody knows about an extention for that you might have to write one ;-) Hope this helps Edo On Fri, Mar 23, 2012 at 9:17 AM, Kevin Böhme k.boe...@gci.de wrote: Hi list, we're taking a look at xwiki right now and aren't able to find a way to moderate comments and new pages... Is there any module that makes this possible? The goal: Let users create comments and pages and just show them if the page is confirmed... BUT the author should be able to see this page and make more edits while the page isn't free to view by third party... Any ideas? -- Kevin Böhme k.boe...@gci.de ___ 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] How to make forgot Password link working?
Hi Mohit Since we use this feature for a long time and I don't remember how much there was in XWiki then and how much we had to develop ourselves I am not sure how XWiki does this in detail, but I think I can give you an idea of the general steps: 1. on clicking forgot password you are directed to a form where you can enter your username (we use the user's email as username and activation, thus we have a valid email address) 2. for the entered user you generate a validation key (like the one for account activation) and send a mail to the user's email address containing a link to a page with the validation key as parameter 3. when the user follows the link in the mail he gets taken to a page where he can change his password. Hope this clarifies at least the how will he login part of the question and I'm sure someone will correct me if XWiki does something completely different. Edo On Thu, Mar 15, 2012 at 6:05 PM, mohit gupta motgu...@gmail.com wrote: Hi Folks, On login page there is a link forgot username and forgot password. When i click nothing happens.Same page gets refreshed. I am not sure do we need to do any configuration to make it work? What i observed, first i clicked forgot password and then did the login. I an directly taken to reset password page. Where i click reset password, Again nothing happens? I am not sure what is the thinking behind this functianlity. If user forgets the password how he will do the login ?. 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] Fwd: How to set the max unsuccessful login attempts to some numbaer say 4?
Hi mohit If you posted the whole code the problem is that you do not save your changes. Changing the value of an object does change only the in memory representation of that object, but nothing on the database. You need to save the corresponding document to make changes to the database and make your changes permanent. Hope this helps Edo On Sat, Feb 25, 2012 at 2:38 PM, mohit gupta motgu...@gmail.com wrote: Hi Folks, Need help on below query. Thanks in advance. -- Forwarded message -- From: mohit gupta motgu...@gmail.com Date: Fri, Feb 24, 2012 at 9:57 AM Subject: How to set the max unsuccessful login attempts to some numbaer say 4? To: XWiki Users users@xwiki.org I had put this question earlier too but knowing that its not configurable in xwiki as of now as OOB feature. So started implementing this feature myself with some modification in code. I did modifications in checkPassword method of XWikiAuthServiceImpl. Basically i want to put the *passwordLockCount *as name and *1* as value in xwikiintegers table(when user tries any unsuccessful login attempt). For this i used the api i.e userObject.setIntValue(passwordLockCount, 1) where userObject is of type BaseObject. But it does not put the value in xwikiintegers table rather it put in cache. Please recommend me the right API the to put this number property in xwikiintegers table? *i also tried * NumberProperty passwordLockCount = new IntegerProperty(); passwordLockCount.setName(passwordLockCount); passwordLockCount.setValue(1); userObject.addField(passwordLockCount, passwordLockCount); But it also does not put the property in database? ___ 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] List of all users: names and avatars; edit profile pages
Hi Resi I think you will have to write your own script for that. First you get all users of your wiki. I don't know of an api call for that, so you could use $services.query.xwql(from doc.object(XWiki.XWikiUsers) as obj).execute() You could also add e.g. order by obj.last_name if you like to. The result is a list. Using #foreach you can display all the things you want for each user. The information about the specialities or responsibilities should be connected somehow to the users (maybe by using groups?). You could also consider adding additional fields to the XWiki.XWikiUsers class to reflect your specialities and responsibilities. How to display this information depends on how you save and connect them to the users. Hope this helps Edo On Thu, Feb 16, 2012 at 8:42 AM, Theresa Noisser theresa.nois...@web.de wrote: Hello, for our company intranet wiki i'd like to have a page where all coworkers are listed with their names and pictures. I found a velocity code to give out the useravatar (e.g. #largeUserAvatar('XWiki.username') ), but is there a way to automatically generate a page where all the users are listed with names and pictures (perhaps in 2 columns and with links to their profile pages)? I only found a way to list all editors or page creators. And second, i would like to add information to the profile pages of the coworkers, e.g. their specialities or responsibilities. How can i do that? Thanks in advance, resi. ___ 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] Configuration to enforce specific password policy in xwiki?
Hi Mohit Whilst, AFAIK, not possible by default it should not be to hard to write your own password change script or (better since testable) Java component. 1) Submit your password change form to your page where you can check all your specifications. Counting the failed logins is probably something you should do in your authentication method. 2) Belongs also to the authentication: if last change 30 days show your password change form 3) Create a class with a password(! - of course not plain text) field and on each password change you add also an object of this class to the user page. Then when changing a new password just check if there is an object with a password matching the new one. 4) maybe add a field 'locked' to the user class ... or just use the field 'active' and set locked users to inactive At least that's how I would approach it Edo On Wed, Feb 15, 2012 at 11:43 AM, mohit gupta motgu...@gmail.com wrote: Hi, I want to apply a specicific set of rules to password policy in xwiki so that that if any new user/existing user(in case he want to change the existing password) adhere to this policy. Some of the rules are like :- 1)Password should have following charectics A minimum password length of fourteen (12) characters Contain at least one alpha characters (a-z, A-Z). Contain at least one Upper Case Alpha character (A-Z). Contain at least one numeric character (0-9). Contain at least one “special” character, such as the following:~ ` ! @ # $ % ’ The maximum number of failed login attempts shall be set to 3. 2)Passwords are required to be changed every 30 days 3)A password history of last 13 passwords must be maintained so that new password is not among last 13 passwords 4)Where any user account has been locked out, admin should be subject to reset the password My first question is about point 1 . I can see one way to modify registration password matching regex at http://wikiURL/myWiki/bin/edit/XWiki/Registration?editor=wiki so that i can change default policy from 6 character to customized policy as per point 1. Is there any other way to from user interface ? Second point is i don't see any configuration setting to fulfil the requirements 2,3 and 4. Does xwiki support this kind of configuration too? ___ 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] Automatic Email Notification
Hi Alex I think you are looking for the Scheduler application http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Application or plugin http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Plugin The Scheduler allows you to automatically run a certain script. Combining this with the Send Page by Email you found should work as intended ... or you could write your own script to send an email of course. Hope this helps, Edo On Mon, Feb 6, 2012 at 11:19 AM, Alexander Adema alex_...@gmx.de wrote: Hey, i'm trying to create an automatic email notification, but the e-mail sending by using html is not realy helpful. There is a html fragment for email sending, but you have to push the send button in order to send the mail. Is it possible to create a class with a field 'status' that has something like 'in progress' and as long as this status is set, there is a daily, weekly email send to a list of users (list of groups in xwiki/property static list of users)??? There is a Send Page by email App but its also not automatic. I'm searching for an automatic email notification that uses the email of the users xwiki account. Thanks for your help!!! Greats Alex -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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] Automatic Email Notification
Hi Alex I don't know where you think it would be confusing. I think it should be pretty clear and straight forward. The solution I thought of is just one script that does the following (in pseudocode): foreach document where doc.status == 'in progress' { send mail; } Than register a job that executes this script once a day (or how often you need) and you should be fine. Regards, Edo On Mon, Feb 6, 2012 at 3:46 PM, Alexander Adema alex_...@gmx.de wrote: Hi Edo, thats would be a solution. I havent seen this plugin before. But i'm trying to put an automatic email notification in a class within the class sheet with a query that controls the status of an property. I think it would be better that this should be in the class on itself. The scheduler has a list with all jobs that has to be done. Maybe that would be a bit confusingly. But thanks really for your help. If there is no other way to put the notification in the class, i will take the scheduler for the email notification. :-) Greats Alex Original-Nachricht Datum: Mon, 6 Feb 2012 14:02:59 +0100 Von: Edo Beutler ebeut...@synventis.com An: XWiki Users users@xwiki.org Betreff: Re: [xwiki-users] Automatic Email Notification Hi Alex I think you are looking for the Scheduler application http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Application or plugin http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Plugin The Scheduler allows you to automatically run a certain script. Combining this with the Send Page by Email you found should work as intended ... or you could write your own script to send an email of course. Hope this helps, Edo On Mon, Feb 6, 2012 at 11:19 AM, Alexander Adema alex_...@gmx.de wrote: Hey, i'm trying to create an automatic email notification, but the e-mail sending by using html is not realy helpful. There is a html fragment for email sending, but you have to push the send button in order to send the mail. Is it possible to create a class with a field 'status' that has something like 'in progress' and as long as this status is set, there is a daily, weekly email send to a list of users (list of groups in xwiki/property static list of users)??? There is a Send Page by email App but its also not automatic. I'm searching for an automatic email notification that uses the email of the users xwiki account. Thanks for your help!!! Greats Alex -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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 -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ 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] How programming rights works in xwiki?
Hi Mohit As you cited from the doc with programming rights you are allowed to execute arbitrary java, but not modify it during runtime. An example for the use of programming rights would be if you create a page where an XWikiGuest user can save something without having edit rights on the page by using $doc.saveWithProgrammingRights(). In this example the script calling this method would need to be saved from a user with programming rights. Generally spoken, without programming rights you are only allowed to use Api classes and the mayor part of their methods. With programming rights you are allowed to use all methods of Api classes or even to get background classes (e.g. XWikiDocument instead of only the api class Document). Hope this clarifies how it works. Edo On Wed, Feb 1, 2012 at 12:12 PM, mohit gupta motgu...@gmail.com wrote: Below is the statement given at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Access+Rights A programmer is allowed to execute arbitrary java code in the wiki and can thus gain control of the system user which the wiki is running under. Could you give me some example how xwiki admin can modify existing java class. when it will be compile and deployed? Assume i want to add a new method in XWikiAuthServiceImpl.java . How should i go with this provided i am having programming rights.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] Creating unique serialised pagenames
Hi Joris I think there is no good solution in Velocity. I would do it in a Java component. If you do not want to write a component you could use Groovy alternatively. There you have the possibility of while. If it has to be Velocity you could write a DB query which gets you all your IssueXYZ documents. From those you can get the highest number and increment your result. Hope this helps Edo On Wed, Jan 11, 2012 at 3:36 PM, Joris Dirks jo...@user.stekje.nl wrote: One of the use cases I have for my wiki is storing 'issues', where each issue should have a serial number consisting of year + subsequent number. I was thinking about a script like this, but one of the problems is: there is no 'while' function in Velocity. How would you create a form for this? Thanks for your ideas! Joris #set($space=Issues} #set($template=AppSpace.IssueTemplate) #set($parent=$space.WebHome) #set($year= ${xwiki.formatDate($datetool.date, '')}) #set($partID=0 #set($genericID=$space.$year) #while($xwiki.exists($space.$issueID'') { #set($partID=$partID+1) #set($issueID=$year-$partID) } #if(!$xwiki.exists($issueID) $xwiki.hasAccessLevel('edit', $context.user, $issueID)) $response.sendRedirect($xwiki.getURL($ID, 'inline', template=$template}parent=$parent)) ## Stop processing, since we already sent a redirect. #stop #end ___ 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] Not able to send the mail to user||Not even getting the logs
Just guessing, but shouldn't 'scott' be an email address instead? On Thu, Jan 5, 2012 at 12:10 PM, mohit gupta motgu...@gmail.com wrote: Even i tried using my gmail id as per google smtp details given at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfiguringtheSMTPserver but same eror i.e The message could not be sent to scott: email server error. I am not getting where is the issue. On Thu, Jan 5, 2012 at 2:52 PM, mohit gupta motgu...@gmail.com wrote: i do not see anything to modify inside shareinline.vm.As per my understanding there should not be any need to modify the code. It should be some setting in configuration. On Thu, Jan 5, 2012 at 2:07 PM, Yang Li yang.lee.c...@gmail.com wrote: 于 2012/1/5 16:14, mohit gupta 写道: Hi All, I have done the configuration for email setup i.e given the smtp server,smtp port,smtp server username , smtp sever password (i believe last two parameters are my email id and password)but still i see below error The message could not be sent to scott: email server error. Even i can not see any logs generated for this email error under my tomcat directory. Thanks __**_ users mailing list users@xwiki.org http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users You may have to edit shareinline.vm to make sure the sender the same as your email account, from my experience __**_ users mailing list users@xwiki.org http://lists.xwiki.org/**mailman/listinfo/usershttp://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] Find the email of a user
Hi Stéphanie If I understand correctly you just have to replace $context.user in Guillaume's code snippet with $doc.getCreator() The document creator field contains the document's full name of the creating user. Hope this helps Edo 2012/1/3 Stéphanie stephanie.roull...@gmail.com: Thank you for your response, but in fact it's a bit more difficult I think. Because, I working on a form. When someone wants to complete this form, he has to click on a button that creates a new page and every form/pages are created with a default sheet. So for each new form created, I want to have the email address on the bottom of this page (I created a hidden part just for the administrators). So, I just want to get the email of each creator of a page. -- View this message in context: http://xwiki.475771.n2.nabble.com/Find-the-email-of-a-user-tp7146566p7146724.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Locked out :(
On Wed, Dec 21, 2011 at 4:02 PM, Paul Libbrecht p...@hoplahup.net wrote: there used to be a superadmin setting in xwiki.cfg which is commented out by default. In MySQL, you'd have to find the right record for the value of the admin's password. And in MySQL the password is saved as a hash, so you would have to encode your new password correctly to replace the old one ... I'd stick to the superuser, it's much simpler. paul Le 21 déc. 2011 à 15:21, Kjartan Hauksson a écrit : So, I managed to lock myself out of my xwiki site. Is there a way I can reset the rights in mysql ? Regards -Kjartan ___ 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] Integration of my webapplication with xwiki.
Hi Mohit I am not sure I completely understand what your intention is. But as I understand it, two solutions come to mind: 1. If it is an intranet application in an organisation you could think about using LDAP and SSO (xwiki external), which would not exactly match your example, but can remove the need to login separately. 2. A virtual wiki environment (would probably be used also for 1.) with all the users on the main wiki. And the xwiki internal SSO activated. So you could create your two applications in separate virtual wikis and logging in to one would also log you in to the other application. Hope this helps Edo On Fri, Dec 2, 2011 at 11:31 AM, mohit gupta motgu...@gmail.com wrote: i have my banking webapplication on tomcat. i want to host my application help on xwiki which will sit on another server(probably xwiki will be having its on app server). Basically what i have to do is i want to provide a link on my banking application on click of which i want to take it to wiki help(help shoud not ask any credentialsat http://platform.xwiki.org/xwiki/bin/view/DevGuide/WebHome) though it should ask for credential if i hit my xwiki URL directly.i am not getting how to start it?i have gone thru xwiki devguide but could not get much out of it. It would be great if somebody can give me heads up how can i can i start it at high level, it would be a great help. As xwiki site states many tools to download like manager,enterprise,platform. which tool one i shoud start with and what should be the starting point in that? i want to give the users to modify the wiki page on the basis of roles in my banking application. So my application and xwiki has to interact a lot. looking for how we can proceed for this. My application is using struts 2. Another question i have is once i dowload xwiki enterprsise, should i host in seperate tomcat or downloaded xwiki application will have its own webserver. Its really urgent for me. Looking for quick reply Thanks in advance Mohit GUpta ___ 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] Integration of my webapplication with xwiki.
Hi Mohit I think I understood now what you try to do. So App 1 is not an XWiki, and only App 2 is XWiki. In that case I think you will have to write your own authenticator. Since I never had the need to do that I can't tell you how, just point you to the XWiki documentation on authentication. There you can find also a chapter on custom authentications. http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication I hope you can find what you need there Edo On Fri, Dec 2, 2011 at 4:53 PM, mohit gupta motgu...@gmail.com wrote: Thanks Edo for quick reply. its not an intranet application. Let me explain what my intention is i have a full fledged banking web application (say App1) developed in java using struts 2 hosted on tomcat. Now i am planning to develop a different web application (App2) help content for my App1. For this i downloaded xwiki enterprise. Looks like xwiki is hosted on jetty webserver. Right? Now i want to introduce a hyperlink on some jsp page on App1 which will take me to my xwiki help application i.e App2.I am assuming right now App2 will ask me some user credentials i.e username and password. Right? so what i want to to do here is when i click on hyperlink it should take me to some servlet lying in App2 with some userid . Then with this user id App2(i.e xwiki application) again talks to some servlet lying on App1(i.e my banking application) which checks whether user exist in database or not . if yes it gives green signal to servlet in xwiki application(App2) and it shows the home page of wiki help otherwise throw some exception. Above is the crux of work what i am planning to do. What i want to know What are xwiki modules and tools i need to download? Which xwiki java classes and servlets i need to explore so that i can proceed in right direction? how my banking webapplication and newly developed xwiki application will interact each other? Can i host xwiki application on tomcat instead of jetty webserver which seeems to be default server where xwiki application will be hosted? How will i get the source code of xwiki application? which specific developer guide/'topic i need to go thru in detail . Though i went thru developer guide on xwiki site but could not get much out of it. I am in urgent need of this so that i can start upon at earliest.Thanks in Advance. On 12/2/11, Edo Beutler ebeut...@synventis.com wrote: Hi Mohit I am not sure I completely understand what your intention is. But as I understand it, two solutions come to mind: 1. If it is an intranet application in an organisation you could think about using LDAP and SSO (xwiki external), which would not exactly match your example, but can remove the need to login separately. 2. A virtual wiki environment (would probably be used also for 1.) with all the users on the main wiki. And the xwiki internal SSO activated. So you could create your two applications in separate virtual wikis and logging in to one would also log you in to the other application. Hope this helps Edo On Fri, Dec 2, 2011 at 11:31 AM, mohit gupta motgu...@gmail.com wrote: i have my banking webapplication on tomcat. i want to host my application help on xwiki which will sit on another server(probably xwiki will be having its on app server). Basically what i have to do is i want to provide a link on my banking application on click of which i want to take it to wiki help(help shoud not ask any credentialsat http://platform.xwiki.org/xwiki/bin/view/DevGuide/WebHome) though it should ask for credential if i hit my xwiki URL directly.i am not getting how to start it?i have gone thru xwiki devguide but could not get much out of it. It would be great if somebody can give me heads up how can i can i start it at high level, it would be a great help. As xwiki site states many tools to download like manager,enterprise,platform. which tool one i shoud start with and what should be the starting point in that? i want to give the users to modify the wiki page on the basis of roles in my banking application. So my application and xwiki has to interact a lot. looking for how we can proceed for this. My application is using struts 2. Another question i have is once i dowload xwiki enterprsise, should i host in seperate tomcat or downloaded xwiki application will have its own webserver. Its really urgent for me. Looking for quick reply Thanks in advance Mohit GUpta ___ 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] How to automatically send email when a user is created?
Hi Adrian I do not know the application, but usually in XWiki it is as simple as changing the rights on the page. I suppose just restricting 'view' rights on the invitation page to the users / groups you want should do the trick. Hope this helps Edo On Thu, Nov 24, 2011 at 12:32 PM, Adrian Fita adrian.f...@gmail.com wrote: Yes, this could be a solution, thank you. Can I restrict what users/groups can send invitations? -- Fita Adrian On Wed, Nov 23, 2011 at 20:07, Ecaterina Moraru (Valica) vali...@gmail.com wrote: Invitation Application is somehow related, but not quite http://extensions.xwiki.org/xwiki/bin/view/Extension/Invitation+Application Thanks, Caty On Wed, Nov 23, 2011 at 16:55, Adrian Fita adrian.f...@gmail.com wrote: Hi. I have configured a private wiki in which the reigstration is disabled so that only an admin user can register new users. How can I configure xwiki to automatically send an email with connection details, username and password to the new registered user's email address? -- Fita Adrian ___ 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] Activity performance is slow
Hi My first guess would have been also the indices. Since you checked those I would try to activate MySQL's slow query log and try to identify if it is a certain DB query that takes so long. Hope this helps Edo On Fri, Nov 4, 2011 at 9:31 AM, Yang Li yang.lee.c...@gmail.com wrote: Yes, I have installed that extension and checked the index page. Besides, I read in the XE3.2 release notes that Further performance enhancements for default installations come from the fact that the proper indexes needed for efficient database access are now auto-created at startup, eliminating the need for manual configuration. I also tried not to follow anyone, but my profile is still slow to load. However, some test users' profile pages are indeed a little bit faster and I guess the reason is that they just don't have many activities at all... 于 2011/11/4 15:38, Ludovic Dubost 写道: Have you checked the creation of database indexes ( the admin tools extension might help ) Ludovic Envoyé de mon iPhone Le 4 nov. 2011 à 08:31, Roman Muntyanurmunt...@softserveinc.com a écrit : +1 (Experience the same) -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Yang Li Sent: Friday, November 04, 2011 08:56 AM To: XWiki Users Subject: [xwiki-users] Activity performance is slow Hi all, I have XE3.2 installed on an Win2003 Server within an intranet (Tomcat+MySQL, both latest versions), the hardware is good and enough memory for the jvm. However, I found pages with activity (like the dashboard and user profile pages) are very slow to load, usually 6-10 seconds, whereas the other pages can be lowed with 2 seconds (satisfied). Little has been found when I searched the Internet inlcluding the mailing list archive. Is it normal or abnormal? Are there any profiling tools to identify the time-consuming part? Any suggestions are welcome! ___ 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] Buttons when creating a new page
Hi Stéphanie The two solutions that come to mind are: 1. Hide the buttons you don't want to see using CSS. 2. Remove them in the template. Possibly there are some other solutions (e.g. write your own template if you don't want the same behavior for all pages), but I think the CSS would be the quickest ... aside from any possible configuration I don't know of ... Hope this helps Edo 2011/10/26 Stéphanie stephanie.roull...@gmail.com: Hello, When I create a new page, there are four buttons on the bottom of my page : - PREVIEW - SAVE CONTINUE - SAVE VIEW - CANCEL Is there a possibility to don't see some of these buttons ? For example, I just want to see buttons SAVE VIEW and CANCEL. Thank you for your response. Best regards, Stéphanie -- View this message in context: http://xwiki.475771.n2.nabble.com/Buttons-when-creating-a-new-page-tp6931861p6931861.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] polls and rights
Hi Olaf Sounds like the non-admin user saves the page which needs programming rights - which removes the programming rights and saveWithProgrammingRights will result in an access denied. If you try with an admin user the page gets programming rights and it works. If I understand correctly you have these three lines in each page - which leads to each page needing programming rights. I think it might work if you put this code snippet in a separate page, saved by the admin, and just include it in the template. Cheers, Edo On Sat, Sep 17, 2011 at 6:14 PM, O Voss richyfourtyth...@yahoo.com wrote: Hi again, Now I tried to do this with templates. I have the following code in a class sheet: #set($sDoc = $xwiki.getDocument('MediaRating.Test')) #set($dummy = $sDoc.setContent($doc.getName())) #set($dummy = $sDoc.saveWithProgrammingRights()) What it should do is this: Each time a page that is based on the template is diplayed the name of that page is writen to the content of the page 'MediaRating.Test'. (In the following when I speak of 'creating a page' I always mean 'creating a page based on a template with the sheet containing the code above'.) I wrote the class, the sheet etc. all with an admin user. When I first tested with the same admin user, it worked fine. When I switched to a normal user and displayed the page that had been created by the admin user it still worked. But when I created a new page with the normal user I get an error: Failed to execute the [velocity] macro The probably most important line in the stack trace: Caused by: com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access denied with no programming rights document MediaRating.Test What is most irritating is this: After switching back to an admin user I get the same error when creating new pages with this user too. It somehow looks as if the template has become 'dirty' by being touched from a normal user. Any hints? Cheers, Olaf Von: O Voss richyfourtyth...@yahoo.com An: XWiki Users users@xwiki.org Gesendet: 19:03 Dienstag, 13.September 2011 Betreff: Re: [xwiki-users] polls and rights Thanks! I thought I had tried that before, but I must have mixed that test with other things before. Now it worked indeed in a small hello world test I just did. I'll have to see if I also manage to get it working in templates and on automatically generated documents. But you've surely sent me in the right direction! Cheers, Olaf Von: Edo Beutler ebeut...@synventis.com An: O Voss richyfourtyth...@yahoo.com; XWiki Users users@xwiki.org Gesendet: 14:01 Montag, 12.September 2011 Betreff: Re: [xwiki-users] polls and rights Hi, Unfortunately I never used the polls application, so I don't know what it does / how it works. However I hope I can point you in the right direction. If a document is editable by XWikiGuest (anyone) anyone can change it, so yes, manipulation would be possible. I think what you are looking for are 'programming' rights. The script saving the vote needs to be saved from a user with programming rights. The document to which you attach the poll votes can than be saved using the method saveWithProgrammingRights() on the Document API. This allows you to let XWikiGuest users attach objects to a document they are not allowed to edit. Hope this helps Edo On Sat, Sep 10, 2011 at 12:55 PM, O Voss richyfourtyth...@yahoo.com wrote: Hi, I'm planning to do the following: Each document based on a certain template autmatically gets it's own standard poll. (No customisation.) Each user visiting the page can vote. Having looked at the polls application and played around with templates a bit, I think I know all the ingredients I will need. I have one problem though: Anyone who votes needs write permissions on the document that saves the votes (whereever that may be). If I'm not mistaken that means anyone who can vote theoretically can manipulate voting data by accessing these objects directly. Is there any way to secure this against manipulation a) from users who can vote? b) from the user who created the page? Probably that question is equivalent to: Is there a way to let users save changes on an object only via a script while hindering that very same user from editing it directly? Any hints are greatly appreciated! ___ 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] polls and rights
Hi, Unfortunately I never used the polls application, so I don't know what it does / how it works. However I hope I can point you in the right direction. If a document is editable by XWikiGuest (anyone) anyone can change it, so yes, manipulation would be possible. I think what you are looking for are 'programming' rights. The script saving the vote needs to be saved from a user with programming rights. The document to which you attach the poll votes can than be saved using the method saveWithProgrammingRights() on the Document API. This allows you to let XWikiGuest users attach objects to a document they are not allowed to edit. Hope this helps Edo On Sat, Sep 10, 2011 at 12:55 PM, O Voss richyfourtyth...@yahoo.com wrote: Hi, I'm planning to do the following: Each document based on a certain template autmatically gets it's own standard poll. (No customisation.) Each user visiting the page can vote. Having looked at the polls application and played around with templates a bit, I think I know all the ingredients I will need. I have one problem though: Anyone who votes needs write permissions on the document that saves the votes (whereever that may be). If I'm not mistaken that means anyone who can vote theoretically can manipulate voting data by accessing these objects directly. Is there any way to secure this against manipulation a) from users who can vote? b) from the user who created the page? Probably that question is equivalent to: Is there a way to let users save changes on an object only via a script while hindering that very same user from editing it directly? Any hints are greatly appreciated! ___ 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] Setting the date property
Hi Martin I can't check right now, but I'm pretty sure that there is no set(field, value) method on BaseObject. If I recall correctly this is the API Object's method. Try using setDateValue(field, value) instead. Hope this helps Edo On Tue, Aug 2, 2011 at 9:37 PM, Martin Evans webs...@studenthubs.org wrote: Does anyone know why this code doesn't run? It runs if I comment out the line on which I have typed // The result of df.parse is a Date object and the property Active is of the date type. {{groovy}} def obj = doc.getDocument().getObject(Events.EventClass) def df = new java.text.SimpleDateFormat(-MM-dd) obj.set(Active,df.parse(2001-02-03)) // {{/groovy}} Thanks, Martin ___ 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] Approval process for user edits?
Hi John, Since we program such functionalities in Java components and not in scripts I cant give you details on how to do it in Groovy, but I hope I can explain Guillaume's idea of the script. I think his idea was the following: Register a listener to the save action. Doing this, your script / method will always be called when a document gets saved. When that happens you check for the saved document the field on your ApprovalStatusClass and change the view rights on the document accordingly if a change happened. So, if the reviewer checked a document and changes the status to approved you change the view rights of this document. I hope this clarifies Guillaume's idea a bit ... and I understood the idea correctly ;-) Edo On Wed, Aug 3, 2011 at 9:20 PM, Campbell, John john.campb...@viasat.com wrote: Hi Guillaume, I understand some of the concepts to which you're referring, but I'm more of a writer/content guy, so my understanding of the code/scripting is very limited. I'll try to follow along. I've created a class called ApprovalStatus and made it a static list with the following values: in review|approved|rejected. I created the ApprovalStatusClass Sheet and ApprovalStatusClass Template, as well. Here are some things I would like to be able to do with this class. Can you tell me if these are feasible? 1. Attach the class to the process document template I have already created that users will use when they create new pages. 2. Have the class default to the in review value. 3. Make this element invisible to the Users group, but visible and editable to the Supervisors group (for example, a Supervisor would be able to review a page that is in review, and then if it is acceptable, change the status to approved). I'm not sure I completely follow what you're talking about with the script section of your comment. But I would love to learn more. Can you elaborate a bit more, please? Thanks, John -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Guillaume Lerouge Sent: Wednesday, August 03, 2011 2:55 AM To: XWiki Users Subject: Re: [xwiki-users] Approval process for user edits? Hi John, - Create a process class with a validation status (under review, validated...) [1] - Create a groovy script that listens for changes of the value of the status property and updates a XWikiRights object attached to the page based on the value of the validation status property [2] - - when the status changes, the script will apply appropriate rights to the page - - you can list only validated on the homepage of one of your Hope this helps, Guillaume [1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+Using+Groovy On Tue, Aug 2, 2011 at 8:07 PM, Dale Amon a...@vnl.com wrote: On Tue, Aug 02, 2011 at 05:45:09PM +, Campbell, John wrote: Hello again, XWiki community. I am working on using XWiki to be the repository for a library of process documents that will be added to and updated on a constant basis by members of our team. It looks like it's going to be a great resource for us. However, I do have a question that involves rights and permissions. Our manager wants to incorporate an approval process in the process document wiki. She wants users to be able to edit existing process documents and create new process documents, but for those documents to go through a technical/style review by supervisors before they are published for use by the team. I don't see a way to manage permissions/rights to make that idea work for the wiki as a whole, though I can see a workaround for new process documents (force them to be created in a Review space). Is there a way to make user edits go through a review process before they can be published/go live? I realize that this goes against the basic concept of a wiki in some ways, and I explained to our manager that we have version rollback capability, but she wants these controls in place prior to publishing. Can anyone offer some guidance? ___ 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