IRC Archive for channel #xwiki on 27 May 2015

Last modified by Vincent Massol on 2015/05/27 23:09

<Denis2> has joined #xwiki
06:03 <Denis> has quit
07:33 <tmortagne> has joined #xwiki
08:02 <mflorea> has joined #xwiki
08:06 <MasterPiece> has quit
08:23 <vmassol> has joined #xwiki
08:28 <woshilapin> has quit
08:31 <KermitTheFragger> has joined #xwiki
08:32 <tmortagne> has quit
08:34 <msmeria> has joined #xwiki
08:47 <gsmeria> has joined #xwiki
08:50 <cjd> has joined #xwiki
08:54 <ol-ow2> has joined #xwiki
08:54 ol-ow2 bonjour tout le monde
09:33 <gsmeria> has quit
09:33 <gsmeria> has joined #xwiki
09:34 <Slashman> has joined #xwiki
09:34 <gdelhumeau> has joined #xwiki
09:36 <cjd> Good morning gd, thanks for taking care of totem and multiselect
09:36 <cjd> is there anything else that is needed from us on those items ?
09:36 <woshilapin> has joined #xwiki
09:39 <gdelhumeau> has quit
09:47 <KermitTheFragger> has quit
09:49 <woshilapin> has quit
09:52 <gdelhumeau> has joined #xwiki
09:52 <Denis2> is now known as <Denis>
09:53 <msmeria> has quit
09:54 <msmeria> has joined #xwiki
09:55 <woshilapin> has joined #xwiki
09:57 <tmortagne> has joined #xwiki
09:58 <msmeria1> has joined #xwiki
09:58 <msmeria> has quit
10:47 <silverdrop> has joined #xwiki
10:50 <gsmeria> has quit
10:57 <cjd> gdelhumeau: not sure if you got my message earlier but thanks for your work releasing totem and multiselect and is there anything else you will need from us ?
10:58 <gdelhumeau> I hope it's working fine for you
10:58 <gdelhumeau> did you test the releases?
10:58 <cjd> https://labs.xwiki.com
10:58 <cjd> it's deployed
10:59 <gdelhumeau> didn't know this site
10:59 <gdelhumeau> nice one!
10:59 <cjd> there are issues but it's still in development so we need to decide what's most important (and get user feedback about that's causing problems)
10:59 <cjd> ahh, sorry for not letting people know better, especially since you're part of it !
11:00 <cjd> we're not really ready to go public yet but we should have communicated better to others in xwiki R&D
11:02 <gdelhumeau> according to the picture, you personify the innovation :)
11:03 <cjd> would you be interested in giving a lecture somewhere?
11:03 <cjd> it's a serious question actually, that's part of what labs is about
11:05 <cjd> another issue which we haven't really settled is how much in/out of labs are you/thomas/vincent, you're technically in but your interactions are mediated through the roadmap process... IMO you guys should be able to have profiles in the labs website but it's up to you
11:07 <vmassol> since labs is not opensource and is an xwiki SAS initiative I propose we discuss this internally :)
11:07 <cjd> well it's definitely open source but indeed it might be a bit off topic for this channel, sorry about that.
11:08 <vmassol> it is? so anyone can edit the website and change the content? :)
11:09 <vmassol> (opensoure wasn't the rigth word)
11:09 <vmassol> (I meant community-driven)
11:20 <gsmeria> has joined #xwiki
11:54 <evalica> has joined #xwiki
11:56 <Enygma`> has joined #xwiki
12:31 <Enygma`> has quit
12:32 <Enygma`> has joined #xwiki
12:38 <Bugendolf> has quit
12:39 <Bugendolf> has joined #xwiki
12:49 <gdelhumeau> has quit
12:49 <gdelhumeau> has joined #xwiki
12:51 <gdelhumeau_> has joined #xwiki
12:55 <gdelhumeau> has quit
13:31 <gdelhumeau__> has joined #xwiki
13:36 <gdelhumeau_> has quit
13:58 <vmassol> mflorea: hi, since jira wasn't sending emails, you may have missed my comment at http://jira.xwiki.org/browse/XWIKI-9229
13:59 <vmassol> mflorea: we can brainstorm about it when you have some time (not urgent)
14:21 <mflorea> vmassol: ok, I'm busy with the 7.1 roadmap this week. We can talk after 7.1.
14:21 <vmassol> yep
14:22 <vmassol> thx
15:21 <gsmeria> has quit
15:21 <OSIMasson> has quit
15:22 <gsmeria> has joined #xwiki
15:43 <evalica> has quit
15:46 <evalica> has joined #xwiki
15:48 <OSIMasson> has joined #xwiki
16:13 <gsmeria> has quit
16:14 <gsmeria> has joined #xwiki
16:19 <evalica> has quit
16:28 <gsmeria> has quit
16:28 <msmeria1> has quit
16:39 <evalica> has joined #xwiki
16:41 <Slashman> has quit
16:43 <Trefex> has joined #xwiki
16:57 <Slashman> has joined #xwiki
17:02 <Trefex> is it safe to take the milestone version?
17:02 <Trefex> or better to take 7.0.1 ?
17:03 <tmortagne> Trefex: milestone basically mean beta so not really safe no
17:03 <vmassol> depends what you mean by safe :)
17:03 <Trefex> tmortagne: the install instructions point to the wrong deb anyway
17:03 <tmortagne> the current stable is 7.0.1 and the current LTS is 6.4.4
17:03 <Trefex> also, is it safe to use now tomcat8 ?
17:04 <vmassol> if you mean use it in production then you should use LTS probably
17:04 <tmortagne> Trefex: which install instructions ?
17:04 <Trefex> and finally can i install xwiki-solr-data on top of Deb package or ?
17:04 <Trefex> i want bleeding edge in production, so 7 i guess
17:04 <vmassol> if your production is not critical then 7.0.1 is good
17:04 <vmassol> yup
17:04 <Trefex> http://enterprise.xwiki.org/xwiki/bin/view/Main/Download
17:04 <vmassol> bleeding edge is 7.1M2 :)
17:04 <Trefex> for Debian, the instructions point to the stable deb packages
17:05 <Trefex> well, yeah, but there was a bug last time i installed 7
17:05 <tmortagne> how is pointing to the stable branch would be wrong ?
17:05 <Trefex> with the version of some library
17:05 <Trefex> i even forgot the issue, but tmortagne or vmassol you guys should recall :D
17:05 <vmassol> only one?
17:05 <Trefex> tmortagne: because the install instructions should be for 7.1M2
17:05 <vmassol> :)
17:06 <Trefex> it was a bad symlink to something, i forgot :P
17:06 <Trefex> so tomcat 8 / pgSQL is good ye?
17:06 <Trefex> or you prefer MySQL?
17:06 <tmortagne> Trefex: no the install instaructions should not recommand to use a beta version...
17:07 <Trefex> of course they should, http://enterprise.xwiki.org/xwiki/bin/view/Main/Download clearly shows a banner for 7.1M2
17:07 <Trefex> all links except the Debian one point to a 7.1M2 installer
17:07 <Trefex> so i expect the instructions for the beta to point to the beta ?
17:07 <Trefex> i mean maybe i'm just weird :D
17:07 <tmortagne> it's written nowhere in http://enterprise.xwiki.org/xwiki/bin/view/Main/Download that you SHOULD use the last beta version
17:08 <Trefex> i know, but the install instructions linked there FOR 7.1M2 point to the stable version
17:08 <Trefex> that's all I'm saying :)
17:08 <Trefex> i don't care, since i won't use it, just a small nitpicking from my side
17:08 <tmortagne> the link just go the the general Debian documentation
17:09 <tmortagne> there is only one documentation
17:09 <Trefex> yeah it's just misleading is all :)
17:09 <tmortagne> which clearly indicate what choices you have
17:09 <Trefex> yeah ok
17:09 <Trefex> see what you mean
17:10 <Trefex> gonna try 7.0.1 one then :)
17:12 <Trefex> just a question, will xwiki-enterprise-tomcat8-pgsql also install solr as backend search engine?
17:12 <Trefex> or why is there a xwiki-solr package as well? I'm not sure I got that from the doc
17:13 <tmortagne> Trefex: right now XWiki embedded solr by defaut so you don't really need the solr package, it's just provide as helper for someone that want to start using a standalone instance of Solr
17:13 <tmortagne> s/provide/provided/
17:13 <Trefex> i see, ok thank you
17:14 <Trefex> xwiki-enterprise-tomcat8-pgsql : Depends: tomcat8 but it is not installable
17:14 <Trefex> when trying to install on Ubuntu 14.04
17:14 <Bugen_do> has joined #xwiki
17:15 <tmortagne> well I guess it means tomcat 8 is not available on Ubuntu 14.04 repositories
17:16 <Trefex> ah you're right
17:16 <ol-ow2> has quit
17:16 <tmortagne> but you can probably download a tomcat 8 deb file somewhere
17:16 <tmortagne> hmm not sure how clean that would be
17:16 <tmortagne> I usually still use tomcat 7 myself on 14.04
17:16 <Trefex> i can use 7
17:17 <Trefex> frankly don't care so much
17:17 <tmortagne> we got a report of some sessions issue with tomcat 8 recently so it might be for the best anyway
17:18 <Trefex> ah i recall now, it was a bad symlink to the pgsql jdbc driver
17:20 <tmortagne> right jdbc3 vs jdbc4
17:20 <tmortagne> there was (and still is) also an issue with older jdbc drivers but should be ok on ubuntu 14.04
17:41 <Trefex> what's this now?
17:41 <Trefex> ERROR: encoding "UTF8" does not match locale "en_US" DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1".
17:42 <Trefex> this happened now using dbconfig-common
17:42 <Trefex> locale is set to en_US.UTF-8
17:47 <Trefex> tmortagne: vmassol any ideas?
17:48 <tmortagne> that's weird, I have the same locale and never got this error
17:48 <tmortagne> do you have more ?
17:49 <vmassol> what does google say Trefex?
17:49 <Trefex> google says nothing informative
17:50 <Trefex> since i'm using dbconfig-common
17:50 <vmassol> I see a lot of info
17:50 <mflorea> has quit
17:51 <Trefex> well shouldn't dbconfig-common just work with en_US.UTF-8 locale?
17:51 <Trefex> i mean the info is all related on how to create the DB by hand
17:51 <Trefex> which i don't want to do
17:51 <vmassol> I don't even know what dbconfog-commons isç
17:52 <vmassol> doesn't seem xwiki-related
17:52 <Trefex> it's what pop up when you use the xwiki package
17:52 <cjd> Trefex: I think it's telling you that UTF8 negates the necessity for a locale because it can represent every language
17:52 <Slashman> has quit
17:52 <vmassol> I seee lots of google info about this error and pgsql
17:52 <cjd> so just specify UTF-8
17:52 <Trefex> omg
17:52 <Trefex> i'm just gonna use MySQL
17:52 <tmortagne> you can see what is executed during the pgsql install package in https://github.com/xwiki/xwiki-enterprise/blob/master/xwiki-enterprise-installers/xwiki-enterprise-installer-debian/xwiki-enterprise-installer-debian-pgsql-common/src/deb/control/postinst
17:53 <Trefex> cjd:  instead of en_US.UTF-8 just use UTF-8 ?
17:53 <cjd> Trefex: IMO yes, but that's just a guess
17:53 <cjd> I've noticed we have a lot of postgres users lately, maybe we should start playing with it more so we know the issues that come up
17:53 <cjd> it's a really good database
17:54 <Trefex> i mean that seems to be an issue then in the installer no?
17:54 <Trefex> the UTF8 is hardcoded there
17:54 <tmortagne> it's hardcoded because XWiki require UTF8
17:55 <tmortagne> but there is no reason pgsql don't support UTF8
17:55 <Trefex> yeah but shouldn't the lc_type be set explicitly then?
17:55 <Trefex> to allow for de_DE.UTF or en_GB.UTF or whatever
17:55 <cjd> no
17:55 <tmortagne> I don't see what lc_type has to do here
17:55 <Trefex> or —locale
17:55 <cjd> UTF8 can support US, DE, GB, etc etc even Chinese
17:55 <tmortagne> the script is about postgre database encoding, not the system locale
17:56 <tmortagne> UTF8 support any character, that's why XWiki is using it
17:56 <Trefex> well the DB can't be created if your locale is set to en_US.UTF-8
17:56 <tmortagne> we do the exact same thing in the MySQL installer
17:56 <Trefex> i don't want to change my system to UTF-8 only
17:56 <Trefex> or maybe apt is stupid
17:57 <cjd> maybe the .deb file is misconfigured? it's proposing that by default?
17:57 <tmortagne> it does not make much sense to not being able to create the database with the encoding you want, I did not get this error last time I tried, and  know people are using pgsql installer
17:58 <Trefex> ok i'll create the VM from scratch, set my en_US.UTF-8 via puppet, and then start the installer
17:58 <cjd> ahh I see, you mean your locale for your shell
17:58 <Trefex> yeah
17:58 <cjd> I get it now
17:58 <cjd> ok that's just dumb, I'm not sure whose fault it is but that's really dumb...
17:59 <tmortagne> all the installer does is setting the encoding to use the the create database to 'UTF8', nothing more
17:59 <cjd> If the ENV variable is set to en_US... then postgres can't create dbs, it's a debian bug
17:59 <Trefex> omg seriously
17:59 <vmassol> this is the first link in google: http://www.pebra.net/blog/2013/06/10/when-struggling-with-postgresql-and-utf8-slash-latin/ doesn't it help?
18:00 <vmassol> create database template1 with owner postgres encoding='UTF-8'
18:00 <vmassol> lc_collate='en_US.utf8' lc_ctype='en_US.utf8' template template0;
18:00 <Trefex> yes but i don't want to do that
18:00 <Trefex> the installer should do this correctly
18:00 <Trefex> imho
18:00 <cjd> ok so we need to work around it then
18:01 <tmortagne> the installer does not set any env var, it just tell debconf to use UTF8 to create the database
18:01 <Sorinello> has quit
18:01 <Trefex> ok small comment, in the github snippet it says UTF8, and on that page it says UTF-8 for the encoding argument
18:01 <cjd> tmortagne: it's set that way because he lives in the US, it's a debian bug that is breaking creation of dbs in postgres, we just need to work around it
18:02 <tmortagne> cjd: not sure what we can do about that, unset the locale ?
18:02 <tmortagne> that would be quite a hack...
18:02 <vmassol> it should be UTF-8 (http://stackoverflow.com/questions/809620/utf8-or-utf-8)
18:02 <cjd> can you pass the encoding explicitly ?
18:02 <Trefex> lc_collate='en_US.utf8' lc_ctype='en_US.utf8'
18:03 <Trefex> you can set these options it seems
18:03 <tmortagne> cjd: as I said several times thats what the script does
18:03 <tmortagne> dbc_pgsql_createdb_encoding='UTF8'
18:03 <tmortagne> see https://github.com/xwiki/xwiki-enterprise/blob/master/xwiki-enterprise-installers/xwiki-enterprise-installer-debian/xwiki-enterprise-installer-debian-pgsql-common/src/deb/control/postinst
18:03 <Trefex> https://github.com/xwiki/xwiki-enterprise/blob/master/xwiki-enterprise-installers/xwiki-enterprise-installer-debian/xwiki-enterprise-installer-debian-pgsql-common/src/deb/control/postinst#L14
18:03 <cjd> tmortagne: ok maybe then indeed we need to unset LANG=
18:04 <Trefex> if this works create database template1 with owner postgres encoding='UTF-8'
18:04 <Trefex> why not simply add lc_collate and lc_ctype if they are set from the ENV variables?
18:04 <Trefex> in the postinst script
18:05 <tmortagne> the script does not execute the create database, debconf does
18:06 <tmortagne> debconf does not seems to provide much more than dbc_pgsql_createdb_encoding
18:07 <woshilapin> has quit
18:07 <cjd> *maybe*   dbc_go xwiki lc_collate=${LANGUAGE}.utf8 $@
18:07 <cjd> idk
18:08 <Trefex> well i'm certainly no expert on this
18:08 <cjd> or just LANG=${LANGUAGE}.utf8   and call it a day
18:09 <cjd> if you put that in line 13 in the actual deb, does it install properly?
18:10 <Trefex> can i open a deb?
18:10 <cjd> it's technically a tar.gz
18:10 <cjd> so that postinst is inside of it
18:12 <Trefex> can't do this today
18:12 <Trefex> i can give it a go tomorrow
18:12 <cjd> if you could open an issue on the xwiki bugtracker and report this, that would be great
18:12 <Trefex> also tomorrow
18:12 <Trefex> ;)
18:12 <cjd> and if you could show whether the change fixes it, that would be really really great :D
18:13 <cjd> ok
18:13 <Trefex> ahhhh
18:13 <Trefex> will have to check which debs to get, how to unpack, repack and so on
18:13 <Trefex> but i guess i'll give it a go
18:13 <cjd> should work in file-roller, that lets you edit a file inside of a .tar.gz and when you save it asks you if you want to repack the file
18:14 <cjd> if your desktop is linux
18:14 <Trefex> mac
18:15 <cjd> ask vmassol ;)
18:15 <vmassol> why would I use the deb packaging on mac! :)
18:15 <vmassol> (just kidding)
18:15 <Trefex> no worries, i'll check tomorrow, gotta run
18:15 <Trefex> exercice for my health
18:16 <Trefex> otherwise i can't test nothing, with a heart attack
18:16 <cjd> ok see ya tomorrow
18:16 <cjd> (hopefully, watch out for busses!)
18:16 <Trefex> in-doors
18:16 <vmassol> (I've never done that FTR so won't be of much help)
18:16 <Trefex> i'm not crazy!
18:16 <cjd> hehe
18:17 <Trefex> ps i live in Europe, but we use the en_US locale anysway
18:17 <tmortagne> from what I see in debconf source it does something like
18:17 <tmortagne> so we can't just add more stuff to $dbc_pgsql_createdb_encoding unfortunately
18:17 <Trefex> sql injection ;)
18:18 <vmassol> yeah :)
18:18 <cjd> lol you said it as I thought it
18:18 <Trefex> ='UTF8 lc_type="blabla" '
18:18 <Trefex> i mean =UTF8' lc_type="" '
18:18 <Trefex> or sth like that
18:19 <cjd> UTF8' lc_type='blah
18:19 <cjd> oh boy, you'd need a half page of comments to explain that line
18:19 <Trefex> dbc_pgsql_createdb_encoding=""UTF-8" ' lc_type="blabla" '"
18:20 <Trefex> something like that
18:20 <tmortagne> it's not exactly public API, just ubuntu 15.04 source, not exactly the esiest thing to maintain
18:20 <tmortagne> s/esiest/easiest/
18:20 <Trefex> what's the other soluton?
18:20 <Trefex> temporarily unset lang?
18:20 <tmortagne> the only other things that don't break is not setting the encoding
18:21 <Trefex> k, out now, poff
18:21 <tmortagne> but then the risk is to end up with too limited encoding
18:21 <Trefex> has quit
18:21 <tmortagne> which pretty much means no multilanguage
18:21 <cjd> nah, we'll fix it
18:22 <cjd> LANG=$LANGUAGE.utf8 would be one solution
18:22 <cjd> that would create  en_US.utf8 etc etc
18:22 <tmortagne> you mean changing the locale, execute the create DB and restore the locale ?
18:22 <cjd> don't need to restore the locale, the environment is constrained to the lifetime of the script
18:23 <tmortagne> not so sure about that
18:23 <tmortagne> constrained to the whole install probably, but only the script...
18:23 <cjd> user@toshitba:~$ bash -c 'XXX=porn; echo $XXX' ; echo $XXX
18:23 <cjd> porn
18:24 <cjd> oh there was an empty line because the second echo XXX output nothing
18:24 <cjd> user@toshitba:~$ bash -c 'LANG=$LANGUAGE.utf8; echo $LANG' ; echo $LANG
18:24 <cjd> user@toshitba:~$
18:24 <cjd> :)
18:25 <cjd> anyway, I'm out too, see ya tomorrow
18:26 <vmassol> bye cjd
18:29 <tmortagne> a pity debconf provide a dbc_mysql_createdb_encoding API that cannot really work...
18:30 <tmortagne> not always at least
18:30 <cjd> has quit
18:31 <woshilapin> has joined #xwiki
18:37 <tmortagne> has quit
18:50 <silverdrop> has quit
18:55 <woshilapin> has quit
18:59 <evalica> has quit
18:59 <Enygma`> has quit
19:08 <tmortagne> has joined #xwiki
20:04 <cjd> has joined #xwiki
20:12 <tmortagne> has quit
20:22 <tmortagne> has joined #xwiki
21:40 <vmassol> has quit
21:58 <gdelhumeau__> has quit
21:59 <sdumitriu1> Hey guys
21:59 <sdumitriu1> How can I test with mocks something that has @Inject List<SomeRole> instances ?
22:00 <sdumitriu1> Normally with a single instance I would do mocker.getInstance(SomeRole, "hint")
22:09 <OSIMasson> has quit
22:29 <woshilapin> has joined #xwiki
22:52 <tmortagne> has quit
23:09 <Bugen_do> has quit
Tags:
   

Get Connected