Wednesday, 2011-08-31

*** Joins: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz)00:03
*** Quits: Cesare (~Adium@creati59.lnk.telstra.net) (Remote host closed the connection)00:56
*** Joins: Cesare (~Adium@creati59.lnk.telstra.net)00:56
*** Joins: brucelee (~adsfasdf@c-67-160-201-8.hsd1.ca.comcast.net)01:03
bruceleehey guys, does mantis has the capability to generate tickets through email?01:04
*** Joins: kirillka (~Miranda@195.242.142.17)03:00
*** Joins: Rixie (~Rixie@188.177.20.182)03:01
*** Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)03:11
dregadbrucelee: there is a plugin for e-mail reporting which might do what you need, check http://github.com/mantisbt-plugins/03:15
dhx1hey all03:16
bruceleedregad, yeah i read about that one, but im not sure if you need to have an account on mantis before you can do that by email03:24
bruceleei want to set up an email so clients can report tickets by emailing03:24
* dregad waves at dhx103:24
bruceleeor i want to set up an email so ANYBODY can report tickets by emailng03:25
dregadbrucelee: I do not support or even use the plugin, I just know it exists03:25
bruceleethanks :p03:25
* dhx1 waves back03:26
*** Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (Read error: Connection reset by peer)03:31
*** Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)03:33
*** Quits: Cesare (~Adium@creati59.lnk.telstra.net) (Quit: Leaving.)03:56
*** Joins: asm89 (~asm89@unaffiliated/asm89)03:58
*** Joins: soc42 (~soc42@f052058179.adsl.alicedsl.de)04:02
asm89how's my favorite bug tracker doing?04:22
dhx1asm89: the best! :)04:24
asm89decided on the database thing yet? :P04:26
dhx1asm89: the 'next' branch has some initial work04:30
dhx1it still needs a lot more work though04:30
*** Joins: paul___ (52c6fa45@gateway/web/freenode/ip.82.198.250.69)04:30
dhx1paul___: speaking of whom... :)04:30
*** Quits: micahg (~micahg@ubuntu/member/micahg) (Ping timeout: 264 seconds)04:31
*** Joins: cerf (~quassel@mcl71-3-78-241-52-239.fbx.proxad.net)04:31
dhx1asm89: I actually don't mind the Doctrine approach (query rewriter only... not the object-relational stuff)04:31
asm89so dbal, not orm04:32
dhx1yeah04:33
dhx1although I have doubts about using it for complex schema designs04:33
dhx1but those problems affect any implementation we choose...04:33
asm89i get that04:33
asm89but what is complex huh? :)04:33
dhx1something like full text search in postgresql: http://www.postgresql.org/docs/9.0/interactive/textsearch.html04:35
asm89(and mysql)04:35
dhx1yep04:35
asm89so vendor specific things04:35
dhx1MS SQL 2008 too04:36
dhx1probably most of them... but yeah, they're mostly vendor specific04:36
asm89i know that you can add 'custom' query functions04:36
dhx1generally it's not too hard for the runtime code that is querying the database04:36
asm89if you define an api for those (like a SEARCH() function), then you can add vendor specific code over there04:37
dhx1it seems like more of an issue with creating the database schema, modifying it, etc during installations and upgrades04:37
asm89yes, schema management is hard for multiple platforms04:37
asm89when trying to benefit from things as fulltext search that is04:38
*** Joins: micahg (~micahg@ubuntu/member/micahg)04:47
dhx1yep05:38
paul___dhx1: whts up?06:07
dhx1paul___: not much... got IPv6 up and running at last, so I guess I should try MantisBT over IPv6 at some point06:07
paul___heh06:08
paul___i've been coding mantis recently06:08
dhx1what? where? :)06:09
dhx1database work?06:09
paul___trying to generally carry on with branch06:14
paul___I may have forgotton to push06:14
paul___as I keep forgetting tyhe remote stuff06:14
dregadpaul__: I am looking at bug #13276 where user mentions inconsistent behavior of g_show_attachment_indicator06:31
dregadit looks like this is not hiding the attachment column in the bug view page06:32
dregadlooking at history, back in 2009 you changed the BugData class (commit 97b67e4bb)06:33
dregadand in that, you changed the column name from attachment to attachment_count06:34
dregadold column_api.php deleted line 31, new bug_api.php line 11406:35
dregadbut helper_api.php still references old name attachment when removing the column06:35
dregadso it does not get removed, and if g_show_attachment_indicator = ON then the bitmap is shown, and when OFF then it's  the number of attachments06:39
dhx1I think I may have helped rename the column?06:52
dhx1or at least... I recall doing a fair number of changes to attachment icons06:53
*** Quits: soc42 (~soc42@f052058179.adsl.alicedsl.de) (Remote host closed the connection)07:04
dregaddhx1: I was doing further check in the code07:05
dregadI think the problem is not renaming itself, but the fact that the change was not cascaded07:05
dhx1grepping for 'attachment' should find any misnamed columns... although I imagine it's not quite that easy07:05
dhx1we should have received an error in that case07:06
dregadeg. the list of columns in config_defaults $g_view_issues_page_columns stil references attachment, but effectively that field is not valid and therefore gets removed by call to columns_remove_invalid07:06
dregadso no errors are generated because the system is smart enough to weed out wrong columns07:07
dhx1aha07:07
dhx1so existing installations (and new ones as a result of the defaults) are probably still using "attachment"07:08
dregadexactly07:08
dhx1so if a user updates their preferences, is everything ok?07:08
dregadactually it's a bit more complex than that07:08
dhx1obviously we need to fix the defaults too though :)07:08
dregadyes07:10
dregadthe problem is that this will impact the columns displayed in existing installations07:10
dregadcurrently if g_show_attachment_indicator = OFF then the column is displayed anyway (but shows # attach instead of bitmap)07:11
dregadif I fix the code in helper_api (replacing attachment by attachment_count) then the column will no longer be displayed07:11
dregadwhich could be confusing to users07:12
dhx1oh.. there are meant to be two separate columns07:12
dregadTo fix without regression would probably require to have 2 global settings07:12
dhx1attachment_count = number of attachments, attachment = icon indicating if there is one or more attachment07:12
dregadone for attachment on/off and one for attachment count on/off07:13
dregadin BugData class there is only attachment_count07:13
dregadand in the bug view page, only one column is displayed, with its contents depending on valude of g_show_attachment_indicator07:14
dhx1what is the point of the configuration option?07:14
dhx1it sounds stupid to me07:14
dregadthe point is (or was) to hide the attachment column entirely, thereby reduncing the number of sql queries against DB for perfomrance reason07:15
dregadat least that's what the comment in config_default says07:15
dhx1it's not an access control and is deprecated by user preferences (and global defaults) for which columns to display07:15
*** Quits: kirillka (~Miranda@195.242.142.17) (Ping timeout: 240 seconds)07:15
dhx1hmm so a waste of space that could be improved by checking which columns to retrieve from the database?07:15
dhx1(which we probably already do)?07:15
dregadwhat do you mean by waste of space?07:16
dhx1not required07:16
dhx1useless configuration option... it seems07:16
dregadPossibly yes07:16
dregadunless it's a way for admin to prevent users from adding the attachment field in their personal preferences07:17
dregadwhich I think it's a bit useless07:17
dregadI would think that to fix this properly, we should07:17
dregad1. fix the helper_api to reference correct column07:17
dregad2. fix default for field list to refer correct column07:18
dregad3. change default of g_show_attachment_indicator from OFF to ON to prevent regression to existing users07:18
dregadwhat do you think ?07:18
dhx1yeah very useless :)07:18
dhx1I'd actually prefer to see whether the option can be removed07:19
dhx1I don't see how it can be missed07:19
dregadcan probably be done as well07:19
dregadbtw this code is in sice 1.2.0rc107:19
dhx1let me see if I can put together a patch07:20
dregadI already have most of it (except for removing  g_show_attachment_indicator)07:20
dhx1are you able to create a patch/push to a branch at github?07:22
dregadsure07:22
dhx1we should place an access check against view_attachments_threshold instead07:23
dhx1also... allow_view_own_attachments07:24
dregadright07:24
dregadhiding the column if user not allowed to view attachments07:25
dhx1yeah07:25
dhx1which I think we already do07:25
dhx1file_can_view_bug_attachments(...)07:25
dregaddidn't check but likely yes07:26
dhx1already factors in allow_view_own_attachments07:26
*** Joins: kirillka (~Miranda@195.242.142.17)07:26
dregadfunny07:27
dregadthere is a function print_column_attachment_count in columns_api07:27
dregadbut it's not used anywhere :-)07:28
dregadit does have the code for file_can_view_bug_attachments though ;-)07:28
dhx1that's what I was looking at07:28
dhx1and AFAIK it does get called... dynamically07:29
dhx1in other words, we call a function named 'print_column_' . $t_column_name07:29
dregadah yes you're right07:30
dregadcustom_function_api.php line 32607:33
dregadthat actually explains the behavior described by the user in #1327607:36
dregadbecause the access check is there in print_column_attachment_count, but not in print_column_title_attachment_count07:37
dhx1aha07:38
dhx1that may solve the problem then07:38
dhx1if we're printing an extra title, that'll screw things up07:38
dregadnevermind what I just said - it prints an empty column (nbsp) if attachment count = 007:40
dhx1oh07:42
dhx1the access checks are actually performed when building the list of columns to display07:42
dhx1but we also perform checks on a per-bug basis07:42
dhx1this is actually quite a complicated matter when you factor in sub-projects where permissions may be different to parent projects07:43
dhx1yet issues from both can be returned on the view issues page at the same time07:43
dregadright07:52
*** Quits: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz) (Quit: visit http://wormscesky.cz)07:55
dregaddhx1: target 12x ?08:02
dhx1dregad: ?08:03
dregadthe change we discussed - target to 1.2.x or master ?08:03
dhx1ah, I thought you were referring to the accidental '12x' file of recent times08:03
dhx1target 1.2.x08:03
dregad:-O08:03
dhx1and we'll forward port to master08:03
dregadok08:04
dhx1do you think you have this issue solved?08:04
dhx1(need a hand?)08:04
dregadprobably yes08:04
dregadif not I'll let you know08:04
dregadI'll put a github branch for your review08:05
dhx1ok :)08:05
dregaddhx1: a thought, while testing the branch removing g_show_attachment_indicator - shouldn't we systematically call check.php after an upgrade ?09:47
dregadthis would e.g. draw admin's attention to the fact that they are using obsolete params, which they might not realize09:48
*** Joins: daryn (~daryn@h158.249.190.173.static.ip.windstream.net)09:51
*** Quits: kirillka (~Miranda@195.242.142.17) (Quit: kirillka)09:58
*** Quits: dregad (~dregad@wwwgate1.merck.de) (Quit: Ex-Chat)10:08
*** Quits: cerf (~quassel@mcl71-3-78-241-52-239.fbx.proxad.net) (Remote host closed the connection)11:17
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)11:20
*** Quits: paul___ (52c6fa45@gateway/web/freenode/ip.82.198.250.69) (Quit: Page closed)11:39
*** Joins: kirillka (~Miranda@75-193-55-95.baltnet.ru)12:10
*** Joins: Paul24 (~IceChat09@2001:470:9310:aaaa:25e1:d126:aab0:bed5)12:41
*** Parts: Rixie (~Rixie@188.177.20.182) ()12:56
*** Joins: fredcooke (~fred@131.2.221.87.dynamic.jazztel.es)12:57
fredcookeHello! I searched for this, but had no luck, all I could find was instructions on entering this channel, so I decided to take the advice ;-)12:57
fredcookeCan Mantis announce new bugs and various or all changes to bugs in an IRC channel?12:57
fredcookemuch as github can announce commits and pushes12:58
jreesefredcooke: https://github.com/jreese/supybot-mantis12:59
fredcookejreese: i just found your repo12:59
jreese:P12:59
fredcookeok, thats not what i found13:00
jreesethe supybot plugin won't announce every single change, just new issues and newly-resolved issues, and then posts details whenevr someone mentions an issue # in channel13:01
fredcookeok13:01
fredcookewhat about IRCPlugin, what can that do/not do?13:02
fredcookethanks for you help, btw :-)13:02
jreesethat just allows users to join an IRC channel using a web client through your mantisbt install13:02
Paul24moo13:02
fredcookeok13:02
jreesesee www.mantisbt.org/bugs and the IRC Chat link in the menu13:02
fredcookeneed to be signed in to see it?13:04
jreeseah, apparently so13:04
fredcookeno problems13:04
fredcookewhile i'm here...13:04
jreeseit's basically just a wrapper around mibbit and freenode's webchat clients13:04
fredcookei want the "assign back to reporter and let them test and close" workflow, but so far, from the UI, i've been unable to achieve that using advice from the mantis forums. i suspect i need to change config on the server to allow assigning to reporters, is that really true?13:05
jreesebasically, yes13:06
fredcookeok, i think i know what i need to change, in that case13:06
fredcookeif i have further trouble i'll come back and cry :-)13:06
jreesealthough the default workflow encourages:13:06
jreeseput the issue into feedback, wait for the reporter to reply to the issue, and then the handler marks the issue as resolved13:07
fredcookei read the main mans description of how he thinks it should work, still, a LOT of people disagree :-)13:07
fredcookeits pretty normal for a key group of testers to be reporting most bugs13:07
jreeseeg, if an issue is marked in feedback, and the reporter replies to the issue, it will automatically change to assigned status13:07
jreesebut, if you still want to be able to assign to reporters, there's a configuration value that specifies the threshold for that13:08
fredcookeyep13:08
fredcookewill fiddle and change it13:08
fredcookethanks for confirming13:08
jreese$g_handle_bug_threshold13:08
Paul24jreese: dhx will have gone by now right?13:09
jreeseand $g_update_bug_assign_threshold to determine who can actually change the assigned person for an issue13:09
jreesePaul24: basically, yes13:09
jreeseit's well past midnight there13:09
Paul24jreese: any idea what that ocmpany reckon they have found?13:21
Paul24jreese: aka https://www.htbridge.ch/advisory/multiple_vulnerabilities_in_mantisbt.html13:21
jreesesaw that, and have no clue13:22
jreeseI'm hoping they're sending an email to Victor or our list so we can see what they think they've found13:23
Paul24tbh, it's probably waht we already know about ;p13:23
jreesewouldn't be surprised13:24
Paul24there's a couple of xss issues in 1.2.x13:25
Paul24i.e. $path is vulnerable atm13:28
Paul24erm13:28
Paul24$g_path13:28
fredcooke:-(13:29
Paul24we should fix that this w/e13:29
Paul24then I can post a security advisory!13:29
Paul24as that seems to be the done thing these days :)13:30
jreeseI've just been waiting for someone to post a fix that doesn't actually break any of it's existing functionality...13:30
Paul24yea, i've kinda decide in '2.0' we should just do what other sites do and ask users to enter a url13:30
Paul24and not try to guess it13:30
Paul24as the guessing stuff is more effort then it's worth :)13:31
jreesePaul24: my biggest issue with that is it breaks teh ability to use mantis from multiple domains13:31
Paul24*not really*13:31
Paul24at least, would just need to be careful13:31
Paul24with how/what we do13:32
*** Joins: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz)13:39
*** Joins: chris38`` (~chris38@AGrenoble-751-1-23-176.w86-206.abo.wanadoo.fr)14:55
*** Quits: chris38` (~chris38@AGrenoble-751-1-14-182.w90-9.abo.wanadoo.fr) (Ping timeout: 246 seconds)14:57
*** Quits: chris38`` (~chris38@AGrenoble-751-1-23-176.w86-206.abo.wanadoo.fr) (Ping timeout: 252 seconds)15:03
*** Joins: chris38` (~chris38@AGrenoble-751-1-7-18.w90-9.abo.wanadoo.fr)15:08
*** Quits: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) (Quit: Ex-Chat)15:10
*** Joins: soc42 (~soc42@f051080042.adsl.alicedsl.de)15:15
*** Joins: daryn (~daryn@h158.249.190.173.static.ip.windstream.net)15:16
*** Joins: Lukosanthropos (~Lukosanth@cpc23-seac20-2-0-cust78.7-2.cable.virginmedia.com)16:02
*** Quits: soc42 (~soc42@f051080042.adsl.alicedsl.de) (Remote host closed the connection)17:28
*** Quits: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) (Quit: Ex-Chat)18:01
*** Quits: micahg (~micahg@ubuntu/member/micahg) (Read error: Operation timed out)18:22
*** Joins: micahg (~micahg@ubuntu/member/micahg)18:36
*** Quits: micahg (~micahg@ubuntu/member/micahg) (Remote host closed the connection)18:39
*** Joins: micahg_ (~micahg@ubuntu/member/micahg)18:40
*** Quits: Paul24 (~IceChat09@2001:470:9310:aaaa:25e1:d126:aab0:bed5) (Quit: Beware of programmers who carry screwdrivers.)18:50
*** Joins: Paul24 (~IceChat09@2001:470:9310:aaaa:25e1:d126:aab0:bed5)19:02
*** Joins: Cesare (~Adium@creati59.lnk.telstra.net)19:12
*** micahg_ is now known as micahg19:32
*** Quits: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz) (Quit: visit http://wormscesky.cz)19:34
*** Quits: fredcooke (~fred@131.2.221.87.dynamic.jazztel.es) (Ping timeout: 250 seconds)19:36
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)20:00
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)20:00
Paul24yay20:21
Paul24i've found and fixed a bunch of possible security issues / bugs tonight i think20:21
Paul24:)20:21
Paul24now it's bedtime20:22
Paul24:)20:22
*** Quits: Paul24 (~IceChat09@2001:470:9310:aaaa:25e1:d126:aab0:bed5) (Quit: There's nothing dirtier then a giant ball of oil)20:38
*** Quits: tsnfoo (~fulekia@ws-imac27.test.denison.edu) (Quit: tsnfoo)22:09

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!