IRC Archive for channel #xwiki on 21 May 2013

Last modified by Vincent Massol on 2013/05/21 23:59

<xwikibot> has joined #xwiki
09:25 <vmassol> (restarted irc bot)
09:34 <gdelhumeau> has joined #xwiki
09:37 <gihanchanukak> has joined #xwiki
09:41 <Denis1> has joined #xwiki
09:41 <Denis1> is now known as <Denis>
09:45 <gihanchanukak> has quit
10:00 <gihanchanukak> has joined #xwiki
10:55 <sburjan> Hello. I have a question. In a velocity script, I use "$util.parseInt", but I get console infos that this is deprecated. What should I use instead ?
11:23 <tdelafosse> has joined #xwiki
11:28 <vmassol> sburjan: http://velocity.apache.org/tools/devel/generic/MathTool.html
11:28 <vmassol> (if you need it, you might not even need anything)
11:29 <vmassol> hmm not the right tool I think, checking
11:30 <vmassol> NumberTool, checking if we have it
11:30 <vmassol> yep we have it
11:31 <vmassol> $number.integer($myNumber)  -> 13
11:31 <vmassol> ah no, the opposite ;)
11:31 <vmassol> toNumber
11:32 <gdelhumeau> has quit
11:32 <vmassol> ah found a better solution
11:33 <vmassol> http://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/ConversionTool.html
11:33 <vmassol> but it seems we don't have it, we should
11:35 <sburjan> vmassol: thanks, I will use $mathtool.toInteger
11:35 <sburjan> I don't see toNumber method
11:35 <vmassol> indeed that works
11:35 <vmassol> toNumber is in numbertool
11:36 <vmassol> but mathtool.toInteger is better for your use case
11:37 <vmassol> to get ConversionTool I think we need to ugrade to tools 2.0: http://jira.xwiki.org/browse/XWIKI-5347#
11:41 <sburjan> vmassol: indeed, no more warnings.
11:41 <sburjan> thanks ! :)
11:43 <mflorea> vmassol: wiki syntax is a PITA to use when you want to protect against user input because there's no way to escape wiki syntax, at least not an easy way. I started replacing HTML with wiki syntax in the sorl search UI but soon I discovered it's a pain to handle unsafe user input. Now I'm tempted to move back to HTML.
11:44 <vmassol> mflorea: yeah, I think we agreed to add a method to escape wiki syntax in the escapetool
11:44 <vmassol> and even as a SS
11:44 <vmassol> don't remember the details though
11:44 <vmassol> we do want to get rid of using the html macro though indeed
11:45 <vmassol> (but we're missing some tooling, like a form macro, etc)
11:45 <mflorea> in order to achieve this we need (1) some way to create form using wiki syntax and (2) ability to escape wiki syntax
11:45 <mflorea> yep
11:51 <sburjan> havin a xwiki form macro would be SO cool
12:43 <gihanchanukak> has quit
12:45 <gihanchanukak> has joined #xwiki
12:51 <huhongbo> has quit
12:57 <mflorea> has quit
13:19 <vmassol> sdumitriu: ping
13:21 <vmassol> sdumitriu: would be nice to revert jenkins, do you have time to do it?
13:22 <sdumitriu> Hi vmassol
13:22 <sdumitriu> Yes
13:24 <gdelhumeau> has joined #xwiki
13:24 <vmassol> ok cool, let me know if you need hlep
13:24 <vmassol> *help
13:32 <vmassol> so guys
13:33 <vmassol> we have plenty of releases to do this week
13:33 <vmassol> 4.5.4 and 5.0.2
13:33 <vmassol> any volunteers?
13:33 <sdumitriu> I can do 4.5.4
13:34 <vmassol> that would be cool, thanks sdumitriu
13:36 <vmassol> sdumitriu: any idea when you could do it?
13:37 <sdumitriu> Any pending issues?
13:37 <vmassol> checking
13:37 <vmassol> but I don't think so
13:37 <vmassol> since manuel/sorin tested it at end of last week
13:37 <vmassol> dashboard is here btw: http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=11590
13:37 <vmassol> I have created the RN already too
13:38 <vmassol> ah I see one
13:38 <vmassol> http://jira.xwiki.org/browse/XWIKI-9004
13:38 <vmassol> reported by thomas
13:38 <vmassol> thomas is off today
13:38 <msmeria> I'm currently doing a full manual test on the latest snapshot og 4.5.4. So far I didn't find any major bugs
13:39 <mflorea> has joined #xwiki
13:40 <vmassol> I can work on http://jira.xwiki.org/browse/XWIKI-9004 if we don't release today
13:40 <vmassol> depends if we consider it important or not
13:44 <sdumitriu> How about Friday?
13:45 <vmassol> @sdumitriu: I find it a bit late but it depends when you have time. I can fix this issue today. Tomorrow or the day after would be better if you can IMO
13:46 <vmassol> there are a lot of important stuff in 4.5.4 that we need asap
13:46 <sdumitriu> OK for tomorrow
13:46 <vmassol> ok starting to work on it
13:48 <vmassol> I don't really get the issue though
13:48 <vmassol> I've checked the code and I have:
13:49 <vmassol>     protected boolean isInSchemaMode()
13:49 <vmassol>     {
13:49 <vmassol>         return StringUtils.equals(getConfiguration().getProperty("xwiki.virtual_mode"), "schema");
13:49 <vmassol>     }
13:49 <vmassol> so it the property is not defined it'll be the same as having: <property name="xwiki.virtual_mode">schema</property>
13:49 <vmassol> s/it/if/
13:49 <vmassol> going to try it for real
13:52 <vmassol> any volunteer for 5.0.2? :)
13:53 <vmassol> thomas is ok to release it I think though
14:20 <sdumitriu> has quit
14:23 <Denis> mflorea: Hi, when a new wiki is created without any template, shouldn't the DW kicks in on first admin access to it ?
14:23 <cjd> has quit
14:31 <cjd> has joined #xwiki
14:44 <mflorea> Denis: I'd says yes, but Thomas knows best the internals (I don't see him only at the moment)
14:44 <kstuart> has quit
14:44 <mflorea> s/only/online
14:45 <Denis> mflorea: it had not for me, and I found this wondering since the only way to get the interface is the old import
14:46 <mflorea> you're using a recent version right? (>=5.0)
14:46 <Denis> mflorea: more over, after initial "upgrade", it seems that restoring an old database in a subwiki does not trigger the DW either
14:46 <Denis> sure, 5.0.1 at the moment
14:47 <mflorea> restore at db level right?
14:48 <kstuart> has joined #xwiki
14:49 <Denis> yes, I mean restoring at db level, the migration kick in, but not the DW
14:49 <mflorea> unfortunately I haven't looked over the code that triggers the DW in subwikis so I can't tell why it wasn't triggered in your case. Looks like a bug, but I'd wait for Thomas to confirm it.
14:50 <Denis> it seems like once the DW has kick in at initial upgrade of the farm, and you choose to upgrade all subwikis, it does not came back in any subwiki that appear later or is downgraded
14:51 <jbwiv> has joined #xwiki
14:52 <mflorea> wait, on the "Upgrade Mode" step you have chosen the "Upgrade all wikis option"?
14:52 <msmeria> has quit
14:52 <Denis> yes
14:53 <jbwiv> vmassol: remember that image issue with postgresql? I did a fresh install of the database and the images worked (even with postgres), so it would appear this is specifically related to the restoration of the old database. Is there another way to save our work without losing everything? could an export/import work?
14:53 <mflorea> then I believe it's "normal" that the DW doesn't show up
14:53 <Denis> "normal" is a misfeature than
14:53 <mflorea> yes
14:54 <Denis> it only means that I want to upgrade all "existing" wikis now, but not that future or changed one should not be reconsidered later
14:54 <mflorea> yep, it's a mix
14:54 <mflorea> and it makes sense
14:54 <Denis> it should not differ from chosing the other options, and going to each wiki in turn
14:55 <Denis> I would understand than restoring a db could require also to cleanup a state for the given wiki
14:56 <Denis> but not that newly created wiki does not get considered
14:56 <mflorea> well, it's actually only for newly created wiki without a template
14:56 <mflorea> you don't want the DW when there is a template
14:56 <Denis> correct
14:57 <Denis> except if outdated
14:57 <Denis> the template could be outdated
14:57 <mflorea> indeed
14:57 <mflorea> you should report a bug
14:58 <Denis> ok
15:02 <gihanchanukak> has quit
15:14 <evalica> has quit
15:15 <Denis> vmassol: do you know when Thomas will be back ?
15:21 <vmassol> Denis: tomorrow AFAIK
15:22 <Denis> Context#getWikiServer() has been deprecated, does not work properly anymore, and I do not see a replacement for it
15:25 <gihanchanuka> has joined #xwiki
15:53 <npm> has joined #xwiki
15:54 <npm__> has quit
15:56 <jbwiv> has quit
15:58 <evalica> has joined #xwiki
16:00 <evalica> has quit
16:02 <vmassol> sdumitriu1: fixed XWIKI-9004
16:32 <jbwiv> has joined #xwiki
16:35 <Slashman> has joined #xwiki
16:36 <jbwiv> has quit
16:37 <vmassol> sdumitriu1: any update on ci? are you progressing on finding out what is the problem for the downgrade?
16:38 <sdumitriu1> Not yet
16:38 <sdumitriu1> Maybe the dashboard plugin needs to be downgraded...
16:44 <vmassol> if you upgraded it yes maybe
16:55 <evalica> has joined #xwiki
17:13 <evalica> has quit
17:33 <sdumitriu1> has quit
17:34 <msmeria> has joined #xwiki
17:37 <msmeria> has quit
17:38 <sdumitriu> has joined #xwiki
17:52 <cjd> has quit
18:19 <gihanchanuka> has quit
18:43 <gdelhumeau> has quit
18:55 <gdelhumeau> has joined #xwiki
18:56 <gdelhumeau> has quit
18:59 <cjd> has joined #xwiki
19:06 <tdelafosse> has quit
19:10 <sburjan> has quit
19:15 <gihanchanuka> has joined #xwiki
19:20 <mflorea> has quit
20:18 <abusenius> has joined #xwiki
21:43 <gihanchanuka> has quit
22:41 <Denis> has quit
23:01 <vmassol> has quit
23:56 <sdumitriu> has quit
23:59 <Slashman> has quit

Get Connected