IRC Archive for channel #xwiki
Last modified by Vincent Massol on 2012/10/18 19:18
00:08 <drake01> has joined #xwiki
00:25 <vmassol> has quit
02:07 <drake01> has quit
02:22 <jvdrean> has quit
02:28 <drake01> has joined #xwiki
02:36 <jvdrean> has joined #xwiki
02:48 <jvdrean> has quit
03:30 <abusenius> has quit
03:33 <drake01> has quit
04:04 <drake01> has joined #xwiki
04:08 <DrLou> has quit
04:34 <npm> has joined #xwiki
04:58 <npm> has quit
05:09 <kasun> has joined #xwiki
05:37 <DrLou> has joined #xwiki
05:37 <drake01> has quit
05:38 <DrLou> has quit
06:32 <venkatesh> has joined #xwiki
06:33 <venkatesh> has quit
06:54 <mflorea> has joined #xwiki
08:08 <vmassol> has joined #xwiki
08:57 <shweta> has joined #xwiki
09:08 <mpaun> has joined #xwiki
09:09 <sburjan> has joined #xwiki
09:19 <shweta> has quit
09:21 <shweta> has joined #xwiki
09:40 <mpaun> Hi guys! I have a velocity related question: Is it possible to get the value from this concatenation? $request.content$lg
09:40 <mpaun> where $lg comes from #foreach($lg in ["en","fr","pl","es"])
09:42 <@cjdelisle> I'm not sure about that exact notation but I think "${request.content}$lg" should work
09:42 <mpaun> let's try, I tried a lot of combinations with {} and "" but none of it work
09:42 <@cjdelisle> be careful about what you do with post parameters, all users are evil and want to own your system :P
09:43 <sburjan> has quit
09:44 <mpaun> nop, that didn't work
09:44 <mpaun> only $lg got interpreted
09:44 <@cjdelisle> if you put $request.content alone it works?
09:47 <mpaun> yes it does
09:47 <sburjan> has joined #xwiki
09:48 <@cjdelisle> How about trying: "$request.getParameter('content')$lg" It shouldn't matter but if there is an issue with velocity then that might work.
09:51 <mpaun> that didn't work either. I'm not sure if it matters but I'm using it like this $docWrapperByAPI.set($contentProp, "$request.getParameter('content')$lg")
09:51 <mpaun> (not the exact variable names but that doesn't matter)
09:52 <mpaun> in this particular case the value from $contentProp is $request.getParameter('content')en
09:52 <@cjdelisle> Did you try using a #set directive first?
09:52 <mpaun> I'll give it a try
09:53 <@cjdelisle> *brute
09:53 <mpaun> :)
10:00 <mihaipaun> has joined #xwiki
10:02 <mihaipaun> no, that didn't work either
10:02 <mihaipaun> running out of options
10:02 <mihaipaun> in my case, brute force would mean getting rid of the #foreach and assigning the value for each 4 languages
10:03 <mihaipaun> but I'm a fan of DRY
10:03 <@cjdelisle> #set($out = "$request.getParameter('content')" + $lg)
10:03 <mihaipaun> s/a/not a
10:03 <mpaun> has quit
10:03 <mihaipaun> oups what I said was correct
10:04 <@cjdelisle> #foreach($lg in ["en","fr","pl","es"]) that might not be supported
10:04 <@cjdelisle> #set($allLanguages = ["en","fr","pl","es"])
10:05 <mihaipaun> no, it is
10:05 <mihaipaun> I know for sure, I've used it in other places
10:05 <@cjdelisle> Ok, the only reason I mentioned it is because there are certain things which are supported in #set directives but not supported anywhere else
10:06 <@cjdelisle> #set($concat = "con" + "cat") is one of them
10:08 <mihaipaun> it worked with #set($out = $request.getParameter("content$lg"))
10:09 <mihaipaun> now, what options do I have to sanitize the user input?
10:11 <@cjdelisle> What are you doing with it? Displaying it back to them as HTML?
10:11 <jvdrean> has joined #xwiki
10:11 <mihaipaun> yep
10:13 <@cjdelisle> If it will be inside of an {{html}} macro then you want to use $escapetool.xml
10:14 <@cjdelisle> With that, the only remaining nasty thing anyone can do is close the html macro prematurely but since nested scripts are nolonger allowed, that's usually not a major issue.
10:16 <mihaipaun> I see
10:16 <mihaipaun> I see
10:16 <mihaipaun> ok, thanks a lot!
10:27 <ihalip> has quit
10:34 <kasun> has quit
10:38 <vmassol> cjdelisle: would be nice to add a screnshot to http://extensions.xwiki.org/xwiki/bin/view/Extension/Link+to+current+page
10:38 <@cjdelisle> I think I'm going to stop the daily reports and regression reports. I don't know what we should want to see for email, I didn't look at them and I didn't look at the regular mail.
10:39 <mihaipaun> has quit
10:48 <sdumitriu> has joined #xwiki
10:50 <@cjdelisle> I noticed that some of the projects seem to be missing from jira. I couldn't move a bug report to the invitation manager (plugin). On the other hand I see a number of projects which don't seem like they are intentionally public.
10:51 <vmassol> cjdelisle: they're not missing
10:51 <vmassol> invitation is in platform
10:51 <vmassol> cjdelisle: http://jira.xwiki.org/jira/browse/XWIKI#selectedTab=com.atlassian.jira.plugin.system.project%3Acomponents-panel
10:51 <vmassol> (more precisely: http://jira.xwiki.org/jira/browse/XWIKI/component/11219)
10:51 <@sdumitriu> vmassol: The build is broken a bit
10:52 <vmassol> cjdelisle: the build is still broken on serialization
10:52 <@sdumitriu> xwiki-enterprise ends up with an unparsed xwiki.cfg
10:52 <@sdumitriu> vmassol: Can you check it?
10:52 <vmassol> sdumitriu: yep will do
10:53 <@cjdelisle> http://jira.xwiki.org/jira/browse/XPIM <-- is this just an artifact?
10:53 <vmassol> this is the old jira project
10:53 <vmassol> which has been moved out
10:53 <vmassol> now all "extensions" are released with platform
10:53 <vmassol> cjdelisle: see https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core
10:54 <vmassol> and more specifically: https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-invitation
10:54 <@cjdelisle> I don't much like the thought that extensions are part of platform because then they are not extensions but right now I'm trying to understand the layout.
10:54 <vmassol> they are not extensions
10:54 <vmassol> they are platform modules
10:54 <vmassol> this is why I used "extensions" in my message ;)
10:54 <@cjdelisle> Do we have any extensions?
10:55 <vmassol> no
10:55 <vmassol> for one good reason
10:55 <vmassol> we don't have a core
10:55 <vmassol> extension would mean having a core
10:55 <@cjdelisle> Then what does the X stand for?
10:55 <vmassol> extensible
10:55 <vmassol> people who use XE have a "core", it's "XE"
10:56 <@cjdelisle> IMO platform module means the platform won't function without it.
10:56 <vmassol> nope
10:56 <vmassol> it's means
10:56 <vmassol> modules supported by the xwiki dev team that you can pick when building a product
10:56 <vmassol> you don't have to take them all
10:57 <vmassol> you can hand pick the ones you have
10:57 <vmassol> s/have/need/
10:57 <@cjdelisle> Ok so we don't really have a defined platform then.
10:57 <vmassol> if by platform you mean core then yes we don't
10:57 <@cjdelisle> You have as much platform as you want so to speak.
10:58 <@cjdelisle> Where something like PHP is a platform and everyone has the same platform so PHP scripts are portable.
10:59 <@cjdelisle> But this is not what I meant to ask about. I am unable to move issues to the invitation manager plugin (XPIM) is that because it's retired?
10:59 <@sdumitriu> Yes
11:00 <@sdumitriu> You should use platform
11:00 <@sdumitriu> And the invitation component inside it
11:00 <@cjdelisle> There's an invitation component?
11:00 <@sdumitriu> Should be
11:00 <@cjdelisle> I wrote an invitation application. It's all an XAR.
11:01 <@sdumitriu> http://jira.xwiki.org/jira/browse/XWIKI/component/11219
11:01 <@sdumitriu> Well, "component" in the Jira meaning, not in the XWiki meaning
11:02 <@cjdelisle> People are creating issues which refer to the plugin (XPIM).
11:03 <@cjdelisle> Now we have XPIM, XAINVITATION, and component/11219. What exactly is component/11219?
11:11 <ihalip> has joined #xwiki
11:11 <ihalip> has quit
11:11 <ihalip> has joined #xwiki
11:20 <ihalip> has quit
11:23 <mpaun> has joined #xwiki
11:29 <ihalip> has joined #xwiki
11:29 <ihalip> has quit
11:29 <ihalip> has joined #xwiki
11:29 <+sburjan> we have an issue in trunk. Latest build is broken. Blank page and console errors
11:30 <+sburjan> java.io.UnsupportedEncodingException: $xwikiCfgEncoding
11:32 <@sdumitriu> sburjan: We know
11:32 <@sdumitriu> I think I have a fix for it
11:33 <ihalip> has quit
11:38 <ihalip> has joined #xwiki
11:38 <ihalip> has quit
11:38 <ihalip> has joined #xwiki
11:40 <abusenius> has joined #xwiki
11:44 <@sdumitriu> Fixed enterprise build
11:44 <@sdumitriu> (I hope)
11:45 <vmassol> sdumitriu: have you started looking into diff emails from github?
11:45 <@sdumitriu> Yes, a bit
11:45 <vmassol> sdumitriu: ahaha you sneaked in a change: https://github.com/xwiki/xwiki-enterprise/commit/64a147bccc11cab9c9aed2118e4b85beb618d7b5 ;)
11:45 <@sdumitriu> But didn't have time to progress much
11:45 <vmassol> you could have used git's interactive option
11:45 <vmassol> :-P
11:45 <@sdumitriu> Heh, something I slipped some time ago
11:46 <vmassol> to separate the 2 commits
11:46 <vmassol> (showing my git kungfu! :))
11:46 <@sdumitriu> (I thought it was done, I wonder why enterprise redefines base skin)
11:46 <@sdumitriu> vmassol: I already did use --interactive, I had another change that I discarded
11:46 <vmassol> k
11:47 <vmassol> (was just showing off anyway)
11:47 <@sdumitriu> vmassol: I'm @Pernety today and tomorrow
11:47 <vmassol> arf
11:47 <@sdumitriu> vmassol: You need help with moving xar plugin?
11:47 <vmassol> I'm not coming tomorrow
11:47 <vmassol> sdumitriu: yes
11:47 <vmassol> I need to know how to copy from one git repo to another
11:47 <@sdumitriu> K, I'll give you two scripts
11:47 <vmassol> (or you could do it if you wanted....)
11:49 <@sdumitriu> You should start by cloning https://github.com/offbytwo/git-svn-extensions
11:50 <shweta> has quit
11:50 <vmassol> hmm since I'm a bit busy on too many things already maybe you could do the move and I'll fix the poms
11:52 <@sdumitriu> K
12:01 <@cjdelisle> Is it allright to commit against the 2.7 branch in svn?
12:10 <vmassol> cjdelisle: I think so since we agreed to release 2.7.x and 3.x from svn
12:10 <vmassol> hmmm only issue is that svn is read only
12:10 <vmassol> sdumitriu: any idea?
12:13 <mpaun> has quit
12:18 <fmancinelli> has joined #xwiki
12:24 <@sdumitriu> Actually I was thinking that it would be OK to release from git
12:24 <@sdumitriu> The problem was that the repo needed restructuring
12:25 <@sdumitriu> But that's not really a problem since for branches only the platform, enterprise and manager need to be released
12:25 <@sdumitriu> What's not included in the branches is tools and extensions (apps, plugins)
12:33 <jvdrean1> has joined #xwiki
12:33 <evalica> has joined #xwiki
12:33 <@cjdelisle> http://www.datanucleus.org/products/accessplatform/jdo/jpql.html
12:34 <Enygma`> has joined #xwiki
12:34 <@cjdelisle> haha nice :) I can run JPQL queries but use JDO for persistance.
12:35 <jvdrean> has quit
12:36 <abusenius> has quit
12:52 <sdumitriu> has quit
13:15 <mflorea> has quit
13:15 <mpaun> has joined #xwiki
13:24 <ihalip_> has joined #xwiki
13:25 <ihalip> has quit
13:54 <DrLou> has joined #xwiki
13:56 <sdumitriu> has joined #xwiki
14:00 <mflorea> has joined #xwiki
14:24 <vmassol> sdumitriu: ping me when you've done the git move
14:24 <@sdumitriu> vmassol: K, in a meeting right now
14:24 <vmassol> k
14:29 <abusenius> has joined #xwiki
14:45 <+fmancinelli> cjdelisle: nice
14:45 <+fmancinelli> cjdelisle: didn't know that
14:48 <ihalip_> is now known as <ihalip>
14:54 <mpaun> has quit
15:02 <arkub> has joined #xwiki
15:16 <vmassol1> has joined #xwiki
15:16 <vmassol> has quit
15:23 <drake01> has joined #xwiki
15:29 <abusenius_> has joined #xwiki
15:29 <abusenius> has quit
15:30 <abusenius_> is now known as <abusenius>
15:50 <mpaun> has joined #xwiki
16:11 <drake01> has quit
16:12 <lucaa> has joined #xwiki
16:27 <flavius_> has joined #xwiki
16:36 <flavius_> has quit
16:39 <pulasthi> has joined #xwiki
16:47 <+mflorea> sdumitriu: xwiki-platform 3.0 git branch doesn't contain application, plugins and skins. I'm wondering how are we going to release 3.0.1 on git?
16:51 <sburjan> has quit
16:54 <+mflorea> will we release 3.0.1 with 3.1 skin/apps?
17:09 <mihaipaun> has joined #xwiki
17:47 <vmassol1> sdumitriu: any progress on the move?
17:47 <sdumitriu> has quit
17:49 <npm> has joined #xwiki
17:51 <sdumitriu> has joined #xwiki
17:55 <drake01> has joined #xwiki
18:09 <pulasthi1> has joined #xwiki
18:10 <vmassol1> sdumitriu: why do you need to regularly update submodules?
18:11 <vmassol1> (does it need to be done everytime there's a change in a submodule?)
18:12 <pulasthi> has quit
18:13 <+lucaa> vmassol1: how do I escape an emoticon?
18:13 <+lucaa> I want to be able to write (?) in a document and see it as such
18:13 <+lucaa> in syntax 2.0
18:16 <@sdumitriu> lucaa: You can't
18:16 <@sdumitriu> Try with {{{(?)}}}
18:16 <Chami1> has joined #xwiki
18:16 <vmassol1> lucaa: yes with {{{...}}}
18:17 <+lucaa> thanks
18:17 <vmassol1> we could support escapes but we would need to modify the icon transformation to support it
18:18 <vmassol1> (it would also cost a little bit more to render)
18:28 <hppyfeet11> has joined #xwiki
18:49 <fmancinelli1> has joined #xwiki
18:49 <fmancinelli> has quit
18:54 <sdumitriu> has quit
18:54 <fmancinelli1> has quit
18:54 <lucaa> has quit
19:19 <pulasthi1> has left #xwiki
19:23 <lucaa> has joined #xwiki
19:33 <fmancinelli> has joined #xwiki
19:33 <vmassol1> has quit
19:35 <vmassol> has joined #xwiki
19:49 <arkub> has quit
19:52 <mflorea> has quit
19:52 <pulasthi1> has joined #xwiki
20:33 <drake01> has quit
21:00 <lucaa> has quit
21:04 <pulasthi1> has left #xwiki
21:07 <abusenius> has quit
21:10 <drake01> has joined #xwiki
21:11 <abusenius> has joined #xwiki
21:28 <jvelociter> has quit
21:34 <Chami1> has quit
22:04 <florinciu> has joined #xwiki
22:35 <mihaipaun> has quit
22:35 <mihaipaun> has joined #xwiki
22:36 <mihaipaun> has quit
22:38 <florinciu> has quit
22:38 <florinciu> has joined #xwiki
22:56 <kasun> has joined #xwiki
23:04 <mpaun> has quit
23:05 <vmassol> has quit
23:29 <robe__> has joined #xwiki
23:30 <robe__> hello, with xwiki 3.0 I'm getting the following error after changing the xwiki.home=http://servername:8080/
23:30 <robe__> java.lang.NullPointerException at org.xwiki.url.internal.standard.DomainHostResolver.resolve(DomainHostResolver.java:41)
23:31 <hppyfeet11> has quit
23:31 <robe__> the server name resolves in our local DNS correctly. are there any other settings I need to adjust?
23:32 <@cjdelisle> Could you paste the full stack trace into a pastebin please?
23:32 <robe__> sure
23:32 <robe__> http://pastiebin.com/?page=p&id=4dac5bac52b07
23:33 <robe__> i'm using the JAR installer (since our proxy doesn't allow download of .EXE hehe) and it went smoothly. If I use the defaults, I can access XWiki just fine on the server using localhost.
23:35 <@cjdelisle> so you can access it via http://localhost:8080/ but when you call it http://some.domain.tld:8080/ it doesn't work?
23:36 <robe__> yes, the only property I modify is in xwiki.cfg, I set the xwiki.home
23:39 <robe__> it comes from extractWikiReference, when it tries to use the domainHostResolver. I'm guessing uri is null or the host resolver is null but I couldn't see why
23:40 <robe__> in StandardXWikiURLFactory
23:41 <robe__> I'm quite impressed at the level of comments and clarity of the xwiki source.
23:43 <@cjdelisle> The new code is very clean. I have seen numerous big projects which would miserably fail our code style validator.
23:43 <@cjdelisle> The old code, not so much but heh it's deprecated.
23:43 <robe__> Ah, I've only looked at the new code then ;)
23:44 <@cjdelisle> What I'm seeing is your HttpServletRequest apparently has no host parameter.
23:45 <robe__> So do I need to modify some of the jetty configuration? Or is there another property? Maybe the host name fails some rule?
23:46 <@cjdelisle> It shouldn't be anything to do with the jetty configuration. You are using HSQL so you only have a single wiki.
23:46 <robe__> I'm using Oracle as the DB, but only need a single wiki
23:46 <robe__> Is that the problem?
23:47 <@cjdelisle> No, it's the wiki parameter which is hanging it up. Why did you set the xwiki.home= parameter in the xwiki.cfg?
23:47 <robe__> If I don't set it I get the same behavior
23:47 <robe__> If I use the IP without it set, it works as well I just tried that
23:48 <robe__> so it's just the hostname it has problems with
23:48 <@cjdelisle> Does the hostname have a dot in it?
23:49 <robe__> nope, it's j-sonic_wiki-m plus domain
23:50 <@cjdelisle> the underscore is an invalid character in domains.
23:50 <sdumitriu> has joined #xwiki
23:51 <robe__> ok I bet that is the problem. Stupid me!
23:51 <robe__> thank you
23:52 <@cjdelisle> Sure thing. FYI I have had trouble in the past with the - character. If you experience more issues try without that character and see if it's fixed.
23:52 <@cjdelisle> It is valid and it should be fine but that's just a starting point for diagnosys.
23:52 <robe__> wait, the RFC says _ should be fine
23:53 <robe__> http://www.ietf.org/rfc/rfc1738.txt
23:53 <robe__> I shouldn't need to set the xwiki.home, right? If I don't need to set that I can get the server name changed and see if it works.
23:54 <@cjdelisle> That's URL in general, you want DNS: http://www.faqs.org/rfcs/rfc1912.html
23:54 <@cjdelisle> You should not need to set the xwiki.home, that is used for multi-wiki environments.
23:55 <robe__> OK I thought it was unnecessary. Thank you :)
23:55 <@cjdelisle> Sure thing.
23:56 <evalica> has quit
23:58 <robe__> ok I better go hide from the firewall police before they block this :) Thanks for the excellent wiki software
23:58 <robe__> has quit