IRC Archive for channel #xwiki on 03 February 2012

Last modified by Vincent Massol on 2012/10/18 19:22

00:20 <vmassol> has joined #xwiki
00:56 <vmassol> has quit
01:07 <tekzilla> has quit
01:09 <tekzilla> has joined #xwiki
05:07 <DrLou_> has quit
06:00 <Denis1> has joined #xwiki
06:03 <Denis> has quit
08:14 <rrodriguez> has quit
08:44 <vmassol> has joined #xwiki
09:03 <jvdrean> has joined #xwiki
09:05 <Denis1> is now known as <Denis>
09:10 <mflorea> has joined #xwiki
09:11 <Denis> has quit
09:41 <sburjan> has joined #xwiki
10:05 <vmassol> good morning
10:05 <vmassol> found a bug in the AS this morning: http://jira.xwiki.org/browse/XWIKI-7487
10:05 <vmassol> (it may have already been reported)
10:06 <vmassol> it is indeed a dup http://jira.xwiki.org/jira/browse/XWIKI-6709
10:06 <vmassol> I'll fix this
10:07 <vmassol> since 3.1RC1 hmmm
10:41 <tmortagne> has joined #xwiki
10:48 <sdumitriu> has quit
11:36 <mflorea> has quit
11:37 <sburjan> has quit
11:53 <SvenDowideit> has quit
11:54 <SvenDowideit> has joined #xwiki
11:55 <SvenDowideit> has quit
11:55 <SvenDowideit> has joined #xwiki
12:45 <jvdrean> has quit
13:18 <vmassol> wow almost nobody here :)
14:12 <CIA-120> tmortagne master * re26a7d4 https://github.com/xwiki/xwiki-commons/commit/e26a7d4291f4fe2dc6b49ed8d307522d7046f8cb / (5 files in 2 dirs): XCOMMONS-90: Add a ConfigurationSource Provider which provide an default ...
14:24 <CIA-120> tmortagne master * r5478c0d https://github.com/xwiki/xwiki-platform/commit/5478c0d2cd6404658e11ea1e743259f71ec8338d / (5 files in 5 dirs): XWIKI-7452: Can't resolve an extension with id containing UTF-8 char in ...
14:24 <CIA-120> tmortagne master * r43141f6 https://github.com/xwiki/xwiki-platform/commit/43141f687e5b1f08cc68fc6d648365657c90c6f3 / (6 files): Improve codestyle - http://git.io/idVh8A
14:38 <vmassol> has quit
14:42 <DrLou> has joined #xwiki
14:48 <@cjd> ahh long urls
15:48 <tmortagne> has quit
16:00 <tmortagne> has joined #xwiki
16:07 <tmortagne> has quit
16:08 <Denis> has joined #xwiki
16:35 <sdumitriu> has joined #xwiki
17:13 <abusenius> has joined #xwiki
17:52 <Denis> has quit
19:14 <SvenDowideit> has quit
20:50 <vmassol> has joined #xwiki
20:53 <vmassol> seems we have all functional tests broken
20:53 <vmassol> looks like a real problem
20:53 <vmassol> http://ci.xwiki.org/job/xwiki-enterprise-test-escaping/org.xwiki.enterprise$xwiki-enterprise-test-escaping/1040/testReport/org.xwiki.test.escaping/AllTests/org_xwiki_test_escaping_AllTests/
20:54 <vmassol> caused by thomas' last commit I think
20:59 <vmassol> ouch seems we have a bug in our Provider support
21:01 <vmassol> both are registrered with the same role and hint....
21:09 <vmassol> hmm we could combine hint + provider's provided class name as the provider component hint
21:21 <eparent> has joined #xwiki
21:21 <eparent> Hi all.
21:22 <eparent> I'm trying to add users programmatically using the XML-RPC API and Python.
21:22 <eparent> I get an error when my script reaches the line:       proxy.confluence1.hasUser(token, username)
21:23 <eparent> The proxy connexion is fine; I could login as Admin on my wiki.
21:23 <eparent> Any ideas what I would possibly doing wrong?
21:25 <@cjd> Could you paste your whole script?
21:26 <@cjd> it's hard to tell since it looks like you're using a python wrapper around xmlrpc
21:41 <@sdumitriu> XML-RPC is kind of deprecated
21:41 <@sdumitriu> As in, not maintained
21:46 <eparent> What else should I use then?
21:46 <@cjd> REST service is maintained now.
21:47 <@cjd> For myself, I usually send an http post request to /xwiki/bin/preview/Space/Page?content={{velocity}}the stuff you want to execute{{/velocity}}
21:47 <@cjd> I know it's primitive but it is something I can test very easily using the preview button in the editor.
21:49 <eparent> Here's my script:
21:49 <eparent> import xmlrpclib wikiURL = "http://192.168.7.9/xwiki" user = "Admin" passw = "admin" proxy = xmlrpclib.ServerProxy(wikiURL + "/xmlrpc") token = proxy.confluence1.login(user, passw) group = "XWikiAllGroup" user[username] = dict( name = 'test_user', fullname = 'fullname', email = last_name + '@blah.com', url = "www.blah.com" ) # error on the following line: if not proxy.confluence1.hasUser(token, username):
21:49 <eparent> Sorry for the spaghetti.
21:50 <@cjd> you can use http://xwiki.pastebay.org for pasting things which are too big for irc
21:51 <@sdumitriu> Use pastebin for that, IRC trims messages to ~400 chars
21:51 <vmassol> trying stopgap solution re provider issue...
21:52 <eparent> http://pastebin.com/qjq2cbQV
21:52 <CIA-120> Vincent Massol master * r5d64e08 https://github.com/xwiki/xwiki-commons/commit/5d64e08d9677baf0d0c644ecc8c1c89aaed11596 / xwiki-commons-core/xwiki-commons-component/xwiki-commons-component-default/src/main/java/org/xwiki/component/embed/EmbeddableComponentManager.java : Removed unused code - http://git.io/KHtycQ
21:52 <CIA-120> Vincent Massol master * r553d61a https://github.com/xwiki/xwiki-commons/commit/553d61a5f65bb891f7a0f733c037ffd041e0f443 / xwiki-commons-core/xwiki-commons-configuration/xwiki-commons-configuration-api/src/main/java/org/xwiki/configuration/internal/ConfigurationSourceProvider.java : XCOMMONS-90: Add a ConfigurationSource Provider which provide an default configuration when no ConfigurationSource can be found ...
21:53 <CIA-120> Vincent Massol master * rd7ac067 https://github.com/xwiki/xwiki-platform/commit/d7ac067dd53892275195e47f82a2a703fbce8d87 / (4 files in 4 dirs): XCOMMONS-90: Add a ConfigurationSource Provider which provide an default configuration when no ConfigurationSource can be found ...
21:54 <eparent> @cjd: http://xwiki.pastebay.org/306851
21:56 <@cjd> heh
21:56 <@cjd> pastebin.com works :)
21:57 <@cjd> what is the error you see?
21:57 <eparent> xmlrpclib.Fault: <Fault 0: 'No such handler: confluence1.hasUser'>
21:59 <abusenius> has quit
21:59 <@cjd> I see
21:59 <eparent> Any idea?
21:59 <@cjd> checking the api...
21:59 <eparent> My first attempt to work with XML-RPC at all.
22:00 <eparent> I looked and, if I understand correctly, it's there.
22:00 <@cjd> I think you'll have more luck with REST or just the hackey method I like but I will help you with this issue.
22:01 <eparent1> has joined #xwiki
22:02 <eparent1> Cool, thanks!
22:02 <eparent1> where can I get the REST documentation?
22:03 <eparent1> I'll start googling but any suggestion is fine for me.
22:04 <@cjd> http://jira.xwiki.org/browse/XWIKI-1559
22:04 <@cjd> hasUser is missing
22:04 <@cjd> but you can use getPage to do similar.
22:04 <eparent1> and I think addUser also.
22:04 <eparent1> a user mandatorily has to have a page associated with him/her?
22:05 <@cjd> correct
22:05 <eparent1> Ah.
22:05 <eparent1> Then I would also have got an error on that part.
22:05 <@cjd> the page (and objects in it) literally are the user
22:05 <eparent1> Ah.
22:05 <@cjd> there is no "passwords table" in the database, just paged
22:05 <@cjd> *pages
22:05 <eparent1> Thanks for the clarification.
22:05 <eparent1> I need to go now. Do you know if there's any documentation about REST for XWiki?
22:06 <eparent> has quit
22:06 <eparent1> Think I got something: http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HCreatinganXWikiObject
22:06 <@cjd> that looks right, I don't know much about rest myself
22:07 <@cjd> but I understand it is well used and well liked.
22:07 <eparent1> Ok then. I'll go in that direction.
22:07 <eparent1> Cheers!
22:07 <eparent1> :-D
22:07 <@cjd> see ya
22:07 <eparent1> has left #xwiki
22:08 <CIA-120> Vincent Massol master * r8e1e511 https://github.com/xwiki/xwiki-platform/commit/8e1e511eae3f050937feec0a817c8efc3ee199b4 / xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-repositories/xwiki-platform-extension-repository-xwiki/xwiki-platform-extension-repository-xwiki-api/src/test/java/org/xwiki/extension/repository/xwiki/UriBuilderTest.java : XWIKI-7452: Can't resolve an extension with id containing UTF-8 char in XWiki Repository ...
22:17 <vmassol> xwiki.org seems real slow
22:18 <vmassol> restarting it it's really too slow
22:22 <xwikibot> has joined #xwiki
23:29 <rrodriguez> has joined #xwiki
23:44 <SvenDowideit> has joined #xwiki

Get Connected