IRC Archive for channel #xwiki on 19 June 2009

Last modified by Vincent Massol on 2012/10/18 18:32

florinciu left at 00:03 ("ChatZilla 0.9.84 [Firefox 3.0.11/2009060215]")
vmassol left at 00:09 ()
sdumitriu left at 00:15 (Read error: 110 (Connection timed out))
sdumitriu joined #xwiki at 00:30
anamarias joined #xwiki at 00:34
marta_ left at 00:35 ("Leaving.")
anamarias_ joined #xwiki at 00:37
anamarias left at 00:51 (Read error: 110 (Connection timed out))
gwash left at 01:14 ("Leaving.")
jvelociter left at 02:07 ()
arkub left at 02:28 (Read error: 110 (Connection timed out))
anamarias_ left at 03:07 ()
sdumitriu left at 04:13 ("Leaving.")
mflorea joined #xwiki at 07:19
arunreddy__ left at 07:25 (Read error: 104 (Connection reset by peer))
marta_ joined #xwiki at 08:01
arunreddy joined #xwiki at 08:12
j-saturne joined #xwiki at 08:19
arkub joined #xwiki at 08:52
maggo joined #xwiki at 09:03
maggo - (19/06/2009 09:04): hi there, does anyone know how to set programming rights in a virtual xwiki?
vmassol joined #xwiki at 09:13
maggo - (19/06/2009 09:15): hi again, is it possible to set programming rights in an virtual xwiki, i can't see the option in rights editor on virtual wiki but on the managemnt wiki instance
cristinaS joined #xwiki at 09:43
jvelociter joined #xwiki at 09:44
vmassol - (19/06/2009 09:46): maggo: programming rights can only be set on the main wiki in a farm
vmassol - (19/06/2009 09:46): this is for security purpose
vmassol - (19/06/2009 09:46): so if you want to give programming rights (ie all super powers) to someone, he'll need an account on the main wiki
maggo - (19/06/2009 09:47): ok, does this work with LDAP to? 
maggo - (19/06/2009 09:47): or just with local users?
vmassol - (19/06/2009 09:50): maggo: it only depends of the permissions not the authentication
maggo - (19/06/2009 09:51): ok i'll try 
vmassol - (19/06/2009 09:51): but I don't know much about ldap
vmassol - (19/06/2009 09:51): thomas mortagne would know but he's offline right now
vmassol - (19/06/2009 09:51): you could ask on the mailing list
asyd - (19/06/2009 09:51): hello there
vmassol - (19/06/2009 09:51): hi asyd 
maggo - (19/06/2009 09:57): hi: asyd
maggo - (19/06/2009 09:59): vmassol: ok i configured the LDAP in Main wiki, logged in as LDAP User, on administration - access right - i can now set the programming rigt
maggo - (19/06/2009 09:59): but
maggo - (19/06/2009 09:59): i can't save groovy code in virtual wikis,
maggo - (19/06/2009 10:00): in main wiki now saving groovy code as LDAP user works fine
maggo - (19/06/2009 10:01): but i need it in virtual wiki, do you have a further tipp?
vmassol left at 10:01 ()
vmassol joined #xwiki at 10:03
KermitTheFragger joined #xwiki at 10:25
marta_ left at 10:33 ("Leaving.")
mflorea left at 10:46 (Read error: 104 (Connection reset by peer))
mflorea joined #xwiki at 11:01
cristinaS left at 11:35 (Read error: 60 (Operation timed out))
guillaum1 joined #xwiki at 11:35
anamarias joined #xwiki at 11:41
Enygma` joined #xwiki at 11:42
tmortagne joined #xwiki at 11:44
vmassol - (19/06/2009 11:44): hi tmortagne 
tmortagne - (19/06/2009 11:44): hi
vmassol - (19/06/2009 11:45): maggo was asking if it's possible to have programming rights on a wiki in a farm if you're connected using LDAP
vmassol - (19/06/2009 11:45): seems he's having problems
vmassol - (19/06/2009 11:45): maggo: can you explaub?
vmassol - (19/06/2009 11:45): s/explaub/explain/
tmortagne - (19/06/2009 11:46): LDAP is not supposed to change anything, to have programming right on a wiki farm you need your user to be a user from main wiki
tmortagne - (19/06/2009 11:46): (and have programming rights on main wiki obviously)
tmortagne - (19/06/2009 11:48): now for LDAP you need to make sure your user can't log in sub wiki (and create/update the user on subwiki), then LDAP auth will try to log on main wiki (and create/update the user on main wiki)
maggo - (19/06/2009 11:48): thx vmassol to take up again this topic, tmortagne, actually i have a farm main an virtual wiki are connecting the same LDAP, so long i log i with an local account i can give the account programming rights and i can use these rights in main an virtual wiki now. But if i log in with LDAP account i can get only programming rights in the main wiki and not in the virtual wiki. any ideas?
tmortagne - (19/06/2009 11:51): maggo: by default when a user log in LDAP the user is created/update on the wiki so i think the issue in your case is that when you log in LDAP on the wiki "subwiki" the xwiki user is created/updated in the wiki "subwiki" and so is not the main wiki user you gave programming rights
tmortagne - (19/06/2009 11:52): let me search if there is a general way to force LDAP auth to create only on main wiki but i think there is not, yet
maggo - (19/06/2009 11:53): ok how to do this? disable LDAP in subwiki and activate try local?
tmortagne - (19/06/2009 11:54): yes you will have to disable LDAP wiki by wiki now
tmortagne - (19/06/2009 11:54): in XWikiPreference page (edit with object editor)
tmortagne - (19/06/2009 11:55): XWiki.XWikiPreference
jvelociter left at 11:55 ()
tmortagne - (19/06/2009 12:08): maggo: you don't even need to enable try local (trylocal is just to try "normal" xwiki auth when LDAP fail), the LDAP auth will try main wiki with main wiki conf when it fail on local one
sdumitriu joined #xwiki at 12:09
maggo - (19/06/2009 12:28): tmortagne: ok so i have to configure the LDAP connection in xwiki.cfg and not in xwiki it self
jvelociter joined #xwiki at 12:30
tmortagne - (19/06/2009 12:30): maggo: configure LDAP in xwiki.cfg and just disable it in subwikis
tmortagne - (19/06/2009 12:31): xwiki.cfg act like a default LDAP configuration for which you can overwrite each property in XWikiPreferences
maggo - (19/06/2009 12:36): ok i'll give it a try, untill later again ;-)
cristinaS joined #xwiki at 12:43
tachirei joined #xwiki at 13:07
florinciu joined #xwiki at 13:10
cristinaS left at 13:21 ("Get out of that boring IRC client! It's no good for you. Bersirc 2.2 is your answer! [ http://www.bersirc.org/ - Open Source")
cristinaS joined #xwiki at 13:21
tachirei - (19/06/2009 13:57): adica stai sa intreb daca se prefera sa fie atribute html sau sa fie in CSS
tachirei - (19/06/2009 13:58): sorry :D
tachirei - (19/06/2009 13:58): question: width and height attributes for tables should be HTML attributes or in CSS?
jvelociter left at 14:00 ()
maggo left at 14:00 ()
mflorea left at 14:00 ("Leaving")
lucaa joined #xwiki at 14:06
tachirei - (19/06/2009 14:08): same question for valign attribute
sdumitriu - (19/06/2009 14:15): CSS
tachirei - (19/06/2009 14:17): ok. thanks
Enygma` left at 14:47 ("Leaving.")
Enygma` joined #xwiki at 14:47
guillaum1 - (19/06/2009 14:53): hi sdumitriu. I added a native backend for latex rendering. I just have to clean some things before posting to JIRA
sdumitriu - (19/06/2009 14:53): Hi guillaum1
sdumitriu - (19/06/2009 14:53): K
sdumitriu - (19/06/2009 14:54): Can you give me an ETA?
guillaum1 - (19/06/2009 14:55): sdumitriu: ETA ? Extra Terrestrial Alien ?
mflorea joined #xwiki at 14:56
guillaum1 - (19/06/2009 14:56): I have one in my garden at home but (s)he just say "telephone" all the day. boring... 
sdumitriu - (19/06/2009 14:57): :)
sdumitriu - (19/06/2009 14:57): Estimated Time of Arrival
guillaum1 - (19/06/2009 14:58): sdumitriu: this evening
sdumitriu - (19/06/2009 14:58): Cool, thanks
guillaum1 - (19/06/2009 14:58): I reserve some time to do it
sdumitriu - (19/06/2009 14:58): No problem
sdumitriu - (19/06/2009 14:59): How did you do the LaTeX connection?
sdumitriu - (19/06/2009 14:59): system calls?
jvelociter joined #xwiki at 14:59
guillaum1 - (19/06/2009 15:01): sdumitriu: command calls (latex, dvips, convet) with help of the Process class
sdumitriu - (19/06/2009 15:01): K
sdumitriu - (19/06/2009 15:02): It's not very efficient, but it's the best approach
sdumitriu - (19/06/2009 15:02): And gives the best aspect
guillaum1 - (19/06/2009 15:02): sdumitriu: so there is 3 backends: pure java, web service (MathTran) and native/commands
guillaum1 - (19/06/2009 15:02): s/is/are
guillaum1 - (19/06/2009 15:03): sdumitriu: with caching for better efficiency
Enygma` left at 15:06 ("Leaving.")
Enygma`1 joined #xwiki at 15:06
Enygma`1 left at 15:09 (Client Quit)
tachirei left #xwiki at 15:11
lucaa left at 15:16 (Remote closed the connection)
glerouge joined #xwiki at 15:16
lucaa joined #xwiki at 15:17
sdumitriu left at 15:19 ("Leaving.")
jpdota joined #xwiki at 15:20
maggo joined #xwiki at 15:31
arunreddy left at 15:34 (Read error: 60 (Operation timed out))
glerouge left at 15:36 ("Gone chasing a unicorn in the twilight zone")
sdumitriu joined #xwiki at 15:58
jpdota - (19/06/2009 16:07): Hi, I'm trying to diagnose an issue with LDAP users in non-default groups.  Their privileges don't seem to "stick", as in they do not have any, no matter what I set!  So I'm trying to go through the code and see if I can spot the problem, does anyone have any help for where I can start?
jpdota - (19/06/2009 16:08): Note that they CAN log in
jpdota - (19/06/2009 16:11): Authentication isn't the problem, it seems to be access rights which are the issue.
xipe - (19/06/2009 16:17): jpdota: Do you have set any "deny" rights on some groups/users ?
tmortagne - (19/06/2009 16:17): jpdota: i have no idea, what is weird is that LDAP has nothing to do with rights except that it put users in the rights groups but after that LDAP does not have any impact on the rights system
jpdota - (19/06/2009 16:17): Yes, but I have tried it with and without the Deny
jpdota - (19/06/2009 16:18): tmortagne: that's what I'm confused about as well, it seems like there should be no difference
tmortagne - (19/06/2009 16:19): what database are you using ?
jpdota - (19/06/2009 16:19): hsqldb
tmortagne - (19/06/2009 16:19): are you able to reproduce the situation easily from a freash default XE ?
tmortagne - (19/06/2009 16:19): fresh
tmortagne - (19/06/2009 16:20): if you can explain how to reproduce this for sure I could look in debug mode what is appening maybe i could find something
jpdota - (19/06/2009 16:20): Yeah
jpdota - (19/06/2009 16:20): do you have an LDAP server you can test with?
jpdota - (19/06/2009 16:20): that SEEMS to be the problem
jpdota - (19/06/2009 16:21): it may just have something to do with the mapping, but it seems correct, since the users ARE placed in the correct group
tmortagne - (19/06/2009 16:22): i have an openldap servers I can configure localy
jpdota - (19/06/2009 16:22): Steps for reproducing: 1) Install XWiki (mine is in tomcat, with hsqldb for the db)
tmortagne - (19/06/2009 16:23): could you create a jira issue and details how to reproduce it, it would be better since i will not have to test fully today I think and it will be written somewhere
jpdota - (19/06/2009 16:24): ok
jpdota - (19/06/2009 16:24): where's jira? :-x
tmortagne - (19/06/2009 16:24): jira.xwiki.org
tmortagne - (19/06/2009 16:24): thanks
tmortagne - (19/06/2009 16:24): looks like you are not the only one with this issue
jpdota - (19/06/2009 16:24): tmortagne: oh really? there's more in the jira?
tmortagne - (19/06/2009 16:25): not in jira but someone sent a mail on the mailing list about something like that
jpdota - (19/06/2009 16:25): wasn't that me? ;)
tmortagne - (19/06/2009 16:25): yes there is you but there was someone else way before
jpdota - (19/06/2009 16:25): ah
tmortagne - (19/06/2009 16:25): but i could not reproduce
jpdota - (19/06/2009 16:26): hmm ok let me post a JIRA
jpdota - (19/06/2009 16:26): maybe it's something to do with the config, so I'll post the LDAP part of my config
tmortagne - (19/06/2009 16:27): ok
jpdota - (19/06/2009 16:27): tmortagne: issue should be in Project "XWiki Root Webapp" right?
tmortagne - (19/06/2009 16:27): no
tmortagne - (19/06/2009 16:27): XWiki
jpdota - (19/06/2009 16:27): ah ok
tmortagne - (19/06/2009 16:28): it's the default project when you create a new issue i think
jpdota - (19/06/2009 16:28): erm there's no plain "XWiki"
tmortagne - (19/06/2009 16:28): http://jira.xwiki.org/jira/browse/XWIKI
tmortagne - (19/06/2009 16:28): XWiki Core  (XWIKI)
jpdota - (19/06/2009 16:28): ah
tmortagne - (19/06/2009 16:30): maybe LDAP auth is doingcorrupt something which work with rigts manager UI but not with the real rights resolution system
tmortagne - (19/06/2009 16:30): but i could not reproduce, maybe it's a very particulmar case
jpdota - (19/06/2009 16:30): yeah, that was what I am going to look through next, because it doesn't look like there shoudl be a problem
tmortagne - (19/06/2009 16:30): hope i could reproduce with your indications
jpdota - (19/06/2009 16:44): tmortagne: http://jira.xwiki.org/jira/browse/XWIKI-4004
tmortagne - (19/06/2009 16:44): thanks
tmortagne - (19/06/2009 16:46): this is detailed :)
jpdota - (19/06/2009 16:47): no problem!
anamarias left at 16:48 (Read error: 60 (Operation timed out))
anamarias joined #xwiki at 16:49
jpdota - (19/06/2009 16:50): there, fixed some formating so it doesn't try to parse everything
maggo_ joined #xwiki at 16:57
maggo left at 16:58 (Read error: 104 (Connection reset by peer))
tachirei joined #xwiki at 17:05
arkub left at 17:14 (Read error: 110 (Connection timed out))
j-saturne left at 17:25 ("Leaving.")
jpdota - (19/06/2009 17:36): off to lunch, i'll watch the jira, so if you need more info, let me know
jpdota - (19/06/2009 17:37): thanks for the help :)
jpdota left at 17:37 ("ChatZilla 0.9.84 [Firefox 3.0.11/2009060215]")
guillaum1 left at 17:56 ("Leaving.")
guillaum1 joined #xwiki at 17:56
arunreddy joined #xwiki at 17:59
arkub joined #xwiki at 18:18
tachirei left #xwiki at 18:23
arkub left at 18:28 (Read error: 104 (Connection reset by peer))
arkub joined #xwiki at 18:30
mflorea left at 18:31 ("Leaving")
florinciu left at 18:37 (Read error: 104 (Connection reset by peer))
sdumitriu left at 18:39 ("Leaving.")
anamarias left at 18:42 ()
A-Kaser joined #xwiki at 18:44
tmortagne left at 18:51 ("Ex-Chat")
jvelociter left at 18:53 ()
anamarias joined #xwiki at 19:06
anamarias left at 19:12 ()
jpdota joined #xwiki at 19:24
tmortagne joined #xwiki at 19:25
maggo_ - (19/06/2009 19:27): hi tmortagne hope you rember today i asked you about LDAP and programming rights, now i configured my LDAP connections in xwiki.cfg an set LDAP in Xwiki to no.
maggo_ - (19/06/2009 19:28): But when i save my ruby code as user i only get a white site without errors 
maggo_ - (19/06/2009 19:29): saved as superadmin or local user from main xwiki with programming rights it works
KermitTheFragger left at 19:30 ("Leaving")
tmortagne - (19/06/2009 19:30): hmm could you try #context.user in some page of a subwiki to check if you have the right user
tmortagne - (19/06/2009 19:31): a user starting by "xwiki:"
tmortagne - (19/06/2009 19:31): $context.user
tmortagne - (19/06/2009 19:31): sorry
tmortagne - (19/06/2009 19:32): vt how do you do ruby ?
tmortagne - (19/06/2009 19:32): vt=btw
jvelociter joined #xwiki at 19:33
jpdota - (19/06/2009 19:37): tmortagne: if i want to learn how to work on the UI for xwiki, what resources should i look at?  also, if i want to be able to build and run the main xwiki thing within eclipse, should i check out xwiki/platform/trunks?
jpdota - (19/06/2009 19:37): when i say resources, i mean what frameworks etc are used to make the ui?
tmortagne - (19/06/2009 19:38): jpdota: i'm not the expert on UI let me check
jpdota - (19/06/2009 19:38): ok
tmortagne - (19/06/2009 19:39): i can see XWiki provide prototype, scriptaculous and smartclient mainly
tmortagne - (19/06/2009 19:39): then there is XWiki own tools and helper but it don't know it very well
tmortagne - (19/06/2009 19:40): maybe there is something on xwiki.org
tmortagne - (19/06/2009 19:40): for the build it depends what you need to build
tmortagne - (19/06/2009 19:41): and what you plan to modify
tmortagne - (19/06/2009 19:41): usually you just need to checkout XE distribution and what you are working on
anamarias joined #xwiki at 19:42
tmortagne - (19/06/2009 19:42): http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/distribution/jetty/hsqldb/ for XE
tmortagne - (19/06/2009 19:42): you build XE once
tmortagne - (19/06/2009 19:42): and then you modify what you want to modify, build it and put it in the XE distribution you built
jpdota - (19/06/2009 19:43): hmm ok
tmortagne - (19/06/2009 19:43): if it's a jar projet you put the jar in /lib folder
jpdota - (19/06/2009 19:43): such a complex file structure!
jpdota - (19/06/2009 19:43): do you think there's a need for an ldap library?
jpdota - (19/06/2009 19:43): i wonder if it might help clean up a lot of the auth code
tmortagne - (19/06/2009 19:44): actually the whole auth system would need a refactor but nobody has time for this theses days
tmortagne - (19/06/2009 19:45): a ldap library for what ?
jpdota - (19/06/2009 19:45): all the interactions with ldap.  say something that handles connect, bind, auth, etc
tmortagne - (19/06/2009 19:45): there is one already
tmortagne - (19/06/2009 19:46): or i don't understand your question
tmortagne - (19/06/2009 19:46): (btw the library we are using would need to be upgraded i think)
jpdota - (19/06/2009 19:46): what do you mean by it would need to be upgraded?
jpdota - (19/06/2009 19:47): there are problems with it?
tmortagne - (19/06/2009 19:47): no but we don't even know the real version of the novell library we are using
tmortagne - (19/06/2009 19:47): it would need to be cleaned up a little
jpdota - (19/06/2009 19:47): ah
maggo_ - (19/06/2009 19:48): tmortagne: ok now i get the subwikiname:XWiki.myusername
tmortagne - (19/06/2009 19:48): and maybe look if there is usefull library which provide some user/group helpers
tmortagne - (19/06/2009 19:48): maggo_: you should get xwiki:XWiki.myusername
maggo_ - (19/06/2009 19:48): tmortagne: what do you mean with how do i ruby? do you wan't to see the code?
tmortagne - (19/06/2009 19:49): i was just wondering ho you managed to do ruby in XWiki, we are working on a ruby macro for 2.0
tmortagne - (19/06/2009 19:49): just the way groovy macro works
maggo_ - (19/06/2009 19:50): tmortagne: sorry i mean groovy ;-)
tmortagne - (19/06/2009 19:50): maggo_: if you get subwikiname:XWiki.myusername and not xwiki:XWiki.myusername it's because you are not logged as main wiki user
maggo_ - (19/06/2009 19:50): a restart wouldn't be necessarily or?
tmortagne - (19/06/2009 19:51): a restart should not be needed no
tmortagne - (19/06/2009 19:51): at least for what you put in XWikiPreferences
tmortagne - (19/06/2009 19:51): for xwiki.cfg you need to restart
maggo_ - (19/06/2009 19:52): tmortagne: no i have a second xwiki farm and the config there is like that you have disrived, subwiki no ldap, and LDAP config in xwiki.cfg
maggo_ - (19/06/2009 19:54): but i get subwikiname:XWiki.myusername and nothing in my logs
jpdota - (19/06/2009 19:54): tmortagne: ah i see, so basically each of the folders in svn is a set of maven instructions that relate to the platform folder?
tmortagne - (19/06/2009 19:55): maggo_: you should enable debug log and restart to see what really append when to log in, see http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HEnableLDAPdebuglog
tmortagne - (19/06/2009 19:55): jpdota: each folder is a maven project
tmortagne - (19/06/2009 19:55): and maven is downloading any dependency it needs
jpdota - (19/06/2009 19:56): gotcha :D i was extremely confused, i'm pretty new to maven
tmortagne - (19/06/2009 19:56): so you usually just need to build the final project you need and maven will download the dependencies
tmortagne - (19/06/2009 19:56): maven is very powerfull but it has to be learned ;)
tmortagne - (19/06/2009 19:58): jpdota: did you looked at http://dev.xwiki.org/xwiki/bin/view/Community/SourceRepository ?
jpdota - (19/06/2009 19:58): tmortagne: so it seems.
jpdota - (19/06/2009 19:58): yeah
jpdota - (19/06/2009 19:58): but it didn't properly explain that everything was a maven project >.<
tmortagne - (19/06/2009 20:00): there is a little more about maven on http://dev.xwiki.org/xwiki/bin/view/Community/Building
jpdota - (19/06/2009 20:01): thanks
tmortagne - (19/06/2009 20:09): maggo_: going dinner, back in 1 hour
maggo_ - (19/06/2009 20:09): tmoragne: good apetit
maggo_ - (19/06/2009 20:10): i cook too know ;-)
maggo_ - (19/06/2009 20:11): know = now
jvelociter left at 20:16 ()
tmortagne - (19/06/2009 20:43): maggo_: re
maggo_ - (19/06/2009 20:44): kk thx tmortagne but i'll try it again tomorrow i had to do some other work 
tmortagne - (19/06/2009 20:45): maggo_: ok anyway i did not had much time before my wife hit for for still working ;)
tmortagne - (19/06/2009 20:45): leaving now, bye
tmortagne left at 20:45 ("Ex-Chat")
maggo_ - (19/06/2009 20:46): bye thx tmortagne
jvelociter joined #xwiki at 21:03
arkub left at 21:04 (Read error: 60 (Operation timed out))
vmassol left at 21:40 ()
vmassol joined #xwiki at 21:41
jpdota left at 21:58 (Read error: 110 (Connection timed out))
jvelociter left at 22:06 ()
vmassol left at 22:21 ()
arkub joined #xwiki at 22:41
jvelociter joined #xwiki at 22:43
kaaloo joined #xwiki at 23:05
guillaum1 left at 23:15 ("Leaving.")
arkub left at 23:26 (Read error: 110 (Connection timed out))
kaaloo left at 23:41 ("Leaving.")
marta_ joined #xwiki at 23:47

Get Connected