Friday, 2010-06-18

../irclogs/#mantishelp.2010-06-18.log
--- scribe started ---00:00
DraggorSo three's a lot of access to $_SERVER['SCRIPT_NAME'] and that really doesn't quite work if you're doing any mod_rewrite rules in apache00:06
Draggorthere's*00:07
DraggorI think calls should be made through a sanitizing function that inspects the script_name var compared to what the $g_path variable is00:07
Cybertinushello09:24
CybertinusI'm looking for a bugtracker to use at the company where I work09:24
CybertinusMantis is one of the Bugtrackers I look into09:24
Cybertinusnow I try to install it on my Linux server09:24
Cybertinuswhen I load http://<server-ip>/mantis/admin/install.php I see a white screen09:25
Cybertinusno error on the screen, no error in de Apache log09:25
Cybertinusand I don't log the PHP error's, I put them on the screen09:25
Cybertinusanybody an idea what could be wrong?09:25
CupertinoHi peeps13:32
CupertinoIf i want to update from 1.2.0 to 1.2.1 - How do i proceed?13:32
CupertinoI dont see the tutor on the website :/13:33
CupertinoI just upload and merge it?13:33
nuclear_eclipseCupertino: see doc/INSTALL in the 1.2.1 release package13:41
nuclear_eclipseCybertinus: what version are you installing? and what version of PHP do you have?13:43
dhx_mhi13:49
Cupertinotnx nuclear_eclipse13:53
dhx_m Draggor $_SERVER['SCRIPT_NAME'] returns the filename without any path13:57
DraggorI guess I'm missing where it's ignoring the $g_path14:04
DraggorWhen I log in and go to manage users14:04
Draggorthen I select a user and press the delete button14:04
Draggorthe confirmation page generates a form with an incorrect action link14:05
Cupertinohow big is the fail percentage?14:12
nuclear_eclipseCupertino: from 1.2.0 to 1.2.1, there shouldn't be any failures that I know of14:13
Cupertinook tnx14:17
obergix[work]hi there14:26
obergix[work]we're trying to do some tests with phpunit, that include mantis code, using the phpunit command14:26
obergix[work]our problem is all global variables are no longer globals when inside phpunit execution, as not declared explicitely as globals in mantis core.php14:29
obergix[work]has anyone already had such problems14:29
obergix[work]?14:29
nuclear_eclipseobergix[work]: I know that rombert has done some work towards adding a testing framework, but I think it was mostly for the SOAP API14:29
obergix[work]actually, we're trying to Zend_Test the Zend Rest controller we add for OSLC-CM, which relies on phpunit14:30
obergix[work]phpunit seems to save the globals and restore them between tests14:30
nuclear_eclipseMantis was designed and created long before unit testing or other modern techniques was standard practice, so it's unfortunately not an easy task at all14:31
obergix[work]I'm wondering if there's a reason why each global is not explicitely declared as such when initially set14:31
nuclear_eclipsethey are14:31
obergix[work]in other words, would it break if one added global declarations14:32
nuclear_eclipsealmost all of the globals are declared in config_defaults_inc.php14:32
obergix[work]nuclear_eclipse: they are, because they happen to live at top level, or because explicitely declared with the global keyword ?14:32
nuclear_eclipsea few of the APIs declare their own globals for things like caching data though14:33
nuclear_eclipsebecause they're at the top level, and phpdoc comments are explicit about them being global14:33
obergix[work]hmmm... ok, so would it break if we added explicit declarations to change from implicit to explicit ?14:34
nuclear_eclipseI don't think it would, but I can't be 100% sure; PHP has odd habits of doing what you least expect it to14:35
obergix[work];-)14:35
obergix[work]and of course that may not be easy as there are tons of them14:36
nuclear_eclipsevery true14:36
obergix[work]anyway, we have other problems with the db connection that gets lost apparently when "inside" phpunit :-/14:36
nuclear_eclipselike I said, Mantis was born before modern software practices were even imagined :P14:36
obergix[work]hmm... we'll probably find a way ;)14:38
obergix[work]hack hack14:38
obergix[work]anyone to explain me what the # @@ debug @@  comments are used for ?15:30
obergix[work]any link with xdebug ?15:30
obergix[work]anyone ?15:37
obergix[work]too bad... bye15:38
minimoomo18:08
nuclear_eclipsehi paul18:12
minimooyou do much java stuff? ;p18:14
Draggorjava? eww (and I do it professionally!)18:18
nuclear_eclipsemicahg: not really18:30
nuclear_eclipsemost I do is dabble with Android stuff18:30
micahgnuclear_eclipse: tab complete failure :)18:31
nuclear_eclipselol, sorry18:37
nuclear_eclipseI'm used to paul using `paulr` where I can just hit hab and go :P18:37
nuclear_eclipsetab even18:37
minimooheh18:48
minimooit's not finding a .class file when compiling18:48
minimooor whatever term is18:48
nuclear_eclipsethere's a CLASS_PATH environment variable you can use to tell javac where to search, iirc18:48
minimoowhat does jar xf do ?18:52
nuclear_eclipseextract a jar file18:54
minimoohmm18:55
minimooso what I think this app does18:56
minimoois it extracs multiple jars18:56
minimoothen compiles them into one big one18:56
minimoothen compiels the app18:56
minimoo-cfm?18:58
nuclear_eclipsecf creates a new archive, not sure what the m flag is19:00
nuclear_eclipseaccording to `man jar`, -m specifies a manifest19:01
minimooso if a .jar file contains a class19:02
minimooif you call javac with that jar file in input or in class path19:03
minimooit'll load it?19:03
nuclear_eclipse /shrug19:04
nuclear_eclipsejar files were always one of those "magic" things that I never really took the time to figure out, same with the way eclipse builds and runs a project versus ant19:05
minimoomm -classpath build/:./:lib/activation.jar:lib/c3p0-0.9.1.2.jar19:11
minimoo: seperates list right?19:11
nuclear_eclipseyes19:20

Generated by irclog2html.py