Re: [xwiki-users] Problems with Facebook like Button

2014-01-23 Thread Edo Beutler
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

[xwiki-users] Problem with action_xyz parameter in URL

2013-09-30 Thread Edo Beutler
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

Re: [xwiki-users] Problem with action_xyz parameter in URL

2013-09-30 Thread Edo Beutler
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

Re: [xwiki-users] XWQL query on several objects of the same class instantiated in the same doc

2013-05-22 Thread Edo Beutler
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

Re: [xwiki-users] XWQL query on several objects of the same class instantiated in the same doc

2013-05-22 Thread Edo Beutler
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

Re: [xwiki-users] XWQL query on several objects of the same class instantiated in the same doc

2013-05-22 Thread Edo Beutler
-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

Re: [xwiki-users] java.lang.ClassCastException: com.xpn.xwiki.doc.XWikiAttachment cannot be cast to com.xpn.xwiki.api.Attachment

2013-04-25 Thread Edo Beutler
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

Re: [xwiki-users] Calc Macro

2013-04-16 Thread Edo Beutler
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

Re: [xwiki-users] How to update an object only if it change

2013-03-18 Thread Edo Beutler
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

Re: [xwiki-users] SSO via NTLM

2012-10-09 Thread Edo Beutler
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

Re: [xwiki-users] How to bind Xwiki to a given IP/port combination?

2012-04-19 Thread Edo Beutler
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:

Re: [xwiki-users] Moderation / Comments Pages

2012-03-23 Thread Edo Beutler
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

Re: [xwiki-users] How to make forgot Password link working?

2012-03-15 Thread Edo Beutler
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

Re: [xwiki-users] Fwd: How to set the max unsuccessful login attempts to some numbaer say 4?

2012-03-06 Thread Edo Beutler
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

Re: [xwiki-users] List of all users: names and avatars; edit profile pages

2012-02-16 Thread Edo Beutler
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

Re: [xwiki-users] Configuration to enforce specific password policy in xwiki?

2012-02-15 Thread Edo Beutler
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

Re: [xwiki-users] Automatic Email Notification

2012-02-06 Thread Edo Beutler
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

Re: [xwiki-users] Automatic Email Notification

2012-02-06 Thread Edo Beutler
. 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

Re: [xwiki-users] How programming rights works in xwiki?

2012-02-01 Thread Edo Beutler
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

Re: [xwiki-users] Creating unique serialised pagenames

2012-01-11 Thread Edo Beutler
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

Re: [xwiki-users] Not able to send the mail to user||Not even getting the logs

2012-01-05 Thread Edo Beutler
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

Re: [xwiki-users] Find the email of a user

2012-01-03 Thread Edo Beutler
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

Re: [xwiki-users] Locked out :(

2011-12-21 Thread Edo Beutler
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

Re: [xwiki-users] Integration of my webapplication with xwiki.

2011-12-02 Thread Edo Beutler
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

Re: [xwiki-users] Integration of my webapplication with xwiki.

2011-12-02 Thread Edo Beutler
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

Re: [xwiki-users] How to automatically send email when a user is created?

2011-11-24 Thread Edo Beutler
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

Re: [xwiki-users] Activity performance is slow

2011-11-04 Thread Edo Beutler
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

Re: [xwiki-users] Buttons when creating a new page

2011-10-26 Thread Edo Beutler
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

Re: [xwiki-users] polls and rights

2011-09-19 Thread Edo Beutler
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

Re: [xwiki-users] polls and rights

2011-09-12 Thread Edo Beutler
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

Re: [xwiki-users] Setting the date property

2011-08-05 Thread Edo Beutler
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

Re: [xwiki-users] Approval process for user edits?

2011-08-04 Thread Edo Beutler
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 /