Wednesday, 2011-10-12

*** Joins: asm89 (~asm89@unaffiliated/asm89)02:02
*** Joins: ToffeePops (~chatzilla@202.20.3.13)02:23
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)02:28
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:29
*** Joins: giallu (~giallu@fedora/giallu)02:37
*** Joins: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz)02:45
*** Quits: ToffeePops (~chatzilla@202.20.3.13) (Quit: ChatZilla 0.9.87 [SeaMonkey 2.4.1/20110928161145])03:21
*** Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)03:22
*** Joins: kirillka (~Miranda@195.242.142.17)03:35
*** Quits: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz) (Quit: visit http://wormscesky.cz)04:05
*** Joins: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz)04:08
*** Joins: asm89 (~asm89@unaffiliated/asm89)04:48
*** Joins: bezourox (~bezou_rox@130.171.64.86.rev.sfr.net)04:49
bezouroxHi, I have a problem on Mantis with confidenticality04:49
asm89hm04:50
asm89ping jreese dhx104:50
asm89i'm not sure what you should do then04:50
bezouroxIf I send a note on a a new report, with status "Private", just Administrators see this note04:50
dhx1bezourox: hi04:50
dhx1asm89: hi04:50
bezouroxHi gyz04:50
bezouroxIf I send a note in public, everyone can see this note04:51
bezouroxI would like that just the user that opened this report could see this note04:51
asm89oh, i thought you found a nasty bug ;P04:51
bezouroxAdmin group and the user in question04:51
dhx1 * access level needed to view private bugs04:52
dhx1 * Look in the constant_inc.php file if you want to set a different value04:52
dhx1 * @global int $g_private_bug_threshold04:52
dhx1 */04:52
dhx1$g_private_bug_threshold = DEVELOPER;04:52
dhx1change that to a lower level in config_inc.php?04:52
asm89dhx1: did i talk to you the other day about "user mentions" in bug notes?04:52
dhx1asm89: not me ;)04:52
bezouroxnot me04:52
asm89dhx1: ah sorry :P i have a hard time remembering who it was, i believe it was one of the mantis devs in this channel04:53
bezouroxIf I set $g_private_bug_threshold = RAPPORTER; just the rapporter in question will see this note ?04:53
asm89dhx1: it was you! i guess i'll get back to it some other time :)04:55
asm89dhx1: -> http://mantisforge.org/irclogs/%23mantishelp.2011-07-26.log.html04:57
dhx1REPORTER :)04:58
dhx1asm89: must have been a while ago... yeah04:58
dhx1bezourox: not just the REPORTER, but anyone at REPORTER level _or higher_04:58
asm89well i ran into a 'problem' regarding the representation of the 'mentions'05:00
asm89it's not easy to extend the current "my view" page?05:00
bezouroxarf the problem is that I would like that just administrators and the user that opened the report could read this note05:05
bezouroxis it possible ?05:05
asm89bezourox: i think that's tricky05:05
asm89not sure though05:05
bezouroxBecause we don't want that a user can read ticket that don't concern him05:06
dhx1bezourox: from function access_has_bug_level( $p_access_level, $p_bug_id, $p_user_id = null ) {05:12
dhx1# check limit_Reporter (Issue #4769)05:12
dhx1# reporters can view just issues they reported05:12
dhx1$t_limit_reporters = config_get( 'limit_reporters' );05:12
dhx1if(( ON === $t_limit_reporters ) && ( !bug_is_user_reporter( $p_bug_id, $p_user_id ) ) && ( !access_has_project_level( REPORTER + 1, $t_project_id, $p_user_id ) ) ) {05:12
dhx1return false;05:12
dhx1}05:12
dhx1try $g_limit_reporters = ON;05:13
dhx1otherwise, $g_private_bug_threshold can be changed to a higher level (administrators) -- users that have reported a private bug (you would need to adjust the bug report form to make all reported bugs private) would still be able to see the bugs they've reported05:14
bezouroxOk I have to edit config_inc.php05:18
bezouroxI set all reported bugs private05:19
dhx1ok05:21
bezouroxdhx1 : where can I found access_has_bug_level()05:49
bezouroxok I found $g_limit_reporters = ON;05:55
bezouroxI think that it's that I want05:55
bezouroxAnd i set $g_source_control_notes_view_status = VS_PRIVATE;05:56
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)05:56
bezouroxSo when I post a new note, I have to set note in Pulib or Private ?05:56
dhx1 $g_source_control_notes_view_status is unrelated06:01
dhx1the access_has_bug_level function is in access_api.php06:01
dhx1afaik you don't need to make bugnotes private if the bug is private06:01
dhx1it is inherited from the bug06:01
bezouroxok so06:09
bezourox$g_limit_reporters = ON;06:09
bezourox$g_source_control_notes_view_status = VS_PUBLIC;06:09
bezouroxand all wil ok06:10
bezouroxwhen my user will open a new report, he will be notified by mail, and administrators too06:10
bezouroxand when administrators add a note, just administrators and the user that opened this reports will be notified06:11
bezourox?06:11
bezouroxdhx1 : Hum I tested and my reporter don't recieve a mail :s06:16
bezouroxadmin group yes06:16
dhx1bezourox: not sure about that... does the reporter get an email with $g_limit_reporters = OFF ?06:16
bezouroxHum I din't understand what you say06:19
bezouroxmy level in english is poor :)06:19
bezouroxWhen I affect the new ticket to one of administrator06:19
bezouroxmy user recieve an email06:19
bezouroxbut when an administrtor add a note, nothing recieive by user06:20
bezouroxcurently : $g_limit_reporters= ON;06:20
dhx1what happens if you turn that off?06:22
dhx1ah06:22
dhx1there are actually two email checks06:22
dhx1one for the reporter, and a separate threshold for people that have posted reply notes06:22
bezouroxok06:23
bezouroxso I would like that when an admin add a note, the reporter be informed by mail06:23
bezouroxI turned $g_limit_report to OFF and will test06:24
dhx1read config_defaults_inc.php, specifically: $g_default_notify_flags, $g_notify_flags[...] and $g_email_receive_own06:25
dhx1ok, good start06:25
bezouroxOk so06:27
bezouroxWith these param06:27
bezouroxWhen I add a note06:27
bezouroxI I uncheck "Private", my user recieve an email06:27
bezouroxbut not the admin group06:28
bezouroxwhen "Private" stay checked (by default), my user don't recieve an email06:28
bezouroxHum sorry, when a note is added with "Public", user and admins recieve the email06:29
bezouroxso it's good for me06:29
bezouroxlast problem, how to specify by default a public status for a new note06:29
dhx1there is a private bugnote threshold that is different to the private bug threshold06:31
dhx1so it sounds like the private bugnote threshold is lower than the private bug threshold06:31
dhx1read config_defaults_inc.php for the best documentation on all the settings you can use to configure MantisBT06:32
dhx1it is best to go through the entire file from top to bottom so you can get the most of of MantisBT06:32
dhx1it'll let you know what you can and can't do ;)06:32
bezouroxYes I will search no problem06:35
bezouroxI set $g_source_control_notes_view_status = VS_PRIVATE; , else all reporters can see the reports that they don't have report06:36
dhx1that has nothing to do with bug reports and bug notes06:37
dhx1it is related to an old/deprecated in-built CVS integration system (CVS = version control system)06:38
dhx1if you commit to a repository it is meant to update the relevant bug with the commit message06:38
dhx1$g_default_bugnote_view_status = VS_PUBLIC;06:38
dhx1$g_private_bugnote_threshold = DEVELOPER;06:39
dhx1$g_private_bug_threshold = DEVELOPER;06:39
dhx1$g_default_bug_view_status = VS_PUBLIC;06:39
dhx1those are the 4 settings you'll most likely want to use06:40
dhx1(change values as appropriate)06:40
bezouroxAPPLICATION ERROR #20306:44
bezouroxA number was expected for view_state.06:44
bezouroxarf bad06:44
bezourox$g_default_bug_view_status = VS_PUBLIC06:44
dhx1VS_PRIVATE or VS_PUBLIC06:44
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)06:47
*** Joins: asm89 (~asm89@unaffiliated/asm89)08:08
*** Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (Remote host closed the connection)09:37
*** Quits: kirillka (~Miranda@195.242.142.17) (Quit: kirillka)09:56
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)11:13
*** bezourox is now known as bezourox`away11:47
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 248 seconds)11:56
*** Quits: hardyNH (~hardyNH@c-24-128-108-178.hsd1.nh.comcast.net) (Quit: hardyNH)12:07
*** Joins: hardyNH (~hardyNH@c-24-128-108-178.hsd1.nh.comcast.net)12:08
*** Joins: giallu (~giallu@fedora/giallu)12:25
jreesegiallu: can you set my user account as a site admin on the forums?13:17
jreesegiallu: nvm, I think I figured out how to do it in sql13:23
*** Joins: Paul24 (~IceChat09@2001:470:9310:aaaa:a8e6:11b4:5730:3ef1)13:23
jreeseok, maybe not...13:26
Paul24mo13:26
jreesehowdy13:27
*** Joins: ec (~chatzilla@67.21.0.146)14:36
ecis it possible to import a bugzilla .sql file into mantis14:37
jreesethere might be some migration scripts floating around on the net, but it's not officially supported14:38
eci found one but i had some problems....14:39
ecthanks for the help though14:39
jreeseyou're welcome14:40
*** Joins: saparvia (50dd01d5@gateway/web/freenode/ip.80.221.1.213)14:50
saparviaHi, I want to create a bunch of Mantis instances from a shell script. I've installed one instance, and my idea is to just make copies of that one, but I'd like to change the password of the administrator user from the script14:51
saparviaIs this easily possible?14:51
saparviaI can modify the password directly in the sql script that creates the database (it seems to be an MD5 hash of the plaintext password?)14:52
jreesesaparvia: should be a matter of running an sql query to `update mantis_user_table set password=MD5("whatever") where id=1` or somethng similar14:52
saparviaWhat about the cookie string?14:52
saparviaCan it be the same everywhere?14:52
jreeseI'm not sure off hand, sorry14:53
jreeseI feel like you should regenerate that for security14:53
saparviaAnd isn't it BTW a bit insecure to use MD5?14:53
saparviajreese: OK, thanks anyway14:53
saparviajreese: That's mu suspicion too14:53
jreeseyes, we've just never had the chance to implement a proper replacement14:54
jreeseideally, we'd use php's bcrypt support14:54
jreeseit's just a matter of writing code that can automatically update old user credentials as they log in, and or forcing a password reset for any users still using MD5 method14:55
saparviaDoes it matter what the cookie string actually looks like? I gather it should be base64 encoded, but does the actual content matter?14:55
saparviaI'm a bit clueless about cookies, so forgive me if it's a stupid question14:55
jreesesaparvia: I believe it's just arbitrary14:57
saparvia"Random and unique 384bit cookie string" basically means it's a hash right, so it can be anything of that length?14:57
jreeselooking at core/auth_api, it's just md5(something).md5(somethingelse)14:57
saparviajreese: OK, thanks for the help!14:57
jreeseyou're welcome14:57
*** Quits: ec (~chatzilla@67.21.0.146) (Quit: ChatZilla 0.9.87 [Firefox 7.0.1/20110928134238])15:26
*** Joins: asm89 (~asm89@unaffiliated/asm89)15:43
*** Joins: roentgen (~arthur@openvpn/community/support/roentgen)16:04
*** Quits: saparvia (50dd01d5@gateway/web/freenode/ip.80.221.1.213) (Quit: Page closed)16:04
*** Joins: agronholm (~demigod@nblzone-211-37.nblnetworks.fi)16:21
agronholmI'm having problems with file attachments16:21
agronholmI attached a PDF to an issue, but when I try to download it, its size has doubled and contents are garbled16:22
agronholmmantis 1.2.8 w/ postgresql16:22
agronholmthe size is displayed correctly in the issue itself16:23
agronholmnot only that but it does not give me the proper MIME type when sending it to me16:23
*** Quits: roentgen (~arthur@openvpn/community/support/roentgen) (Remote host closed the connection)16:37
jreeseagronholm: are you storing attachments in the database, or on the filesystem?16:37
agronholmjreese: not sure, it's been a while since I set it up16:40
agronholmhow do I check?16:40
agronholmok, database apparently16:41
*** Quits: wolog_ (~wolog@wolog.info) (Ping timeout: 256 seconds)16:41
jreeseagronholm: it may be an issue with our support for postgres, best thing I can suggest at the moment is to switch to storing them on disk16:42
*** Joins: wolog_ (~wolog@wolog.info)16:43
*** wolog_ is now known as Guest2843016:44
agronholmjreese: I copied the raw data directly from the db, it's broken there already16:46
jreeseagronholm: unfortunately, I'm not sure how to help on that16:47
agronholmI'll file a bug in github16:47
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)17:08
*** Joins: smithpg1002 (~smithpg10@65.119.51.224)17:52
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 248 seconds)17:53
*** Quits: smithpg1002 (~smithpg10@65.119.51.224) (Quit: smithpg1002)18:04
*** Quits: Paul24 (~IceChat09@2001:470:9310:aaaa:a8e6:11b4:5730:3ef1) (Quit: For Sale: Intergalactic Proton Powered Electrical Tentacled Advertising Droids)18:44
*** Joins: ec (~chatzilla@67.21.0.146)19:10
eci've been trying to import a bugzilla db saved in .xml but get errors when i do19:11
ecImporting file, please wait...19:11
ecSYSTEM WARNING: XMLReader::read() [xmlreader.read]: /var/tmp/phpYkhBdU:49920: parser error : Opening and ending tag mismatch: column line 709 and database19:11
ecSYSTEM WARNING: XMLReader::read() [xmlreader.read]:  </database>19:11
ecSYSTEM WARNING: XMLReader::read() [xmlreader.read]: ^19:11
ecSYSTEM WARNING: XMLReader::read() [xmlreader.read]: An Error Occured while reading19:11
ecanyone seen this before?19:19
*** Quits: bezourox`away (~bezou_rox@130.171.64.86.rev.sfr.net) (Read error: Connection reset by peer)19:31
*** Joins: bezourox`away (~bezou_rox@130.171.64.86.rev.sfr.net)19:31
echello?19:45
ecanyone there?19:45
*** Quits: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)20:00
*** Joins: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de)20:00
ec?20:02
echello?20:02
eccan someone help me?20:07
eci was able to get a bugzilla db file converted to xml20:28
ecbut when i import it into mantis it seems theres nothing being imported20:28
*** Quits: bezourox`away (~bezou_rox@130.171.64.86.rev.sfr.net) (Ping timeout: 255 seconds)20:30
*** Quits: ec (~chatzilla@67.21.0.146) (Remote host closed the connection)20:31
*** Quits: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz) (Quit: visit http://wormscesky.cz)23:00

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