Saturday, 2010-01-02

../irclogs/#mantishelp.2010-01-02.log
--- scribe started ---00:00
nuclear_eclipsehi paul__00:32
paul__i'm really starting to hate ldap00:32
paul__so you'll like this00:32
paul__ldap_auth atm00:33
nuclear_eclipselol, I still cant even wrap my head around it00:33
paul__does a search for ldap entries matching the ldap username00:33
paul__if there's more then one00:33
paul__it tries to authenticate against each one00:33
paul__let's assume for a momenth that the ldap username isn't unique00:33
paul__and consider how00:33
paul__we get other ldap data00:34
paul__e.g. realname00:34
paul__I'm going to make the assumption that username is actually unique00:34
paul__as otherwise00:35
paul__what we really should be doing00:35
paul__is creating an plugin_ldap table00:35
paul__with fields of like...00:35
paul__mantisuserid, username, DN, email...00:35
paul__where mantisuserid,DN are unique00:35
paul__even if username isn't00:36
paul__and we really need that table ;/00:40
paul__as we shouldn't really be updating our user database with ldap stuff00:41
paul__as doing that stops us from allowing people to have flexibility to override the ldap data00:41
* nuclear_eclipse is cl;ueless01:04
paul__it's just set up in a way to be a pain ;/01:04
paul__nuclear_eclipse: btw, have you run check.php in trunk recently?01:09
paul__give it a run :P01:09
paul__and tell me what happens01:09
paul__then i'm off to bed01:10
* paul__ goes to bed01:13
paul__anyway01:13
paul__you will notice that admin/check.php01:13
paul__generates a warning about an obsolete config option01:13
paul__that has been added back in01:13
nuclear_eclipsepaul__:01:14
paul__.01:14
nuclear_eclipsecan you look at a patch real quick?01:14
paul__k01:14
paul__can you quickly run admin/check.php on your instance as wel01:14
nuclear_eclipsehttp://mantis.pastebin.com/m6cdf6f6401:15
nuclear_eclipsesure01:15
paul__i've got a branch where i've done that01:15
nuclear_eclipsehttp://bugs.steelwow.com/mantis/admin/check.php01:16
paul__mm01:16
paul__you dont get an obsolete warning01:16
paul__mmmm01:16
nuclear_eclipsethat's running 1.2.x tho01:16
paul__http://bugs.steelwow.com/mantis/admin/check.php?showall=101:16
paul__look at the first entry on that list01:17
paul__(with the incorrect 'good')01:17
nuclear_eclipseah01:17
paul__-               print_test_warn_row( $t_description, $t_info, false );01:17
paul__+               print_test_warn_row( $t_description, false, $t_info );01:17
nuclear_eclipseanyways paul__ if that patch looks good, I'm ready to push01:17
paul__the fix for that is in trunk01:18
paul__i'd kinda rather you didn't ;/01:18
nuclear_eclipseoh?01:18
paul__as i've got that patched in a branch01:18
paul__where I was trying to fix columns properly :(01:18
nuclear_eclipsewell are you actually gonna get that pushed upstream anytime soon?01:18
paul__we can't store the bug fields in config_defaults01:18
paul__as if you turn off a field01:18
paul__it picks it up as a change and will store user columns in config db even if they are the default01:19
paul__i'm trying ;/01:20
paul__i've not been feeling that great + xmas + pc hdd playing up01:20
paul__on top of that, whenever I start looking at something01:21
paul__I end up finding all sorts of crap that's wrong ;/01:21
paul__for example01:22
paul__as part of looking at the constants, then trying to make it not save to DB when there's no column change01:22
paul__(i.e. effectively build a list of default columns)01:22
paul__you realise that we have 2-3 overlapping api's that do 'similar' things e.g. helper_get_columns to view and the columns api stuff01:23
nuclear_eclipsepaul__: maybe you try to focus on making small incremental changes and pushing those before getting side tracked down more rabbit holes.. :P01:23
paul__take a look at custom_function_default_get_columns_to_view01:23
paul__can you spot what's wrong with it? :)01:24
nuclear_eclipsetrust me, I've already looked at all those when adding in filter and column support for plugins01:24
paul__you didn't spot whats wrong with it then :P01:24
paul__it's a 12 line function with 4 mistakes in01:24
paul__spotted? :P01:25
nuclear_eclipsepaul__: I usually try to assume that functions are doing things for a reason, rather than looking for bugs when I'm just seeing how they work ;)01:25
paul__function config_get( $p_option, $p_default = null, $p_user = null, $p_project = null )01:26
paul__we call config_get with params wrong around ;/01:26
nuclear_eclipsethat's not something I would have ever considered looking for...01:26
paul__it's also why column constants didn't get pulled out :)01:27
paul__I can't recall now whether I modified higher up chain then ended up debugging01:28
paul__or modified, tested then on off chance spotted that and realised my modifications/testing was invalid01:28
paul__anyway, it's 01:28 i reallyneed to go sleep01:29
paul__I'm trying to get ldap/columns stuff I have merged in, but I also don't really want to break it 10 mintues before 1.2.001:30
paul__(at the same time, I consider ldap support storing md5 password as a security risk)01:31
paul__nn01:31
paul__nuclear_eclipse: http://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=8971ecfeb3f09ccbd46a222a962ae81c0a59710714:28
paul__can you recall why?14:28
nuclear_eclipsepaul__: just woke up14:42
nuclear_eclipsegimme a few and ill take a look14:42
* paul__ wonders if user_get_avater should be a custom function15:54
paul__siebrand: lo?18:37
siebrandpaul__: sup?18:37
paul__you repro'd http://www.mantisbt.org/bugs/view.php?id=11153 ?18:37
siebrandpaul__: nope.18:42
siebrandpaul__: just marked it critical for release because <some core developer> mentioned it as to be fixed before release.18:43
paul__personally18:43
paul__I can download >5MB files18:44
siebrandpaul__: then the report may be invalid...18:44
paul__we call file_get_contents( 0, 512kb)18:45
paul__then we add chunksize18:45
paul__wow19:29
paul__php 5.1.6 is so old ;/19:29
paul__nuclear_eclipse: ?22:24
nuclear_eclipsehi paul__22:24
paul__out of interest, can you repro the download thing?22:25
paul__I think i've fixed 1 'bug' in the code anyway22:25
paul__albeit I dont think that particular code can get hit22:25
* paul__ doesn't have php5.1.6 22:25
giallupaul__, re 5.1.6, That guy with Fedora 6 should really really upgrade, but, if the bug is reproducible in a CentOS 5 installation (5.1.6 with a number of backported patches) I'd say we need to fix it23:16
giallupaul__, if you need to test, use http://mantisbt.org/bugs as it runs that php package23:18
paul__that's not set up for uploading files23:24
paul__iirc23:24
paul__iirc, I already looked23:24
* paul__ sighs23:27
paul__now i need john to help me fix my local git repo ;/23:27

Generated by irclog2html.py