Wednesday, 2009-05-27

../irclogs/#mantishelp.2009-05-27.log
--- scribe started ---00:00
mantisbotNew bug: Bug 10540 - brodriguez - open - new08:33
mantisbotNew bug: Page redirection error - APPLICATION ERROR #18 - http://www.mantisbt.org/bugs/view.php?id=1054008:33
cweisshi,09:00
cweisswhere can i setup new project states / change lables?09:01
DaniWwhere can i setup new project states / change lables?09:03
DaniWhello09:17
DaniWhi all09:26
thraxispDaniW: see http://www.mantisbt.org/manual/manual.customizing.mantis.customizing.status.values.php in the manual.10:13
brodriguezhi everyone10:14
brodriguezmay I ask about a problem here or better wait for my issue resolution? (sorry about my english)10:16
DaniWhi10:16
dhx_mbrodriguez: which issue?10:17
brodriguez#1054010:19
brodrigueznumber 001054010:19
thraxispbug #1054010:26
mantisbotBug 10540 - brodriguez - open - new10:26
mantisbotPage redirection error - APPLICATION ERROR #18 - http://www.mantisbt.org/bugs/view.php?id=1054010:26
brodriguezthat´s the issue10:27
brodriguezany help?10:29
dhx_mI don't use 1.1.7 so can't reproduce I'm afraid...10:31
dhx_mhaven't seen that issue in 1.2.x but it could be configuration specific10:32
dhx_moh10:33
dhx_mI see your problem10:33
brodriguezreally? :D10:34
brodriguezwhat did you see?10:35
brodriguezdhx_m: what did you see?10:37
kenguesthmm. is there demo of mantis available somewhere that I can see the summary graphs?10:38
dhx_mbrodriguez: I made a reply10:41
dhx_messentially Mantis is complaining because you've already sent headers somewhere before Mantis wants to10:42
dhx_mor maybe it is some other text/whitespace/whatever that is sent before headers10:42
brodriguezok thank you very much dhx_m, i´ll take a look10:45
dhx_mare you pulling in any external PHP files into Mantis?10:45
dhx_mwhat I'd do is check your site with a client that can show you PHP headers10:46
dhx_msorry... HTTP headers10:46
dhx_mso you can see the order they're sent to you10:46
brodriguezehmm... Fiddler?10:46
dhx_mpay special attention to the last one in the list10:46
dhx_mWireshark... or any other packet sniffer10:47
dhx_mnot sure what Fiddler is10:47
dhx_myeah that looks OK from my quick 2sec search of it10:47
[KK]Kirilldhx_m: lo10:50
dhx_m[KK]Kirill: hi :)10:50
brodriguezdhx_m: i´m watching what Fiddler shows10:51
[KK]KirillHow many cost Apple iPhone in your country?10:51
brodriguezbut i don´t know where to look or what to search10:51
dhx_mtry to reproduce the error again10:51
dhx_mand look through the fiddler logs to find access to the bug_relationship.php file on the server10:52
brodriguezi see that bug_relationship_delete.php has a HTML code before the "html" and  "head" tags10:52
dhx_manything specific?10:52
brodriguezjust the code to generate th "SYSTEM WARNING: in_array() [function.in-array]: Wrong datatype for second argument" message10:53
brodriguezto show that message before the real mantis header with its logo10:53
dhx_myou actually see PHP code in fiddler?10:53
dhx_mor just the HTML?10:54
brodriguezno, I see the html code generated10:54
dhx_mah that is OK then10:54
brodriguezthe page I actually see10:54
dhx_mwhat you're interested in is the page where the full on error message appears10:55
dhx_mthe one before <html> is "ok"10:55
brodriguezok10:55
brodriguezbut i don´t see anything significant in that piece of code10:56
brodriguezi´ll paste it10:56
dhx_mnah, you're looking for HTTP headers10:57
brodriguezok too big10:57
dhx_mnot the actual HTML code10:57
dhx_mie. Content-Type: something10:57
brodriguezoh10:57
brodriguezok10:57
dhx_mdoes it show it in raw form, in the order sent by the server?10:57
brodriguezi think i´m getting it10:58
brodriguezi see many parameters from the header10:58
dhx_mwhat is the first and last ones?10:58
brodriguezCache Control, Date, Expires, Context-Length...10:58
brodriguezCache is the first one i think10:59
brodriguezCache-Control: no-store, no-cache, must-revalidate10:59
dhx_mactually Mantis redirects suck... using meta refresh :(10:59
dhx_mis there anything before "Content-Type"?11:00
brodriguezlast one-> Keep-Alive: timeout=5, max=10011:00
brodriguezyes, before Content-Type there is  Content-Length: 596111:00
dhx_manything else?11:00
brodriguezafter Content-Length there is Content-Type: text/html;charset=utf-811:01
dhx_mhmm let me see what happens on my install11:01
brodriguez;)11:01
dhx_mlooks ok to me11:05
dhx_mmaybe some HTML is being sent before those headers then11:06
brodriguezi don´t know, not all redirections makes this error.11:07
dhx_mnot sure how to check that11:07
dhx_mis it when you click 'delete' next to a relationship?11:07
brodriguezyes, but not inmediately: i click Delete, then i am redirected to a page with a Delete Button in the middle.11:08
brodriguezthen click that delete button an i get the error page11:09
dhx_mis that intermediate page URL bug_relationship_delete.php?11:10
brodriguezyes11:11
dhx_mwell it does indeed seem that Mantis is sending out HTML before the headers11:13
dhx_mbrodriguez: please try setting $g_stop_on_errors=ON in config_inc.php11:15
brodriguezan user is bugging me now, i´´l be back in a hurry11:15
dhx_mok11:15
dhx_moh11:20
dhx_mmight have to do with that unhandled error you were talking about11:20
brodrigueznop, other stuff :S11:24
dhx_mso that config option didn't help?11:26
brodriguezstill with that user, but i can tell you that i tried the stop_on_errors option with ON and it just breaks the page generation11:31
brodriguezi think it is for debug mode11:31
brodriguezor testing i think, don´t know well11:31
dhx_mwhat does it do?11:33
dhx_mwhite pages?11:33
dhx_merror messages?11:33
brodriguezi think i remember it just stops generating html code after the message "SYSTEM WARNING: in_array() [function.in-array]: Wrong datatype for second argument  "11:34
brodriguezand doesn´t appear the mantis logo and everything above it11:35
brodriguez:S11:35
dhx_mhmmm now I think we just need to work out where that in_array() error is coming from11:35
dhx_mmaybe one of your configuration options is a string instead of number11:38
dhx_mor something like that?11:38
dhx_mdoubt it though...11:38
brodriguezi´m back11:42
brodriguezi posted a screenshot11:42
brodriguezwich shows in debug mode wich line of the print_api.php file crashes11:43
brodriguezFull path: /usr/local/http/htdocs/mantis/core/print_api.php  Line: 68  ---> trigger_error function11:43
brodriguezwith args--> ( '18', 256 )11:44
dhx_mcan you please check that file and paste that line here11:44
dhx_mit has changed in the version I'm looking at :)11:45
brodriguezok11:45
brodrigueztrigger_error( ERROR_PAGE_REDIRECTION, ERROR );11:45
brodriguezi read your last not in my issue11:45
dhx_mah yeah, that is the error we already know about11:45
brodriguezi´m so noob at PHP, but i kinda understand what you say11:45
dhx_mwhat's happening is that somewhere beforehand in the code, in_array() - a PHP function - is failing11:46
brodriguezdo you think the problem is bug_relationship_delete.php?11:46
dhx_mnot sure at the moment11:46
dhx_mprint_api is definitely broken in trying to send HTTP headers after sending HTML content11:47
dhx_mbut I'm wondering why no one else has experienced that problem11:47
brodriguezTHAT is what i´m wondering too11:48
brodriguezthis version, 1.1.7, has been test for a while, so that makes me think if the problem is mantis11:48
brodriguezor it´s me :s11:48
dhx_moh11:48
brodriguezi mean11:49
brodriguezis the code the problem or a config file?11:49
dhx_mob_start() is forced by PHP11:49
dhx_mMantis forces that PHP option on... to do output buffereing11:50
brodriguezaham11:50
dhx_mso it shouldn't matter when HTTP headers are added11:50
dhx_mit must be failing (returning false)11:50
brodriguezi´m confused :s11:50
dhx_mmaybe safe mode or something else on your server is preventing ob_start from working?11:51
brodriguezdon´t know11:51
brodriguezbut11:51
brodriguez# don't send more headers if they have already been sent (guideweb)11:51
brodriguezheaders_sent() is making me go trough the "else" and throw the error11:52
brodriguezthat´s what you say, a header has been already sent11:52
brodriguezbut what/why?11:52
dhx_mwell without output buffering, PHP sends headers as soon as it gets them11:53
dhx_mand that happens before the code in print_api.php is called11:53
brodriguezaham11:53
brodriguezbut other redirections work fine, so no header is sent before print_api.php, isn´t it?11:54
brodriguezi mean, this happens in specific circunstances, and some header is sent i don´t know why11:54
brodriguezi´so lost, and maybe i´m confusing you. obviously i am a noob at php11:57
dhx_mnah, you're right11:59
dhx_mother redirects should also fail, but they're not... so maybe it is just an isolated thing with the relationships11:59
brodriguezthat´s the point12:01
brodriguezi have to go now. thank you VERY much for your help dhx_m. i´ll be back later and check any update on my issue12:02
brodriguezthanks ;)12:02
dhx_mok keep an eye on the bug, we'll see what the developers say :)12:03
mantisbotNew bug: Bug 10541 - stb - open - new12:09
mantisbotNew bug: Some german strings (files attached) - http://www.mantisbt.org/bugs/view.php?id=1054112:09
DaniWhow do i add new project states? e.g. ' check customer input and create offer'', 'offered to the customer', 'ordered by customer', 'in process', 'waiting for feedback', 'stoped at all', 'ready for checkup', ...12:11
mantisbotNew bug: Bug 10542 - stb - open - new12:19
mantisbotNew bug: mysql_real_escape_string used without connection id - http://www.mantisbt.org/bugs/view.php?id=1054212:19
nuclear_eclipsemorning all12:29
dhx_mnuclear_eclipse: hi12:31
dhx_mDaniW: not sure... I don't think it is a customisable feature12:31
dhx_mDaniW: actually it isn't... and it wouldn't make sense12:32
dhx_mDaniW: maybe you're talking about the state of versions of a project (released, obsolete)?12:32
dhx_mI can see where you might want to use Mantis for lots of short time limited projects12:32
dhx_malthough it'd be a lot of work to get Mantis to work like that12:33
dhx_mas it doesn't seem it was built that flexibility from day one12:33
nuclear_eclipse06:13 < thraxisp> DaniW: see http://www.mantisbt.org/manual/manual.customizing.mantis.customizing.status.values.php in12:33
nuclear_eclipse      the manual.12:33
dhx_mnuclear_eclipse: I think he wanted to have statuses for projects, not individual bugs?12:34
nuclear_eclipsejust want to make sure he saw that link first12:34
dhx_mmaybe I'm interpreting wrong :)12:34
dhx_myep12:34
nuclear_eclipseprojects don't really have 'state' in the first place....12:34
dhx_mnah, that's what I was saying12:34
dhx_malthough they *could*, depending on your use of Mantis12:35
dhx_mie. you run lots of 3 month long projects in a company and you want to use the same tool to handle all of them12:35
dhx_mmaybe not 3 months... 2 years maybe12:36
DaniWdhx_m: yes, 1 mantis for all my projects (short time projects)12:36
dhx_mso you have a reason to use versions, categories as intended12:36
dhx_mDaniW: you could hack around it by having one project with 1 category per project12:38
dhx_mwhat I mean is you might be running 4 3-month projects.... A thru D12:38
dhx_mso in Mantis you'd have "My Project" (whatever name) and under that, 4 categories A thru D where you file tickets12:39
dhx_mthis is a big hack workaround though! :o12:39
mantisbotNew bug: Bug 10543 - oberger - open - new12:39
mantisbotNew bug: Proposal: Relationships to external bugs in remote bugtrackers - http://www.mantisbt.org/bugs/view.php?id=1054312:39
dhx_mwow, that sounds nice... sounds like they're going to implement that themselves?12:40
dhx_mI always liked how Launchpad had support for external links to other bugtrackers12:40
DaniWi want to create a project for each of my TYPO3-Websites (customer websites), i can use versions for each new release (Website 2009, 2010 and so on), but a project should consists of many subprojects (Extension for something, Extension for another thing, ect.) each of this sub projects should have a state as described above12:40
dhx_mit sounds like you're breaking things up into chunks that are too small?12:43
dhx_mhow many tickets do you expect in each project?12:43
DaniW15-250 per sub-project12:44
dhx_mI agree the idea the subprojects is a good idea12:44
dhx_mohhh12:46
dhx_mso it seems Mantis might just be able to do this12:46
dhx_mI wasn't even aware12:46
dhx_m$g_project_status_enum_string is what you're after12:48
dhx_msee config_defaults_inc.php for an example of how to change it12:48
dhx_mMantis gets much cooler the more I look into it :D12:49
nuclear_eclipsedhx_m: also check bug 9940 ;)12:50
mantisbotBug 9940 - jreese - open - new12:50
mantisbotCreate on Integration Plugin for Launchpad - http://www.mantisbt.org/bugs/view.php?id=994012:50
dhx_mnuclear_eclipse: very nice :)12:51
dhx_mI wonder what they mean when they say upstream work is scoped for Mantis integration into Launchpad (from their end)?12:51
dhx_mI thought it'd already be possible via SOAP?12:52
nuclear_eclipsegood question; I'm assuming that just means that I've created a report for it :P12:52
dhx_m:)12:52
dhx_mnah but your ticket is to integrate Launchpad with Mantis... not Mantis into Launchpad12:53
dhx_mif that makes any sense12:53
dhx_mif I understand correctly?12:53
nuclear_eclipseyes, basically12:53
dhx_moh I see, that ticket is for creating a plugin *for* Launchpad, not for Mantis12:54
nuclear_eclipsebut a "LaunchpadIntegration" plugin could potentially handle communication in both directions....12:54
dhx_myep12:54
dhx_mI'd probably argue for a split though12:55
nuclear_eclipseI'd argue, period :P12:55
dhx_m:D12:55
dhx_mthe one thing I *really* like about Trac is their source code browser :)12:56
dhx_malthough I gather it is still primitive (not so good for DVCS)12:56
dhx_mDaniW: did you get my message about $g_project_status_enum_string ?12:58
* nuclear_eclipse is off to a meeting12:58
dhx_mok cya :)12:59
dhx_mI'll get paul___ to break some stuff while you're gone? :)13:00
DaniWdhx_m: $g_project_status_enum_string is not in config_defaults_inc.php (1.1.7)13:03
DaniWare you talking about a beta version?13:05
dhx_mDaniW: oh you're right, I'm talking about the latest development version from git master13:05
dhx_mDaniW: seems it was a feature added just recently13:05
dhx_m1.2.x is *well* worth the upgrade13:05
DaniWfor productive useage?13:06
DaniWcan i keep my 1.1.7 data?13:06
dhx_myeah, Mantis always has an upgrade path13:07
dhx_meven for development versions13:07
dhx_mI use it in production OK13:07
DaniWhow to update?13:07
dhx_mbut I'm also not traditional in the stable vs unstable debate13:07
DaniWupdate to 1.2.0a3?13:08
dhx_mI tend to be on the side of the argument that favours the newest version available... where you manually test the code yourself13:08
dhx_m1.2.0a3 should do what you want to do... but from what I just said, you may as well get the latest git master copy13:08
dhx_mrule 1) backup EVERYTHING before you perform any upgrade13:09
DaniWgit master copy?13:09
dhx_mrule 2) test everything thoroughly before going live with the new version13:09
DaniWok13:09
dhx_mgit master copy... click the first instance of "snapshot" @ http://git.mantisbt.org/?p=mantisbt.git;a=summary13:09
dhx_mI do warn you that development builds aren't always stable13:10
nbkhwjmis there a config option to modify the email contents, or is editing the code required??13:10
dhx_mbut you've got to upgrade anyway, and my theory is that if you're testing thoroughly, you will benefit more from the features/fixes in the latest development build than you will lose out from a few new bugs introduced13:11
DaniWhow to update? copy files , that´s it?13:12
dhx_malso if you're following the development release carefully, you're more likely to get developer support, and patches will get to you a lot quicker when you do find/fix a problem :)13:12
dhx_m1) back up your database (lock it first to prevent edits during the backup)13:12
dhx_m2) back up your existing Mantis files on your server13:13
dhx_m3) untar the latest snapshot to a new directory13:13
dhx_m4) redo config_inc.php to your liking (you can use your old config as a guide... but follow config_defaults_inc.php in the latest release)13:14
dhx_m5) visit your new mantis install, it'll tell you the database schema is out of date and you need to upgrade13:14
dhx_m6) upgrade the database schema and login... now you just have the long task of configuring the latest version of Mantis :)13:14
dhx_mdisabling features you don't want, changing the enum levels for the project statuses, etc13:15
DaniWok, thanks13:16
DaniWbackup is running...13:16
dhx_mkeep that backup safe :)13:17
dhx_mand make sure you do in house testing before going live13:17
dhx_mso you know it works as intended13:17
DaniWok, thanks13:18
dhx_mthe other thing you'd need to do is keep track of any security problems that may arise in Mantis13:18
dhx_mso you know when you are forced to patch Mantis yourself13:18
dhx_m(or update your installation to a new development version)13:18
DaniWmantis is an internal system in our company13:18
dhx_musing unstable software transfers a lot of work onto you13:19
dhx_mit isn't so bad for web scripts13:20
dhx_m(because updates aren't usually managed as part of package managers)13:20
DaniWyes, but the other way is NOT to use mantis (because 1.1.7) do not fits to our needs13:20
dhx_myeah, I'm just putting it out there that you really need to do things TheRightWay(TM)13:20
dhx_mwhich you should be doing anyway if you use stable software13:21
dhx_mbut the implications of not backing up/testing before going live with an upgrade are far worse if you're using "unstable" software13:21
dhx_ma lot of people won't back up their databases prior to an upgrade13:21
DaniWi understand13:21
dhx_mand they'll overwrite files in their wwwroot directly during an upgrade, with no testing at all13:22
dhx_myou can still use the "if it isn't broken, don't break it" rule after you've got it running successfully :)13:22
dhx_mformally I think you'd call the approach you're doing now http://en.wikipedia.org/wiki/Rolling_release13:24
dhx_m... but it'd be a standard release method if you're applying patches on top of your install, instead of upgrading to the latest version13:25
nbkhwjmi cant imagine anyone upgrading without a backup...!!13:26
dhx_mthey do... all the time :(13:26
dhx_mlazy people heh13:26
dhx_mmost don't even know what the word "backup" means13:26
nbkhwjmI manage 20 internal production sites and i do a (1) test code on Test server, (2) then move to a test site on the same server, then (3) flip over to the new site while leaving the old intact.13:27
dhx_myep, that's the right way of doing it :)13:28
nbkhwjmthen if its broke, we just flip back to the original....13:28
dhx_myou can't always flip back though if you're modifying data with the new "broken" software13:28
dhx_mand you also can't just port those data modifications from the new version back to the old stable one13:28
dhx_myou get data loss that way13:29
nbkhwjmyou can if you define a second copy of the DB tables, then normalize later...13:29
dhx_mbut what if the new version does something dramatically wrong like forgetting to write some data to the DB?13:29
dhx_mpeople think they've entered information, but it is missing13:29
nbkhwjmthere is a chance to loose data always, but its better that 2000+ developers who have stopped working13:29
dhx_myeah :)13:30
dhx_mjust saying that switching back isn't always something that can be done easily13:30
nbkhwjmcant he email text be modified by a config or only code mod??13:30
nbkhwjmi agree about switching back, its not trivial at all...13:30
dhx_mah sorry forgot to reply to that question...13:32
dhx_myou can change strings appearing in emails with custom_strings13:33
DaniWi get error messages:13:33
dhx_mbut I think Mantis will force a few things for you, like dumping the history of a bug in each email13:33
dhx_mDaniW: forgot to mention you need PHP 5.1+13:34
DaniWNotice: date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID '' is invalid in [...]core/user_pref_api.php on line 17313:34
nbkhwjmK, im looking at email_api.php... what i need to to remove any links to the bug system and insert links to another server...13:34
nbkhwjmheres the background.. we have the production bug system, but end users submit bugs to another webserver and we crank them in mantis by writing to the tables directly... (i know not ideal)13:35
dhx_mDaniW: there was a recent upgrade to Mantis that added the ability for users to set their own timezones, so I guess you just found a bug13:35
dhx_mDaniW: you may have to manually modify your user table in the database to set the timezone ID to a valid number13:35
DaniWPHP Version 5.2.913:35
dhx_mDaniW: that version is fine, let me get a query ready for you to try...13:35
nbkhwjmbut when we answer a bug in mantis, we cannot send notification to the reporter, because it directs them to the mantis system and not this intermediate server...13:35
dhx_mpaul___: heads up for later... <DaniW> Notice: date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID '' is invalid in [...]core/user_pref_api.php on line 17313:36
nbkhwjmwe allow many different systems to submit bugs in this way, then the bug submission is "internal" to them, but centralized for us... (make sense?)13:37
dhx_mDaniW: did you upgrade the database schema?13:38
dhx_mnbkhwjm: yep that makes sense13:39
dhx_mnbkhwjm: so you have multiple access URLs?13:39
nbkhwjmyes...13:39
nbkhwjmreporters are added to the central mantis, but not allowed to login.13:40
dhx_mnbkhwjm: that may be a problem that needs the use of a transparent proxy in the middle to rewrite URLs?13:40
dhx_mmaybe even mod_rewrite could fix it?13:40
dhx_mactually I guess not13:40
nbkhwjmwindows hosted systems :^(13:40
dhx_mMantis will still push out only one type of URL13:40
nbkhwjmcan i just remove the url...13:41
dhx_myeah that'd be easiest I guess13:41
dhx_mbut there are lots of places to do that13:41
dhx_mpassword recovery, notifications, etc13:41
dhx_mmaybe you could hack the function in Mantis that is the last step before sending an email13:41
nbkhwjmno need for PW recovery only notifications about bug updates entered into mantis by developers...13:42
dhx_mso it searches and replaces the URL13:42
dhx_mbut that is quite a nasty workaround13:42
nbkhwjmyes, i hate to hack on it, then my upgrade path is terrible and unstable...13:42
dhx_myep, at least with my proposal (as ugly as it is) it'd only affect one function13:43
dhx_mand wouldn't require mantis-wide changes13:43
nbkhwjmare there any discussions about custom email, if I wirte something could it be merged??13:43
dhx_mI can't find any at http://www.mantisbt.org/bugs/13:45
dhx_mI'm not sure if it is possible to run Mantis with $g_path set to a relative URL?13:45
nbkhwjmor at least exchange $g_path in the mail function to another var...13:46
dhx_mnbkhwjm: it seems you might be able to just set $g_path to a relative URL13:46
dhx_mno trailing /13:47
dhx_moh wait13:47
dhx_mlet me verify13:47
dhx_mtrailing / required13:48
nbkhwjm$g_path is used in new account creation also, so changing it would affect users on the main system also.. ill dig into the bugnote and other funcs to see what i can do..13:48
nbkhwjmthe important thing is that there ISNT a config option...13:49
dhx_mbetter idea...13:49
dhx_m(maybe)13:49
nbkhwjmk shoot13:49
dhx_min config_inc.php, set $g_path based on the current PHP headers13:49
dhx_mso grab the Hostname: HTTP field from the client13:49
dhx_mand append the appropriate path to Mantis13:50
dhx_myou can write whatever PHP you like in config_inc.php :)13:50
dhx_mso it could even be as ugly as an if/else clause13:50
dhx_mso set $g_path differently according to whatever factor you like13:50
dhx_m*to set13:50
nbkhwjmIC13:51
dhx_mthat way you can maintain multiple URLs and keep them distinct from each other at once13:51
dhx_m*however* you may need to turn off the bugnote linking to other bugs ability13:51
dhx_mie. #xxx creating a hyperlink to bug xxx13:52
dhx_mMantis probably stores that as a full text link to the bug... leaking your secret URLs13:52
dhx_m"secret" :)13:52
DaniWdhx_m: sorry for my late response - i had a meeting14:16
DaniWdatabase schema was updated14:16
dhx_mDaniW: ok np, but the error remains?14:17
DaniWnp?14:18
DaniWyes, error remains14:18
dhx_mnp - no problem14:19
dhx_mhmm ok14:19
DaniWthis error only exists if i am loged in as a user with has 'Berlin' as Timezone14:20
DaniWe.g. Amsterdam works14:20
dhx_moh ;/14:20
dhx_mhow odd14:20
dhx_mI guess you can't change it on the user which is broken?14:21
faouzisalut14:21
DaniWyes, via mantis14:21
dhx_msalut faouzi :)14:21
faouziest ce que ya quelqu'un qui parle en français loll14:21
faouzijsalut14:21
dhx_mje ne parle pas francais? :D14:22
faouzimdr14:22
faouzioki14:22
dhx_mdid that make sense? :)14:22
faouzij'ai une question!!14:22
dhx_mDaniW: ah, so you tried changing it manually via the database?14:22
faouzije suis null en anglais dsl14:22
dhx_mfaouzi: I only speak English :)14:23
faouzioki14:23
faouzii have a question14:23
DaniWno, via mantis (german lables): Konto / Einstellungen ändern14:23
faouzi can I find a plugin for CVS included in Mantis????????????14:24
DaniWbut i have some other errors too: APPLICATION WARNING #300: Zeichenkette 'minutes' nicht gefunden.14:25
DaniWAPPLICATION WARNING #300: Zeichenkette 'seconds' nicht gefunden.14:25
DaniWAPPLICATION WARNING #300: Zeichenkette 'manage_columns_config' nicht gefunden.14:25
DaniWAPPLICATION WARNING #300: Zeichenkette 'timezone' nicht gefunden.14:25
DaniWZeichenkette = string14:25
dhx_mDaniW: try setting the timezone in the database to "Europe/Berlin"14:25
faouzidhx_m :  can I find a plugin for CVS included in Mantis14:26
faouzi?14:26
dhx_mfaouzi: SourceIntegration does SVN and Git14:26
dhx_mfaouzi: no CVS support AFAIK (because it is too old for anyone to still be using I imagine :p)14:27
dhx_mfaouzi: it'd be trivial to write a plugin yourself for SourceIntegration that lets you use CVS... I think14:28
DaniWdhx_m: changed via PhpMyAdmin=> works, but if a user change it afterwards via mantis => error14:28
dhx_mfaouzi: see http://git.mantisforge.org/w/source-integration.git14:28
dhx_mDanniW: hmm does the database get updated when the user tries to change it?14:29
faouzidhx_m :yes, but I did not manage to install it.14:29
DaniWyes: empty14:29
dhx_mDaniW: and what option did you select from the dropdown list? Was it just "Berlin" under the category "Europe"?14:30
DaniWbut only for Berlin14:30
dhx_mhmm14:30
DaniWyes14:30
dhx_mmaybe you can't change it to the same/existing value?14:30
DaniWmantis html form is correct: <option selected="selected" value="Europe/Berlin">Berlin</option>14:31
DaniWbut stored as '' (empty)14:32
DaniWno, when selecting 'Europe/Amsterdam' -> save -> select 'Europe/Berlin' -> save => error (empty value in database)14:33
faouzithanks dhx_m14:34
faouzidhx_m : Is it possible to change the code does SourceIntegration SVN and Git to fit CVS14:36
faouzi???14:36
dhx_mfaouzi: yes, but you'd need to write a new plugin for SourceIntegration for CVS14:36
dhx_mfaouzi: do you use ViewCVS?14:36
dhx_mDanniW: hmmm interesting, let me check14:36
faouzidhx_m : no14:37
dhx_mfaouzi: you'd need some sort of web accessible repository browser AFAIK14:37
dhx_mfaouzi: and your plugin would call the 'cvs' command line utility to pull in new commits14:38
faouzidhx_m : AFAIK???14:38
dhx_mfaouzi: or if CVS supports event hooks, you can push them into Mantis that way14:38
dhx_mfaouzi: as far as I know14:38
faouzidhx_m : is that you have a document that explains what you tell me, please14:40
dhx_mDaniW: <?php print_timezone_option_list( $t_pref->timezone ?  $t_pref->timezone  : config_get_global( 'default_timezone' ) ) ?>14:41
dhx_mDaniW: basically, set $g_default_timezone = "Europe/Berlin"; in config_inc.php14:42
dhx_mI think14:42
dhx_mfaouzi: general overview @ http://leetcode.net/blog/2009/01/integrating-git-svn-with-mantisbt/14:42
dhx_mfaouzi: but there is no "how to write a plugin" guide from what I know... you' d have to copy the existing plugins to see how it works14:43
dhx_mDaniW: I think... not too sure anymore on what I just said :)14:43
faouzidhx_m : I have already seen14:44
dhx_mDaniW: ah I see... in account_prefs_update.php the timezone setting is reverted to blank if it matches the default one in config_inc.php14:45
dhx_mDaniW: I have the fix... one line change... 1sec14:46
dhx_mDaniW & paul___ : user_pref_api.php:173 should be:14:48
faouzidhx_m : thanks for you14:48
MaximBI've just installed mantis , how can I access it via web ? do I need to edit some files first ?14:48
dhx_mdate_default_timezone_set( $row['timezone'] ? $row['timezone'] : config_get_global( 'default_timezone' ) );14:49
dhx_mDaniW: please retry with that line 173 changed to what I suggested14:49
dhx_mDaniW: you can expect that fixed soon :)14:51
DaniWdhx_m: your fix works15:15
DaniWthanks15:15
dhx_mDaniW: great :)15:15
DaniWwhat about the other issues? (APPLICATION WARNING)15:16
DaniWcan we talk about it in 15 hours (i´ll bw back in 15 hours)15:17
DaniWbw = back15:17
DaniWbw = be15:17
DaniW;-)15:17
dhx_mI think that is to do with missing strings15:19
dhx_mbecause the German translation probably hasn't been updated to include the new timezone stuff15:19
dhx_mDaniW: so you can add the missing strings to your custom strings file to fix it15:20
DaniWcan we meet tomorrow (15+ h)15:20
dhx_mie. translate it yourself15:20
dhx_myeah I'll be around :)15:20
DaniWbye, bye15:20
dhx_mor leave messages for me if I'm not15:20
dhx_mcya :)15:20
nbkhwjmdhx_m still there?15:54
dhx_myep15:55
nbkhwjmiv'e got a solution to this email thing, let me know what you think...15:55
nbkhwjmi defined a couple new config vars bugnote_link_suppress and bug_link_override..15:56
nbkhwjmthese will be checked in email_api then use if present, this is a simple and easy method i think... WDYT?15:56
dhx_msounds OK to me15:57
nbkhwjmthen simple if ( config_get('bugnote_link_suppress)) { blah}....15:57
dhx_massuming you're not forgetting a few places where those links might appear into emails15:57
dhx_myep15:57
dhx_mthe override I'm not too sure on15:58
nbkhwjmyea, im doing a code search, but it seems to be all in email_api...15:58
dhx_myep :)15:58
nbkhwjmyea i tried to use $g_bugnote_link_tag but it always uses $g_path for the prefix.15:59
nbkhwjmif i change g_path then i have problems all over.  Since i want to only alter the outgoing email for bugs and bugnotes, it seemed better to alter it there...15:59
dhx_myep, but changing $g_path as I suggested before is no go?16:00
dhx_mah ok16:00
dhx_mI think I see what you want to do... I just assumed you wanted access to all of Mantis with different unique hostnames16:00
nbkhwjmthen i have problems where developers need the normal mantis ui... its the users i want to force elsewhere...16:00
dhx_mis this for load balancing or authorisation purposes?16:01
nbkhwjmno only the users, we did not want the users to "crawl" all over our bug system, but to control how and what they see..16:01
nbkhwjmauthorisation and security...16:01
dhx_mwhy not just use inbuilt Mantis auth?16:02
nbkhwjmall users go to one portal to report issues with many products, each product could be from different groups, not all have the same systems.16:03
dhx_mah, so they never really need to see the Mantis pages?16:03
nbkhwjmso to give the users a single place, while allowing different groups to maintain their bug systems, we did this..16:03
nbkhwjmyes USERS never see mantis. only developers16:03
dhx_mwouldn't it be better to just use the SOAP interface to remotely insert stuff from users?16:04
dhx_mso they don't have accounts at all16:04
dhx_mwhat you're doing sounds a little dangerous in that if they find the URL...16:05
nbkhwjmwhen we built this mantis didnt have SOAP... plus there are situations where we can share a DB, but not allow web traffic... (stupid i know)16:05
dhx_mok :)16:05
dhx_mI'd still try and lock down Mantis permissions as much as possible, that is the main protection you'll get16:05
nbkhwjmif they do find the url, the account has a crazy password set, no self registration and the lost password link is missing...16:06
dhx_mah ok16:06
dhx_mno problem then16:06
dhx_mthe URL removal is more cosmetic then16:06
nbkhwjmyes i know... security is an issue...16:06
nbkhwjmyes and to make sure they know where to go and get / submit more details...16:06
nbkhwjmits better than using lotus notes or some such stupid thing for bug reporting (which is what they wanted to do)...16:07
nbkhwjmI'll submit to mantisBT bug as a feature then see what abuse i get... :)16:08
dhx_m:)16:10
dhx_mit sounds like a legitimate cause to me16:10
dhx_mif you know git, it'd have much greater chance of being merged if it is attached as a git patch (signed off)16:11
nbkhwjmk16:11
dhx_mbut a simple diff shouldn't be too much of a hurdle :)16:11
dhx_m(for devs to merge)16:11
dhx_mit's just when you get people attaching version 1 of a file, and version 216:12
dhx_mnot in a diff format16:12
dhx_mDIY diff :p16:12
nuclear_eclipseso, what'd I miss?  that backlog is much too long :P16:46
harpreet_singhhi all16:54
[KK]Kirillharpreet_singh: lo17:04
scooby2Can anyone point me to the patch for allowing mantis to receive email? Google comes up with a patch for 1.2.0aX but not for 1.1.7.17:13
nuclear_eclipsescooby2: there's no official patch for it, but bug 4286 contains multiple comunnity contributions17:14
mantisbotBug 4286 - indy - open - assigned17:14
mantisbotSolution for reporting via E-Mail - http://www.mantisbt.org/bugs/view.php?id=428617:14
scooby2Do the developers ever plan to integrate this excellent feature?:)17:15
nuclear_eclipseit would be nice, but there's no one good way of doing it, so for the forseeable future, no17:15
scooby2ok17:16
nuclear_eclipseone of the developers is working on a standalone python application that uses the Mantis SOAP API to handle email integration, which is likely the "best" method of doing it IMO, but it likely won't be official17:17
scooby2sounds like a better plan then the current patch method17:19
mantisbotNew bug: Bug 10544 - jonathh - open - new17:21
mantisbotNew bug: Email bug note ordering. - http://www.mantisbt.org/bugs/view.php?id=1054417:21
mantisbotNew bug: Bug 10545 - nbkhwjm - open - new17:21
mantisbotNew bug: option to make URL in email configurable, on, off ad replace - http://www.mantisbt.org/bugs/view.php?id=1054517:21
mantisbotNew bug: Bug 10546 - stb - open - new17:21
mantisbotNew bug: custom avatar - http://www.mantisbt.org/bugs/view.php?id=1054617:21
paul___.17:30
paul___dhx_m: lo17:31
paul___nuclear_eclipse: lo17:31
nuclear_eclipsehi paul___17:31
paul___summary of today in here?17:32
nuclear_eclipsedunno17:32
dhx_mhey17:32
dhx_msummary is...17:32
dhx_muser_pref_api.php:17317:33
dhx_mmissing check for blank timezone info from the database17:33
dhx_msuggested to change line 173 to:17:33
dhx_mdate_default_timezone_set( $row['timezone'] ? $row['timezone'] : config_get_global( 'default_timezone' ) );17:33
paul___yea, know about that17:33
paul___anything else?17:33
dhx_msomeone needed this feature: http://www.mantisbt.org/bugs/view.php?id=1054517:33
paul___bug 1054517:34
mantisbotBug 10545 - nbkhwjm - open - new17:34
mantisbotoption to make URL in email configurable, on, off ad replace - http://www.mantisbt.org/bugs/view.php?id=1054517:34
dhx_msomeone else wanted to get CVS working with Mantis (they posted to bug 8936)17:34
mantisbotBug 8936 - egoeht69 - open - acknowledged17:34
mantisbotSVN/CVS checkings don't notify by email - http://www.mantisbt.org/bugs/view.php?id=893617:34
dhx_moh and more importantly... bug #1054017:36
mantisbotBug 10540 - brodriguez - open - new17:36
mantisbotPage redirection error - APPLICATION ERROR #18 - http://www.mantisbt.org/bugs/view.php?id=1054017:36
dhx_munchecked respose for ob_start()17:36
dhx_mfollowed by sending additional HTTP redirect headers after HTML content17:36
paul___dhx_m: it's not to do with ob_start imo17:44
dhx_mpaul___: yeah I was unsure what the problem was... definitely to do with headers being sent too late17:45
paul___the problem is the warnings17:45
dhx_mso I figured it might be because ob_start failed to work on his server17:45
paul___from in_array17:45
dhx_mbut even so, we're still sending headers after the html is printed17:46
paul___i.e. wrong data type for second argument of in_array17:46
dhx_myep that too17:46
dhx_mI didn't even look at that17:46
dhx_mthat error is bad, I agree... but there seem to actually be 2 errors in 1 here17:46
paul___and yes, we dont check if ob_start fails17:47
paul___although I'm not sure in what cases ob_start would fail17:47
dhx_mprobably 0.0000000001% of the time if no one has reported issues yet17:48
dhx_mmust work for everyone as Mantis seems to require the use of output buffering17:49
dhx_mwith unlimited chunk size? :(17:49
dhx_mso the whole output is placed in a buffer before being sent to the client... sounds inefficient to me17:49
dhx_mmight be part of the reason why the summary/graphs require such a large amount of memory (or maybe it is just jpgraph)17:50
paul___in terms of ob_start17:52
paul___from what I can tell17:52
paul___the cases that it will fail are not going to get hit17:52
paul___a) parameters sent to ob_start are incorrect17:52
paul___b) you call ob_* functions from within ob_start17:53
paul___c) you input in an object/class/whatever but without specifying the method to use17:53
dhx_mah, so never...17:54
dhx_mit is interesting then that a warning/error would cause headers_sent() to fail17:54
paul___what we need is user to change warnings to halt or whatever (i.e. halt on any error17:55
paul___so we can see what in_array call is generinatg the warning17:55
dhx_m$g_stop_on_errors becomes redundant then?17:55
paul___alternatively17:57
paul___shouldn't take too long to review the 211 in_rray calls we have17:57
dhx_mlol17:57
dhx_mneed a hand checking?17:58
paul___db_field_exists18:00
paul___ config_get( 'preview_text_extensions' );18:02
paul___config_get( 'preview_image_extensions' );18:03
paul___project_get_all_user_rows18:05
paul___that?18:05
dhx_mit was happening for him when deleting a relationship18:06
paul___that's nice :P18:07
dhx_mdid I mention this was for 1.1.7... :o18:07
paul___but it's project_get_all_user_rows I believe18:07
dhx_mlol18:07
dhx_mare those 3 cases all possible culprits?18:08
dhx_m4 sorry18:08
paul___i'd say so :P18:09
paul___I suspect it'll be project_get_all_user_rows18:09
dhx_m:)18:11
paul___actually it's not that18:12
paul___hmm :)18:12
paul___could be the db_field_exists one18:12
paul___probably quicker to ask user18:12
paul___did they comeo n irC?18:12
dhx_myeah they were here before18:20
dhx_m<brodriguez>18:21
dhx_mwhy not fix them all? :p18:21
nuclear_eclipsedi giallu20:31
nuclear_eclipsehi*20:31
gialluhi20:32
paul___http://secunia.com/advisories/product/5571/?task=advisories20:46

Generated by irclog2html.py