IRC Archive for channel #xwiki on 31 May 2016

Last modified by Vincent Massol on 2016/05/31 23:57

<codesmithKarl> has joined #xwiki
00:18 <codesmithKarl> has quit
00:33 <codesmithKarl> has joined #xwiki
00:38 <codesmithKarl> has quit
00:50 <abusenius> has quit
00:53 <codesmithKarl> has joined #xwiki
00:58 <codesmithKarl> has quit
00:58 <lkrejci> has quit
01:12 <codesmithKarl> has joined #xwiki
01:18 <codesmithKarl> has quit
01:33 <codesmithKarl> has joined #xwiki
01:38 <codesmithKarl> has quit
01:51 <codesmithKarl> has joined #xwiki
01:57 <codesmithKarl> has quit
02:12 <codesmithKarl> has joined #xwiki
02:17 <codesmithKarl> has quit
02:32 <codesmithKarl> has joined #xwiki
02:37 <codesmithKarl> has quit
02:51 <codesmithKarl> has joined #xwiki
02:57 <codesmithKarl> has quit
03:05 <sdumitriu1> has quit
03:12 <codesmithKarl> has joined #xwiki
03:17 <codesmithKarl> has quit
03:20 <sdumitriu1> has joined #xwiki
03:30 <codesmithKarl> has joined #xwiki
03:37 <codesmithKarl> has quit
03:51 <codesmithKarl> has joined #xwiki
03:57 <codesmithKarl> has quit
04:10 <codesmithKarl> has joined #xwiki
04:18 <codesmithKarl> has quit
04:31 <codesmithKarl> has joined #xwiki
04:36 <codesmithKarl> has quit
04:51 <codesmithKarl> has joined #xwiki
04:57 <codesmithKarl> has quit
05:10 <codesmithKarl> has joined #xwiki
05:17 <codesmithKarl> has quit
05:31 <codesmithKarl> has joined #xwiki
05:37 <codesmithKarl> has quit
05:50 <codesmithKarl> has joined #xwiki
05:58 <codesmithKarl> has quit
06:13 <codesmithKarl> has joined #xwiki
06:18 <codesmithKarl> has quit
06:32 <codesmithKarl> has joined #xwiki
06:38 <codesmithKarl> has quit
06:52 <codesmithKarl> has joined #xwiki
06:58 <codesmithKarl> has quit
07:02 <DarkKnightCZ> has joined #xwiki
07:12 <codesmithKarl> has joined #xwiki
07:17 <codesmithKarl> has quit
07:32 <msmeria> has joined #xwiki
07:32 <codesmithKarl> has joined #xwiki
07:37 <codesmithKarl> has quit
07:49 <acotiuga> has joined #xwiki
07:51 <codesmithKarl> has joined #xwiki
07:57 <codesmithKarl> has quit
08:10 <codesmithKarl> has joined #xwiki
08:18 <codesmithKarl> has quit
08:19 <mflorea> has joined #xwiki
08:20 <vmassol> has joined #xwiki
08:25 <cjd> has quit
08:32 <codesmithKarl> has joined #xwiki
08:37 <codesmithKarl> has quit
08:51 <codesmithKarl> has joined #xwiki
08:57 <codesmithKarl> has quit
09:10 <codesmithKarl> has joined #xwiki
09:15 <tmortagne> has joined #xwiki
09:18 <codesmithKarl> has quit
09:27 <KermitTheFragger> has joined #xwiki
09:31 <codesmithKarl> has joined #xwiki
09:36 <codesmithKarl> has quit
09:37 <cjd> has joined #xwiki
09:42 <evalica> has joined #xwiki
09:47 <gdelhumeau> has joined #xwiki
09:50 <codesmithKarl> has joined #xwiki
09:57 <codesmithKarl> has quit
10:02 <Slashman> has joined #xwiki
10:03 <Enygma`> has joined #xwiki
10:10 <mflorea> has quit
10:13 <codesmithKarl> has joined #xwiki
10:18 <codesmithKarl> has quit
10:31 <codesmithKarl> has joined #xwiki
10:36 <codesmithKarl> has quit
10:50 <codesmithKarl> has joined #xwiki
10:50 <mflorea> has joined #xwiki
10:53 <tmortagne> sdumitriu: Hi
10:54 <tmortagne> anyone actually
10:54 <tmortagne> do you have any idea what customization we have http://maven.xwiki.org/externals/de/l3s/boilerpipe/boilerpipe/1.2.0-xwiki/ ? Nothing is indicated in the pom
10:56 <tmortagne> forget that, I found it
10:56 <vmassol> tmortagne: I see http://markmail.org/message/qzqf5ji6mbtv3oe3
10:57 <vmassol> "  Repackage boilerpipe so that we can use the latest version of NekoHTML
10:57 <vmassol> (boilerpipe bundles 2 modified? classes from an older version of NekoHTML)."
10:57 <vmassol> ah you found it, ok
10:57 <tmortagne> yes I saw, not very nice to not indicate anything in the package pom itself
11:02 <codesmithKarl> has quit
11:17 <codesmithKarl> has joined #xwiki
11:21 <codesmithKarl> has quit
11:35 <codesmithKarl> has joined #xwiki
11:39 <codesmithKarl> has quit
11:54 <codesmithKarl> has joined #xwiki
12:00 <codesmithKarl> has quit
12:13 <codesmithKarl> has joined #xwiki
12:19 <codesmithKarl> has quit
12:33 <codesmithKarl> has joined #xwiki
12:39 <codesmithKarl> has quit
12:53 <codesmithKarl> has joined #xwiki
12:57 <codesmithKarl> has quit
13:03 <edvorg> has joined #xwiki
13:11 <codesmithKarl> has joined #xwiki
13:17 <codesmithKarl> has quit
13:32 <codesmithKarl> has joined #xwiki
13:35 <SputnikkCylon> looking around on JIRA it seems ldap referalls to a trusted domain should just work but it doesn't for me. Does anyone know what it takes to configure in XWiki?
13:36 <edvorg> has quit
13:37 <codesmithKarl> has quit
13:38 <vmassol> SputnikkCylon: I see you're still trying to get an answer on that! Sorry I cannot help on my side. If you don't get an answer here or on the list you could consider hiring someone to help you: https://www.xwiki.org/xwiki/bin/view/Main/Support#HProfessionalSupport
13:39 <vmassol> there's the source code you could check too if you're a dev
13:39 <SputnikkCylon> Yeah its not a common scenario
13:39 <SputnikkCylon> no just a stupid admin :(
13:40 <vmassol> :)
13:40 <SputnikkCylon> per this it should be working: http://jira.xwiki.org/browse/XWIKI-6070
13:50 <codesmithKarl> has joined #xwiki
13:55 <codesmithKarl> has quit
14:09 <codesmithKarl> has joined #xwiki
14:14 <codesmithKarl> has quit
14:30 <codesmithKarl> has joined #xwiki
14:34 <codesmithKarl> has quit
14:50 <codesmithKarl> has joined #xwiki
14:55 <codesmithKarl> has quit
15:00 <ClemensR> has joined #xwiki
15:08 <codesmithKarl> has joined #xwiki
15:13 <codesmithKarl> has quit
15:15 <msmeria> has quit
15:16 <DarkKnightCZ> has quit
15:19 <j-simard> has joined #xwiki
15:27 <codesmithKarl> has joined #xwiki
15:32 <codesmithKarl> has quit
15:41 <vmassol> tmortagne: do we have a Map Converter to convert a string into a map?
15:41 <vmassol> (as we have for lists)
15:41 <vmassol> quickly searched and couldn't find one
15:43 <vmassol> something like:       key1:value1, key2:value2
15:43 <tmortagne> I don't think so, never had the need yet
15:44 <vmassol> ok
15:44 <tmortagne> you have the need in which context ?
15:44 <vmassol> jira macro
15:44 <vmassol> for example for the field names (and field types that I'm introducing too)
15:45 <vmassol> so far I've been forcing users to provide a full ordered list
15:45 <tmortagne> macros have free form parameters system for this use case, unless you thing you might have conflict with other parameters
15:45 <tmortagne> s/thing/think/
15:45 <vmassol> not sure what free form parameters are
15:47 <vmassol> I think I'm going to implement my own system
15:47 <codesmithKarl> has joined #xwiki
15:48 <vmassol> fieldname1[fieldname1]{fieldtype1},fieldname2[fieldname2]{fieldtype2}
15:48 <tmortagne> vmassol: you can make you macro accept unknown parameters
15:49 <tmortagne> i.e. instead of a parameter taking a map user just set other parameters
15:49 <vmassol> how does that work? I don't remember seeing this
15:49 <vmassol> does the wysiwyg support it too?
15:49 <tmortagne> {{macro knownparameter="value" freeparameter="value1" freeparameter="value2"}}
15:49 <vmassol> I mean from a parameter class pov
15:50 <tmortagne> by definition those are unknown parameters so the WYSIWYG won't tell you anything
15:50 <vmassol> ok so no go for me
15:50 <tmortagne> I don't know how the UI is taking care of it
15:50 <tmortagne> mflorea ?
15:50 <vmassol> tmortagne: you know of a macro using this so that I can take a look?
15:50 <vmassol> (I still don't see how I'd cdoe this in my parameter class)
15:51 <mflorea> tmortagne: the editor shows only the params that are listed in the descriptor
15:51 <tmortagne> that's how wiki macro get its parameters for example since it does not have a Java class with the parameters described in it
15:52 <mflorea> so undeclared params are not editable from the wysiwyg
15:52 <vmassol> and cannot be created
15:52 <vmassol> either
15:52 <vmassol> ok so simpler syntax for me: fieldname1:fieldname1!fieldtype1
15:52 <tmortagne> vmassol: you can do a custom descriptor
15:52 <tmortagne> if you want to see the parameters in the WYSIWYG
15:52 <tmortagne> like wiki macro does
15:53 <vmassol> wiki macros have fixed params
15:53 <vmassol> this is completely unbound
15:53 <tmortagne> there is a helper that automatically generate a descriptor from a java bean but then you can add any parameter you want in this descriptor
15:53 <vmassol> I don't think that can work
15:53 <tmortagne> what ?
15:53 <vmassol> the fields are not known from the macro
15:54 <tmortagne> ok so you can't give any information about the parameters indeed
15:55 <tmortagne> actually we do have something in properties
15:55 <tmortagne> we have a converter for Properties
15:55 <tmortagne> so if you use Properties files syntax you could use Properties as parameter type
15:55 <vmassol> what's the syntax?
15:56 <vmassol> key:value, ke:value
15:56 <vmassol> ?
15:56 <tmortagne> you are asking be what is the syntax or a properties file ?
15:56 <tmortagne> s/be/me/
15:56 <vmassol> for a properties yes
15:56 <vmassol> since we don't use htat
15:56 <vmassol> we use multiline properties
15:57 <tmortagne> AFAIK as long as you don't close the " the property value continue
15:57 <tmortagne> i.e. you can have new line in it
15:57 <vmassol> ok ugly then
15:58 <vmassol> (if the user has to separate entries by \n ;))
15:58 <tmortagne> much easier in WYSIWYG side to use this syntax that a map in a line
16:00 <tmortagne> anyway if you want to define a syntax for a map properties would be better to move the discussion on mails probably
16:00 <vmassol> except that I won't be able to use it anyway
16:00 <vmassol> since I need to support 6.4+
16:00 <vmassol> that's why I was asking if there was already one
16:01 <vmassol> so I'll probablt write one for the jira macro
16:01 <tmortagne> sure but still if you need a syntax for map it's better to discuss a standard one
16:01 <vmassol> well my use case is different
16:01 <vmassol> I need to a triplet, not a pair
16:01 <vmassol> s/to/
16:02 <tmortagne> from properties point of view it means a Map<String, List> so still a map
16:02 <tmortagne> Map<String, List<String>>
16:02 <vmassol> yes but from a string syntax pov it's very different
16:02 <codesmithKarl> has quit
16:03 <tmortagne> not sure why you were asking for an existing map support then if you don't think you could reuse it
16:03 <vmassol> also I want to be able have all values optional
16:04 <vmassol> so I can't use the same separator for value 1 and vlaue2
16:05 <vmassol> I'm close to proposing a syntax inside the macro content….
16:05 <vmassol> ;)
16:05 <tmortagne> the macro does not have a content .
16:05 <tmortagne> ?
16:05 <vmassol> looks a bit like the livetable macro when defining the columns
16:06 <vmassol> it doest that's currenrlt where the source data is located
16:06 <vmassol> but it could be extended
16:06 <vmassol> in supporting several piece of data and not just the source data
16:06 <tmortagne> what is this map about ?
16:06 <vmassol> let me design something and I'll paste it
16:07 <tmortagne> if the content is free when you need a map it would certainly be much easier to put it in the content using properties syntax than in a parameter (also much easier to implement)
16:14 <DarkKnightCZ> has joined #xwiki
16:18 <codesmithKarl> has joined #xwiki
16:18 <vmassol> so for example: https://gist.github.com/vmassol/367daef6941a61f163b77e87e044b05d
16:18 <vmassol> a bit more verbose though
16:18 <vmassol> but a lot more powerful
16:19 <vmassol> actually even the style could be in the content
16:20 <vmassol> updated
16:21 <vmassol> I'm worried about the verbosity and usage complexity though...
16:25 <codesmithKarl> has quit
16:26 <vmassol> updated again
16:26 <vmassol> option 1 is clearly less verbose
16:27 <tmortagne> writing json by hand is really a pain
16:27 <vmassol> yes...
16:28 <tmortagne> (but it's standard and easy to parse)
16:28 <vmassol> yup
16:30 <vmassol> I've added option 3 just for fun but ATM I prefer option 1
16:31 <vmassol> it's also simpler for using in the wysiwyg editor
16:40 <codesmithKarl> has joined #xwiki
16:45 <codesmithKarl> has quit
16:51 <acotiuga> has quit
16:56 <edvorg> has joined #xwiki
17:00 <codesmithKarl> has joined #xwiki
17:01 <anticiti1en> has joined #xwiki
17:05 <codesmithKarl> has quit
17:12 <KermitTheFragger> has quit
17:20 <codesmithKarl> has joined #xwiki
17:23 <cjd> ECM question:   Can I register a component which implements multiple interfaces (which are all annotated @Role) and then look it up as different @Roles ?
17:25 <codesmithKarl> has quit
17:28 <tmortagne> cjd: won't be the same instance, one instance will be initialized for each @Role
17:28 <cjd> even if @Singleton ?
17:28 <cjd> anyway it's not what I want so I
17:28 <tmortagne> you will get one @Singleton for each @Role yes
17:28 <cjd> 'll find a different solution... thanks
17:29 <tmortagne> if it was not a @Singleton it would be a new instance for each call anyway
17:29 <tmortagne> several roles or not
17:32 <cjd> indeed
17:32 <cjd> Binding the realtime message bus to the XWiki event system so that you can just listen for stuff like document save events in the browser
17:32 <cjd> in case we need that
17:32 <cjd> (I suspect we will)
17:33 <DarkKnightCZ> has quit
17:36 <boubou> tmortagne ;)
17:37 <boubou> vmassol
17:37 <boubou> Known bug. Fixed in 7.0.56 onwards.
17:37 <boubou> about my issue with Tomcat 7
17:39 <codesmithKarl> has joined #xwiki
17:40 <evalica> has quit
17:43 <evalica> has joined #xwiki
17:45 <codesmithKarl> has quit
17:58 <edvorg> has quit
17:58 <codesmithKarl> has joined #xwiki
18:01 <j-simard> has quit
18:01 <anticiti1en> Hello all..
18:02 <anticiti1en> I upgraded xwiki to 8.1 via apt-get, updated java, and when going to the xiki via the web browser it takes me to an upgrade control panel to perform the upgrade... why aren't I asked for credentials?
18:02 <anticiti1en> it looks like anyone who visited my wiki could click 'never' to the upgrade option
18:03 <codesmithKarl> has quit
18:04 <anticiti1en> I am referring to this panel (screenshot): http://i.imgur.com/Cr8vIeW.png
18:04 <anticiti1en> shouldn't access to that page be restricted?
18:05 <evalica> has quit
18:05 <vmassol> anticiti1en: you see this wizard because you're logged as admin
18:05 <vmassol> (through existing cookies probably)
18:05 <anticiti1en> oh. duh! thanks :)
18:06 <anticiti1en> dumb question, sorry!
18:06 <vmassol> np
18:08 <tmortagne> yep probably cookie based automatic login
18:08 <tmortagne> would probably makes thing less confusing if we were showing the current user in the DW
18:08 <vmassol> yep
18:10 <Enygma`> has quit
18:11 <anticiti1en> yeah, i assumed that control panel was presented to whomever accessed the site after update... i didn't even consider that i was already logged in
18:14 <tmortagne> when you don't have admin right you see the wiki as if nothing was happening (except that you might see things changing while the admin is applying the upgrade)
18:15 <anticiti1en> i see, thanks. i'm still pretty new to this
18:15 <anticiti1en> had a minor panic when the update broke things (due to java) but i got it sorted.
18:16 <vmassol> anticiti1en: what happened?
18:16 <vmassol> ah
18:16 <vmassol> you mean the java version
18:16 <anticiti1en> yeah
18:16 <vmassol> yeah xwiki 8.1 requires java 8
18:16 <tmortagne> yes we are missing a first page in the upgrade process which validate environment (there is enough memory, it's the right version of java, etc.)
18:17 <anticiti1en> after updating java, i had to edit /etc/default/tomcat7 to point to the correct java dir
18:19 <codesmithKarl> has joined #xwiki
18:24 <codesmithKarl> has quit
18:37 <codesmithKarl> has joined #xwiki
18:43 <codesmithKarl> has quit
18:43 <Denis> has joined #xwiki
18:44 <DarkKnightCZ> has joined #xwiki
18:47 <ClemensR> has quit
18:47 <Denis1> has quit
18:51 <vmassol1> has joined #xwiki
18:52 <vmassol> has quit
18:54 <cjd> has quit
18:57 <mflorea> has quit
18:58 <codesmithKarl> has joined #xwiki
19:02 <tmortagne> has quit
19:03 <codesmithKarl> has quit
19:09 <cjd> has joined #xwiki
19:17 <anticiti1en> has quit
19:18 <codesmithKarl> has joined #xwiki
19:23 <codesmithKarl> has quit
19:31 <cjd> has quit
19:38 <codesmithKarl> has joined #xwiki
19:42 <codesmithKarl> has quit
19:57 <codesmithKarl> has joined #xwiki
20:03 <codesmithKarl> has quit
20:16 <codesmithKarl> has joined #xwiki
20:22 <codesmithKarl> has quit
20:37 <codesmithKarl> has joined #xwiki
20:41 <codesmithKarl> has quit
20:51 <fredimartins> has joined #xwiki
20:53 <fredimartins> hello! i'm trying to update xwiki from 8.0 to 8.1, java7 to java8 and tomcat7 to tomcat8 on ubuntu. After update all, xwiki platform send this error on extension updater: "Failed to create directory within 10000 attempts" someone can help?
20:57 <codesmithKarl> has joined #xwiki
21:01 <codesmithKarl> has quit
21:10 <Slashman> has quit
21:13 <abusenius> has joined #xwiki
21:17 <codesmithKarl> has joined #xwiki
21:21 <codesmithKarl> has quit
21:36 <codesmithKarl> has joined #xwiki
21:42 <codesmithKarl> has quit
21:57 <codesmithKarl> has joined #xwiki
22:02 <codesmithKarl> has quit
22:07 <fredimartins> has quit
22:11 <vmassol> has joined #xwiki
22:11 <vmassol1> has quit
22:17 <codesmithKarl> has joined #xwiki
22:22 <codesmithKarl> has quit
22:25 <gdelhumeau> has quit
22:37 <codesmithKarl> has joined #xwiki
22:41 <codesmithKarl> has quit
22:56 <codesmithKarl> has joined #xwiki
23:01 <codesmithKarl> has quit
23:08 <DarkKnightCZ> has quit
23:08 <DarkKnightCZ> has joined #xwiki
23:08 <DarkKnightCZ> has quit
23:09 <edvorg> has joined #xwiki
23:11 <vmassol> has quit
23:13 <Aranjedeath> has quit
23:17 <codesmithKarl> has joined #xwiki
23:22 <codesmithKarl> has quit
23:37 <codesmithKarl> has joined #xwiki
23:39 <sagarhani> has quit
23:41 <sagarhani> has joined #xwiki
23:42 <codesmithKarl> has quit
23:57 <codesmithKarl> has joined #xwiki
23:57 <DarkKnightCZ> has quit

Get Connected