IRC Archive for channel #xwiki on 01 June 2016

Last modified by Vincent Massol on 2016/06/01 23:47

<codesmithKarl> has quit
00:17 <codesmithKarl> has joined #xwiki
00:22 <codesmithKarl> has quit
00:36 <codesmithKarl> has joined #xwiki
00:42 <codesmithKarl> has quit
00:42 <boubou> has quit
00:55 <boubou> has joined #xwiki
00:57 <codesmithKarl> has joined #xwiki
01:01 <codesmithKarl> has quit
01:16 <codesmithKarl> has joined #xwiki
01:21 <codesmithKarl> has quit
01:37 <codesmithKarl> has joined #xwiki
01:42 <codesmithKarl> has quit
01:51 <abusenius> has quit
01:57 <codesmithKarl> has joined #xwiki
02:03 <codesmithKarl> has quit
02:17 <codesmithKarl> has joined #xwiki
02:22 <codesmithKarl> has quit
02:36 <codesmithKarl> has joined #xwiki
02:41 <codesmithKarl> has quit
02:56 <codesmithKarl> has joined #xwiki
03:02 <codesmithKarl> has quit
03:17 <codesmithKarl> has joined #xwiki
03:22 <codesmithKarl> has quit
03:31 <edvorg> has quit
03:35 <codesmithKarl> has joined #xwiki
03:40 <codesmithKarl> has quit
03:53 <codesmithKarl> has joined #xwiki
03:59 <codesmithKarl> has quit
04:13 <codesmithKarl> has joined #xwiki
04:17 <codesmithKarl> has quit
04:30 <codesmithKarl> has joined #xwiki
04:37 <codesmithKarl> has quit
04:52 <codesmithKarl> has joined #xwiki
04:57 <codesmithKarl> has quit
05:12 <codesmithKarl> has joined #xwiki
05:17 <codesmithKarl> has quit
05:32 <codesmithKarl> has joined #xwiki
05:38 <codesmithKarl> has quit
05:53 <codesmithKarl> has joined #xwiki
05:57 <codesmithKarl> has quit
06:12 <codesmithKarl> has joined #xwiki
06:17 <codesmithKarl> has quit
06:32 <codesmithKarl> has joined #xwiki
06:34 <mflorea> has joined #xwiki
06:38 <codesmithKarl> has quit
06:53 <codesmithKarl> has joined #xwiki
06:58 <codesmithKarl> has quit
07:03 <DarkKnightCZ> has joined #xwiki
07:12 <codesmithKarl> has joined #xwiki
07:16 <codesmithKarl> has quit
07:30 <codesmithKarl> has joined #xwiki
07:33 <msmeria> has joined #xwiki
07:33 <vmassol> has joined #xwiki
07:37 <codesmithKarl> has quit
07:52 <codesmithKarl> has joined #xwiki
07:54 <vmassol> has quit
07:58 <codesmithKarl> has quit
08:12 <codesmithKarl> has joined #xwiki
08:15 <msmeria> has quit
08:17 <codesmithKarl> has quit
08:30 <acotiuga> has joined #xwiki
08:32 <codesmithKarl> has joined #xwiki
08:38 <codesmithKarl> has quit
08:40 <KermitTheFragger> has joined #xwiki
08:45 <msmeria> has joined #xwiki
08:51 <codesmithKarl> has joined #xwiki
08:56 <codesmithKarl> has quit
09:02 <mflorea> has quit
09:07 <tmortagne> has joined #xwiki
09:11 <codesmithKarl> has joined #xwiki
09:16 <codesmithKarl> has quit
09:21 <mflorea> has joined #xwiki
09:29 <vmassol> has joined #xwiki
09:30 <codesmithKarl> has joined #xwiki
09:37 <gdelhumeau> has joined #xwiki
09:38 <codesmithKarl> has quit
09:44 <fitz> has joined #xwiki
09:44 <Enygma`> has joined #xwiki
09:46 <evalica> has joined #xwiki
09:51 <codesmithKarl> has joined #xwiki
09:56 <codesmithKarl> has quit
10:10 <codesmithKarl> has joined #xwiki
10:11 <Slashman> has joined #xwiki
10:12 <ol-ow2> has joined #xwiki
10:18 <codesmithKarl> has quit
10:33 <codesmithKarl> has joined #xwiki
10:33 <evalica1> has joined #xwiki
10:35 <msmeria1> has joined #xwiki
10:36 <evalica> has quit
10:36 <msmeria> has quit
10:38 <codesmithKarl> has quit
10:47 <msmeria1> is now known as <msmeria>
10:52 <codesmithKarl> has joined #xwiki
10:53 <fitz> has quit
10:54 <fitz> has joined #xwiki
10:57 <codesmithKarl> has quit
11:12 <codesmithKarl> has joined #xwiki
11:18 <codesmithKarl> has quit
11:22 <boubou> has quit
11:27 <evalica1> is now known as <evalica>
11:51 <codesmithKarl> has joined #xwiki
11:55 <codesmithKarl> has quit
12:10 <codesmithKarl> has joined #xwiki
12:15 <codesmithKarl> has quit
12:18 <boubou> has joined #xwiki
12:27 <SputnikkCylon> has quit
12:30 <codesmithKarl> has joined #xwiki
12:35 <codesmithKarl> has quit
12:48 <codesmithKarl> has joined #xwiki
12:52 <codesmithKarl> has quit
13:03 <msmeria> has quit
13:06 <msmeria> has joined #xwiki
13:07 <codesmithKarl> has joined #xwiki
13:13 <codesmithKarl> has quit
13:20 <flashdel> has quit
13:26 <codesmithKarl> has joined #xwiki
13:31 <codesmithKarl> has quit
13:47 <codesmithKarl> has joined #xwiki
13:50 <msmeria> has quit
13:52 <codesmithKarl> has quit
13:55 <msmeria> has joined #xwiki
14:03 <msmeria1> has joined #xwiki
14:03 <msmeria> has quit
14:05 <codesmithKarl> has joined #xwiki
14:13 <codesmithKarl> has quit
14:27 <codesmithKarl> has joined #xwiki
14:33 <codesmithKarl> has quit
14:34 <Enygma`> has quit
14:38 <Enygma`> has joined #xwiki
14:44 <Denis> has quit
14:45 <Denis> has joined #xwiki
14:46 <codesmithKarl> has joined #xwiki
14:49 <acotiuga> has quit
14:49 <vmassol> has anyone ever defined a wiki component with a dependency?
14:50 <vmassol> trying to find how to access it from a groovy method
14:50 <vmassol> doc says: "xcontext.method.<binding name>" but it doesn't seem to work
14:50 <vmassol> trying to find in the code where the binding is saved...
14:51 <vmassol> but I can't....
14:51 <vmassol> I wonder if it's working actually....
14:51 <codesmithKarl> has quit
14:52 <vmassol> FTR the context binding is prepared here: https://github.com/xwiki/xwiki-platform/blob/775f9365fe6abd2bb09ea8dab3cf319fc9316603/xwiki-platform-core/xwiki-platform-component/xwiki-platform-component-wiki/src/main/java/org/xwiki/component/wiki/internal/DefaultWikiComponentMethodExecutor.java#L160-L160
14:58 <msmeria1> has quit
14:59 <Denis> has quit
15:07 <codesmithKarl> has joined #xwiki
15:12 <codesmithKarl> has quit
15:14 <vmassol> found a workaround...
15:14 <vmassol> by using services.component.getInstance()...
15:15 <DarkKnightCZ> has quit
15:27 <codesmithKarl> has joined #xwiki
15:31 <codesmithKarl> has quit
15:38 <tmortagne> vmassol: seems to be in https://github.com/xwiki/xwiki-platform/blob/775f9365fe6abd2bb09ea8dab3cf319fc9316603/xwiki-platform-core/xwiki-platform-component/xwiki-platform-component-wiki/src/main/java/org/xwiki/component/wiki/internal/DefaultWikiComponentInvocationHandler.java#L86 actually
15:39 <Denis> has joined #xwiki
15:39 <tmortagne> the code seems to do something but never used this
15:42 <tmortagne> (does not make much sense to me to put that in a "method" binding, should probably have a "component" binding instead)
15:46 <codesmithKarl> has joined #xwiki
15:50 <vmassol> tmortagne: I've foudn this code but it's the injection part not the binding
15:50 <vmassol> ie access to the binding name
15:51 <vmassol> ah my bad
15:51 <vmassol> I missed the last line
15:51 <vmassol> hmmm
15:51 <vmassol> then I don't know why it didn't work
15:51 <tmortagne> that's the part doing both injection and filling the map that is then put in the biding
15:51 <tmortagne> the code seems legit yes
15:51 <vmassol> anyway, the workaround worked fine and is actually simpler to use
15:51 <vmassol> one line of groovy vs having to add an xobject
15:51 <tmortagne> you should report a jira issue
15:52 <vmassol> yes I'll try a bit more just ot be sure
15:52 <tmortagne> well it's not exactly the same thing, with injection you indicate that this dependency is required
15:52 <vmassol> yes it's not the same exactly
15:52 <vmassol> the injection is done only once
15:52 <codesmithKarl> has quit
15:52 <vmassol> my workaround is called every time
15:52 <tmortagne> should be done only once, this code seems to be called for each method call
15:53 <tmortagne> (which is wrong)
15:53 <vmassol> yes
15:53 <tmortagne> various issue around dependencies
15:53 <tmortagne> $issues
15:55 <Denis> has quit
15:55 <vmassol> ok confirmed
15:55 <vmassol> raising jira
15:56 <vmassol> I think the problem is that it's the key that is bound
15:56 <vmassol> checking
15:58 <vmassol> no that's ok actually
16:00 <vmassol> so I do have the key bound in the method context
16:00 <vmassol> it's the value that is null
16:01 <Denis> has joined #xwiki
16:01 <vmassol> ah I'm the in the exception case actually
16:01 <vmassol> and I do have a warning in the log
16:01 <vmassol> checking
16:02 <vmassol> I think I know
16:02 <vmassol> I'm using "default" as the hint
16:02 <vmassol> trying without a hint to see if it works better
16:03 <vmassol> yeah the issue is that it doesn't work with default hints...
16:03 <vmassol> passing an empty hint is not handled
16:03 <vmassol> reporting
16:04 <vmassol> this is the buggy line: https://github.com/xwiki/xwiki-platform/blob/44efa6b512319b8eab4959a8e35f6144fa02f17e/xwiki-platform-core/xwiki-platform-component/xwiki-platform-component-wiki/src/main/java/org/xwiki/component/wiki/internal/bridge/DefaultWikiComponentBridge.java#L173-L173
16:04 <vmassol> it needs an "if"
16:04 <vmassol> fixing
16:04 <martinus__> has quit
16:06 <Denis1> has joined #xwiki
16:07 <codesmithKarl> has joined #xwiki
16:08 <Denis> has quit
16:10 <Denis> has joined #xwiki
16:12 <codesmithKarl> has quit
16:13 <DarkKnightCZ> has joined #xwiki
16:14 <Denis1> has quit
16:16 <tmortagne> fitz: Hi
16:17 <tmortagne> your twitter account is https://twitter.com/fitzleee ?
16:17 <tmortagne> (about to send a twitt from xwikiorg account for the alpha version)
16:21 <tmortagne> twit sent :)
16:25 <codesmithKarl> has joined #xwiki
16:30 <codesmithKarl> has quit
16:33 <fitz> tmortagne, yes it is, but I don't use twitter often :)
16:33 <tmortagne> fitz: yep I guessed so but I wanted to put some reference in the twit
16:34 <fitz> well, thank you
16:43 <codesmithKarl> has joined #xwiki
16:49 <codesmithKarl> has quit
16:58 <tmortagne> fitz: by the way, I'm currently working on an OpenId Connect provider extension for XWiki. If you want when you are done with the original plan for the GSOC we could imagine working on making the Android authenticator use the OIDC endpoint instead of BASIC auth when available (would make things a lot cleaner with proper access token etc) but since it's only working on recent versions of XWiki and is just an extension I think it's still nice to sup
17:02 <codesmithKarl> has joined #xwiki
17:03 <fitz> it's ok :) OIDC may be a good choice to ensure security even though I am not familiar with it.
17:06 <tmortagne> it's pretty new but it's basically OAuth2 with a endpoint to get user information
17:06 <tmortagne> just an idea, we can discuss that later
17:08 <evalica> has quit
17:08 <codesmithKarl> has quit
17:09 <tmortagne> mflorea: so you implemented new displayers for each type of property for the new macro support in CKEditor wiki ?
17:11 <tmortagne> asking because I would need the same kind of displayer for filter application which have the same properties descriptors than macros
17:12 <mflorea> tmortagne: I haven't implemented displayers, it's just an IF that checks for some known parameter types https://github.com/xwiki-contrib/application-ckeditor/blob/master/plugins/src/main/resources/xwiki-macro/macroEditor.js#L161
17:13 <mflorea> nothing fancy
17:13 <mflorea> for now
17:14 <tmortagne> ok, would be nice at some point to have some kind of displayers extensions associated to the a property type
17:15 <mflorea> depends what kind of properties you have in mind. Here I have the macro parameter descriptor
17:16 <mflorea> you mean the parameter type could be an xproperty type?
17:19 <tmortagne> I mean macro parameters can have anything since any extension can provide it's own types as long as it provide corresponding Converter
17:19 <tmortagne> I'm not talking about xproperty
17:20 <tmortagne> I'm talking about the actual type of the property and how to display it and the fact that you can't know all possible types
17:22 <KermitTheFragger> has quit
17:23 <codesmithKarl> has joined #xwiki
17:28 <codesmithKarl> has quit
17:43 <codesmithKarl> has joined #xwiki
17:47 <codesmithKarl> has quit
17:50 <fitz> hi, Enygma`  I just want to use the Gallery Macro in the page, but the MacroExecutionException occurred.
17:50 <fitz> in this page, http://extensions.xwiki.org/xwiki/bin/view/Extension/Android+authenticator/
17:51 <fitz> I have uploaded the screenshots, just copied the code
17:51 <fitz> don't know why? could some one help me?
17:51 <tmortagne> fitz: the error is not about gallery macro but about velocity macro
17:51 <tmortagne> you will have to list the attachment explciitly
17:52 <vmassol> has quit
17:52 <tmortagne> script macro are not allowed in extensions pages right now
17:52 <tmortagne> like in the first example of http://extensions.xwiki.org/xwiki/bin/view/Extension/Gallery+Macro
17:54 <fitz> yes, I followed the link and copied the velocity code in the extension page. it can't work.
17:54 <tmortagne> yes but the first example does not use Velocity, it just list attachments
17:54 <tmortagne> in your case it's ok since you know the attachments, just need to copy pasted the names
17:54 <tmortagne> s/pasted/paste/
17:56 <evalica> has joined #xwiki
17:57 <fitz> ok, I have a try :) .
18:01 <codesmithKarl> has joined #xwiki
18:04 <fitz> it's ok, but it seems loading the images very slowly.
18:06 <tmortagne> does not load them at all for me
18:06 <codesmithKarl> has quit
18:06 <tmortagne> you sure you used the right names ?
18:08 <fitz> yes, I am sure. I think, maybe because of the image resolution
18:08 <Enygma`> fitz: fixed it. http://extensions.xwiki.org/xwiki/bin/view/Extension/Android+authenticator/ You had an extra space after "image:".
18:08 <Enygma`> a good opportunity to check out XWiki`s image syntax http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HImages ;)
18:09 <tmortagne> I guess the macro should be more explicit about things it cannot find instead of loading
18:10 <fitz> oh, I see. thank you very much!
18:11 <Enygma`> thank you too. now I was able to follow the images :) nice
18:12 <tmortagne> mflorea: looks like you are the star of fitz's screenshots :)
18:17 <mflorea> tmortagne: I noticed it :P
18:20 <codesmithKarl> has joined #xwiki
18:21 <mflorea> note that I were the GSoC t-shirt in that photo, although it's not visible :P
18:27 <tmortagne> fitz: when i'm done logging in and I choose "complete" the synchronization is not enabled, I have to go to the account and explicitly enable contact synchronization
18:27 <tmortagne> I would have expected it to be enabled by default
18:28 <codesmithKarl> has quit
18:28 <fitz> yes, default it's "Don't Sync" because maybe there're lots of users in the server.
18:29 <fitz> and I don't know if the user want to synchronize all the users.
18:30 <tmortagne> hmm wait I think i did not choose the synchronization mode, I just tough "complete" button means "full" synchronization :)
18:30 <tmortagne> so the mode is empty for me rigth now
18:31 <tmortagne> you should maybe select "Don't sync" by default so that it's more clear
18:31 <tmortagne> actually the synchronizaton type does not work for me
18:31 <tmortagne> it stay empty
18:32 <tmortagne> ha no it just take a long time to load the groups it seems
18:32 <tmortagne> I think some message saying its loading the groups is missing here :)
18:33 <fitz> yes, it's slow. Maybe I should optimize the solr query and http request. :)
18:34 <tmortagne> before optimize you should display something to make clear it's doing something
18:35 <fitz> ok, I will update soon. thank you very much for helping me test the app.
18:35 <tmortagne> I have a graphical bug on Android 4.4.4, the application takes the whole screen but the standard Android top bar and buttons are still displayed so I end up with Android home button on top of the application buttons for example and I have to turn the phone to click on "Complete"
18:36 <tmortagne> fitz: will create a jira issue with a screenshot
18:37 <fitz> ok, and I will test again with the genymotion android emulator.
18:39 <tmortagne> fitz: you should release 0.2 version on Jira so that people can indicate which version they are refering to when creating an issue
18:39 <gdelhumeau> has quit
18:41 <codesmithKarl> has joined #xwiki
18:41 <tmortagne> fitz: http://jira.xwiki.org/browse/ANDAUTH-15
18:42 <tmortagne> fitz: re the version you can create and release them on http://jira.xwiki.org/plugins/servlet/project-config/ANDAUTH/versions
18:44 <fitz> ok, thank you very much!
18:44 <tmortagne> fitz: about the groups that are slow to load, you should probably separate the sync mode and the group selection in two separate configurations (for example in my case I don't care about the groups I just want everyone)
18:45 <tmortagne> but even when I selecet "Sync all user" it looks like I have to wait for the groups
18:45 <tmortagne> creating a jira issue, will be easier to follow for you
18:47 <fitz> I just released the 0.2 version on Jira.
18:47 <fitz> I will optimize ASAP :).
18:47 <tmortagne> fitz: ok thanks
18:49 <tmortagne> fitz: you created the version but you did not "released" it
18:49 <tmortagne> put your move over the version line and you should get an option icon in which you can do release
18:49 <tmortagne> forget that
18:49 <tmortagne> you did, I just tried it too quickly :)
18:49 <codesmithKarl> has quit
18:53 <tmortagne> has quit
18:54 <mflorea> has quit
18:55 <tmortagne> has joined #xwiki
18:56 <fitz> tmortagne, thanks a lot.
18:56 <fitz> but I should go to sleep:). it's 0:53. see you!
18:57 <tmortagne> fitz: sure
18:57 <tmortagne> if I get anything else I will directly put it on jira
18:59 <fitz> has quit
19:05 <codesmithKarl> has joined #xwiki
19:10 <codesmithKarl> has quit
19:10 <Aranjedeath> has joined #xwiki
19:11 <gene> has quit
19:13 <gene> has joined #xwiki
19:13 <evalica> has quit
19:16 <Enygma`> has quit
19:21 <abusenius> has joined #xwiki
19:24 <codesmithKarl> has joined #xwiki
19:27 <tmortagne> has quit
19:29 <codesmithKarl> has quit
19:45 <codesmithKarl> has joined #xwiki
19:50 <codesmithKarl> has quit
20:05 <codesmithKarl> has joined #xwiki
20:09 <codesmithKarl> has quit
20:19 <vmassol> has joined #xwiki
20:23 <codesmithKarl> has joined #xwiki
20:28 <codesmithKarl> has quit
20:41 <vmassol1> has joined #xwiki
20:44 <codesmithKarl> has joined #xwiki
20:45 <vmassol> has quit
20:49 <codesmithKarl> has quit
20:49 <vmassol1> has quit
20:53 <Slashman> has quit
21:04 <codesmithKarl> has joined #xwiki
21:09 <codesmithKarl> has quit
21:24 <codesmithKarl> has joined #xwiki
21:29 <codesmithKarl> has quit
21:42 <codesmithKarl> has joined #xwiki
21:48 <codesmithKarl> has quit
21:48 <ol-ow2> has quit
22:03 <codesmithKarl> has joined #xwiki
22:07 <codesmithKarl> has quit
22:12 <vmassol> has joined #xwiki
22:22 <codesmithKarl> has joined #xwiki
22:28 <codesmithKarl> has quit
22:43 <codesmithKarl> has joined #xwiki
22:47 <codesmithKarl> has quit
22:58 <DarkKnightCZ> has quit
23:02 <codesmithKarl> has joined #xwiki
23:08 <codesmithKarl> has quit
23:21 <codesmithKarl> has joined #xwiki
23:26 <codesmithKarl> has quit
23:32 <vmassol> has quit
23:41 <codesmithKarl> has joined #xwiki
23:47 <vmassol> has joined #xwiki
23:47 <codesmithKarl> has quit

Get Connected