Thursday, 2010-04-22

dhx_mI'm playing with HTML 5 at the moment seeing what MantisBT could look like with a new HTML5 look00:24
dhx_mthe draft standard seems all over the place at the moment00:24
dhx_mie. what the difference is between <section> and <article>, how to handle <h1-6> tags, etc00:25
micahgdhx_m: IMHO <h1-6> should be replaced with appropriate CSS01:00
dhx_mmicahg: there seems to be multiple opposing views... either replace every <h2-6> tag with <h1> (and next those within sections)01:01
dhx_mmicahg: or keep using <h1-6> with sections (so a nested section would have <h2>)01:01
* micahg needs to read up on HTML501:01
dhx_mIMO they've bloated it up too much01:02
micahgdhx_m: I thought they gutted a lot of old stuff from HTML<401:02
*** Joins: kirillka (~Miranda@global01.vester.ru)01:02
dhx_mthey did deprecate a few things01:02
micahgdhx_m: I thought they gutted the deprecated stuff from HTML401:03
kirillkamo01:03
dhx_msee http://www.w3.org/TR/html5/obsolete.html#obsolete01:04
dhx_mkirillka: hi01:04
kirillkadhx_m: have some minutes?01:05
dhx_mkirillka: yep01:05
kirillkadhx_m: one man install mantis.. notification config through smtp01:06
kirillkamails send only if run php scripts/sendemails.php01:07
dhx_mmicahg: it seems there are indeed two ways of doing it... http://www.w3.org/TR/html5/semantics.html#rank01:07
kirillka$g_email_send_using_cronjob = OFF;01:07
dhx_mI'm not familiar with MantisBT's email settings :(01:08
kirillkadhx_m: ok01:08
*** Quits: davidinc (~d5374b13@gateway/web/freenode/x-sbuaegmxpjmwdhce) (Ping timeout: 248 seconds)01:31
*** Quits: wolog (~wolog@AOrleans-152-1-42-42.w90-21.abo.wanadoo.fr) (Remote host closed the connection)01:33
*** Joins: rafalkoszyk (~43af039b@gateway/web/freenode/x-bqdrcmstxdobcpbv)01:48
rafalkoszykare there any instructions on how to submit bug fixes?01:48
dhx_mrafalkoszyk: for MantisBT itself?01:52
rafalkoszykyes01:57
rafalkoszyknever submitted bug fixes to an open source project, don't want to send it to the wrong place.01:58
dhx_mgreat :)01:58
*** Quits: kirillka (~Miranda@global01.vester.ru) (Read error: Connection reset by peer)01:59
dhx_mhave you created the patch using git?01:59
*** Joins: kirillka (~Miranda@global01.vester.ru)01:59
rafalkoszykreading up on git now, need to install it for myself to use, want to move away from trac02:00
rafalkoszykso create the diff, and attach it to the bug ?02:00
rafalkoszykor do I need to submit it to the repo ?02:01
dhx_moutput a patch from git format-patch and attach it to a bug02:01
dhx_mhopefully we'll see it there... if not, feel free to bring it up here or on the mailing list :)02:02
dhx_mthere are some instructions on setting up git in the developer manual02:02
rafalkoszykmantis devel manual ?02:02
dhx_mhttp://www.mantisforge.org/dev/manual/master/en/developers.html02:03
rafalkoszykSweet.02:04
rafalkoszykI'm looking at bug 11605, and looking at the code.02:13
rafalkoszykIs there a reason why we are using the actual values of the category (name) instead of the id's ?02:13
rafalkoszyk $t_bug_table.category_id in ( SELECT id FROM $t_category_table WHERE name in (" . implode( ', ', $t_where_tmp ) . ") ) )" );02:14
rafalkoszykline 1324 on core/filter_api.php02:16
dhx_mhmmm02:19
dhx_mwe only recently converted the core of MantisBT to use category IDs instead of names02:20
dhx_mso perhaps it is a left-over from the old days?02:20
rafalkoszykok02:20
rafalkoszykyes, it looks like that one is not converted to id's, all the way to the filters.02:25
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:28
*** Joins: moto-moi (~hylke@cara.xs4all.nl)02:32
*** Quits: siebrand (~beis@sm.xs4all.nl) ()02:34
dhx_mhmm sounds like a big change :)02:35
*** Joins: giallu (~giallu@fedora/giallu)02:43
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 264 seconds)02:46
rafalkoszykyeh, i need to get well versed in git before I do this, will need to setup a server for it tomorrow (today )02:46
dhx_myou don't need to setup a git server unless you plan on hosting your own repositories02:49
rafalkoszykthat is actually the plan02:53
*** Joins: wolog (~wolog@195.6.104.193)02:55
*** Quits: mellen (~thansen@x1-6-00-22-02-00-0c-40.k253.webspeed.dk) (*.net *.split)03:09
dhx_mah ok :)03:09
*** Joins: mellen (~thansen@x1-6-00-22-02-00-0c-40.k253.webspeed.dk)03:13
*** Joins: micahg (~micah@ubuntu/member/micahg)03:14
*** Joins: davidinc (~d5374b13@gateway/web/freenode/x-tklfhmaqqtvjirio)04:01
CIA-29Mantisbt: hickseydr * rd9db796f8973 /core/http_api.php: Issue #11824: Implement X-Frame-Options clickjacking protection04:05
CIA-29Mantisbt: hickseydr master-1.2.x * r3cd065de34b9 /core/http_api.php: Issue #11824: Implement X-Frame-Options clickjacking protection04:05
*** Joins: Laurent_ (~5640b61a@gateway/web/freenode/x-sqvfqznbkpltplgi)04:23
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 268 seconds)04:28
CIA-29Mantisbt: hickseydr * r517cd271cc72 /core/http_api.php: Issue #11825: Support X-Content-Security-Policy (CSP)04:33
CIA-29Mantisbt: hickseydr master-1.2.x * rd2e05d3ee895 /core/http_api.php: Issue #11825: Support X-Content-Security-Policy (CSP)04:33
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)04:36
* dhx_m runs away and let's controversy unfold :p04:42
Laurent_Hello, do you know if I can find a public mentis application for me to debug a SAAS application ?04:48
*** Quits: davidinc (~d5374b13@gateway/web/freenode/x-tklfhmaqqtvjirio) (Ping timeout: 248 seconds)05:01
*** Quits: Laurent_ (~5640b61a@gateway/web/freenode/x-sqvfqznbkpltplgi) (Quit: Page closed)05:22
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Ping timeout: 276 seconds)05:48
*** Quits: Ragnor (~Ragnor@188.109.88.176) (Disconnected by services)06:02
*** Joins: Ragnor (~Ragnor@188.109.88.176)06:02
*** Joins: combr (~combr@80.85.180.12)06:06
combrhi all06:06
*** Joins: rolfkleef (~rolf@82-204-82-162.fttx.bbeyond.nl)06:07
combris anybody here? ;)06:08
combri have a brain mess with bugs marked as closed two years ago like #8577. in default installation 1.2.0. but why? ;)06:09
kirillkacombr: I ask your question to developer, which can help in phpmailer06:13
*** Joins: fanno (~Morten@90.184.93.233)06:22
combrkirillka: if you are here, please see to forum/russian, i create new topic with description there06:36
kirillkacombr: yes, I read it06:36
combrkirillka: phpmailer 5.1(last release), utf8 module 0.5 (last release) already included in mantis 1.2.0, and a cannot see a work on it in upcoming 1.2.1.06:38
combrbut is it any downgrade in mantis upstream or my local misconfig, that's the question at first06:39
*** Quits: combr (~combr@80.85.180.12) (Ping timeout: 245 seconds)06:53
*** Joins: combr (~combr@80.85.180.12)07:02
*** Quits: combr (~combr@80.85.180.12) (Read error: Operation timed out)07:22
kirillkanuclear_eclipse: mo07:39
kirillkapaul__: around?07:40
nuclear_eclipsehi07:41
kirillkanuclear_eclipse: question about phpmailer to paul?07:42
nuclear_eclipseeihter paul or giallu, I think they both worked on it at some point07:42
kirillkanuclear_eclipse: thanks07:50
dhx_mnuclear_eclipse: hi07:56
nuclear_eclipsehi dhx_m 08:08
nuclear_eclipseignore my bit about gravatar, I hadn't looked at the bug/commit logs when I sent that08:08
dhx_myep np08:21
dhx_mmy grand idea is to have configuration options that let the user specify other allowable domains08:21
dhx_mas well as an event trigger that lets plugins register external domains too08:22
dhx_mhowever I decided against it for now given that these are experimental features of the browsers08:22
dhx_mdraft RFCs ;)08:22
*** Quits: fanno (~Morten@90.184.93.233) (Quit: Leaving.)09:01
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com)09:18
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Client Quit)09:20
*** Quits: rolfkleef (~rolf@82-204-82-162.fttx.bbeyond.nl) (Ping timeout: 246 seconds)09:37
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com)09:38
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Client Quit)09:39
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com)09:39
*** Joins: rolfkleef (~rolf@82-204-82-162.fttx.bbeyond.nl)09:43
*** Quits: rolfkleef (~rolf@82-204-82-162.fttx.bbeyond.nl) (Remote host closed the connection)09:45
*** Joins: rolfkleef (~rolf@82-204-82-162.fttx.bbeyond.nl)09:52
*** Joins: fanno (~b3g@193.3.95.240)09:53
*** Quits: kirillka (~Miranda@global01.vester.ru) (Quit: kirillka)09:58
*** Joins: micahg (~micah@ubuntu/member/micahg)10:25
*** Joins: Redxross (Redxross@ool-457aee66.dyn.optonline.net)10:33
RedxrossHi guys.  I followed this guide http://howto.inconnect.co.uk/?page_id=40 to install mantis on my centos server.  I went to the http:/xxxx.xxxx.com/mantisbt and the page came up saying php was "good".  Before I installed mantis, I installed mysql server, client and shared rpm packages after uninstalling what came with the distro.  I then as the guide said created the msyql mantisbtadmin and mantisbt users along with mantisbt database.10:38
Redxross  Now back to this page, I selected type of database to mysql, hostname is localhost, username i put in mantisbt (i think thats right), then password i left blank since I never assigned one in that guide and i put mantisbt as the database name.  I left admin user blank and admin password blank and then i clicked on attemp installation.  Now it says good for setting database hostname, database type database username, database name and10:38
Redxross admin password but it says bad for Checking PHP support for database type; possible problem for datbase password and admin username.  Any suggestions on what I need to do next?10:38
Redxrossthank you all for your time10:38
Redxrossand for mantisbt10:38
*** Joins: mantisbt_21598 (~504de0c5@gateway/web/freenode/x-beogunaosbhtfrqh)10:41
*** Quits: mantisbt_21598 (~504de0c5@gateway/web/freenode/x-beogunaosbhtfrqh) (Client Quit)10:41
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)11:01
Redxrossis anyone alive?11:02
darynRedxross: admin user and pass is the admin for mysql11:05
Redxrossi thought in the guide that i followed the admin user was supposed to be mantisbtadmin, the account i created, but i will try putting it in though the bad php not supported error doesn't seem to be coming from account access11:07
Redxrossbut rather soemthing to do with configuring php properly11:07
Redxrosswhich my guide didn't cover and there aren't any explicit instructions that i can find =(11:07
daryndid you install 1.1.8 or 1.2?11:08
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 264 seconds)11:11
Redxrossof mantis? ummm... 1.211:11
darynok, the instructions say 1.1.8 and i haven't followed that instruction before so just checking11:12
Redxrossoops11:12
darynwhat version of php is running?11:12
Redxrossi just ran /phpinfo.php and it says 5.1611:13
Redxrosserr 5.1.611:13
darynhm... that should work.  the docs say 5.2 but it should say 5.1.211:13
Redxrossthanks for your help by the way11:13
Redxrosshmm11:13
darynnp.11:14
Redxrossstill i am stuck =(11:15
daryntbh it's probably easier just to unpack the mantis package in a web dir and point to the admin dir from a web browser...if you have mysql root access anyway11:15
Redxrossbut whats with the bad php error11:16
Redxrosssomeone said, "It sounds like you need to install the PHPx-mySQL library for your particular version of PHP.11:16
RedxrossThe PHP install alone doesn't recognize mySQL commands unless the appropriate library is installed.  You can, however, get into the mySQL command line and create databases, change the, query, etc., however can't from PHP unless you have the library installed.11:16
RedxrossMark Lassoff11:16
RedxrossWeb Design, Coding and Training11:16
Redxrossmarklassoff@gmail.com11:16
Redxrosson this forum http://www.linuxsolved.com/linux-forums/linux-servers-support/fatal-error-call-to-undefined-function-mysqlconnect-t884.0.html11:16
Redxrosshow do i make sure i have that package11:16
daryntrue you do need the php mysql package11:17
daryni think it's just php-mysql on centos11:17
Redxrossdo u know the yum command i would use to install that package?11:18
daryndo you have yum installed ?11:18
Redxrossya11:18
darynyum install php-mysql11:18
Redxrossbrb11:18
Redxrosswould u mind if i pasted u the output when i run that command?11:20
Redxross[nirav.thakkar@p2176603 html]$ sudo yum install php-mysql11:20
RedxrossLoaded plugins: fastestmirror11:20
RedxrossLoading mirror speeds from cached hostfile11:20
Redxross * addons: mirror.sanctuaryhost.com11:20
Redxross * base: pubmirrors.reflected.net11:20
Redxross * extras: mirror.fdcservers.net11:20
Redxross * updates: mirror.vcu.edu11:20
RedxrossSetting up Install Process11:20
RedxrossResolving Dependencies11:20
Redxross--> Running transaction check11:20
Redxross---> Package php-mysql.x86_64 0:5.1.6-24.el5_4.5 set to be updated11:20
Redxross--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: php-mysql11:20
Redxross--> Processing Dependency: libmysqlclient.so.15()(64bit) for package: php-mysql11:20
Redxross--> Running transaction check11:20
Redxross---> Package mysql.x86_64 0:5.0.77-4.el5_4.2 set to be updated11:20
Redxross--> Processing Conflict: mysql conflicts MySQL11:20
Redxross--> Finished Dependency Resolution11:21
Redxrossmysql-5.0.77-4.el5_4.2.x86_64 from updates has depsolving problems11:21
Redxross  --> mysql conflicts with MySQL-server-community11:21
RedxrossError: mysql conflicts with MySQL-server-community11:21
Redxross You could try using --skip-broken to work around the problem11:21
Redxross You could try running: package-cleanup --problems11:21
Redxross                        package-cleanup --dupes11:21
Redxross                        rpm -Va --nofiles --nodigest11:21
RedxrossThe program package-cleanup is found in the yum-utils package.11:21
Redxross[nirav.thakkar@p2176603 html]$ sudo yum list installed | grep php11:21
Redxrossphp.x86_64                                5.1.6-24.el5_4.5             installed11:21
Redxrossphp-cli.x86_64                            5.1.6-24.el5_4.5             installed11:21
Redxrossphp-common.x86_64                         5.1.6-24.el5_4.5             installed11:21
Redxrossphp-ldap.x86_64                           5.1.6-24.el5_4.5             installed11:21
Redxrossphp-pdo.x86_64                            5.1.6-24.el5_4.5             installed11:21
Redxrossi installed that rpm mysql-server-community i think11:21
darynyeah... yum remove mysql-server-community (if there's nothing else using it anyway)11:22
darynthen yum install php-mysql and it should pull correct dependencies for mysql server11:22
Redxrosshm but then i can't manually install the rpm's right?11:23
Redxrossi would have to use yum, correct?11:23
Redxrosscause my boss wants me to use rpms11:23
Redxrossin which case how do i solve these dependencies11:23
darynyum does use rpms11:23
darynyum installs the rpms provided by centos11:23
Redxrossbut it uses its own right?11:23
Redxrossya11:24
darynand handles the dpeendencies11:24
Redxrossso if i have a vendor specific mysql rpm then i have to resovle the dependeinces myself?11:24
darynyeah if you install it using rpm  command11:24
Redxrosshow would i do that?11:24
Redxrossis it impossible to do?11:25
darynif the vendor has a repository you could add that to the yum repos and then yum would handle it.11:25
darynno, just a pita and not something i'm prepared to support11:25
Redxrossi used the mysql download's page to get those rpm's11:25
Redxrosslol oh ok11:25
Redxrosswhat should i look up on google, perhaps to point me in the direction. if u don't mind11:25
darynyeah...just use the yum provided rpm's. if you need newer ones check out rpmforge11:26
darynprovides updated packages that centos/rhel don't11:26
darynwhy does your boss want you to use rpm?11:27
Redxrossactually i just talked to him and he said its ok to use yum11:29
Redxrossso i'll uninstall the rpm11:29
Redxrossand use yum to install mysql11:30
Redxrossright?11:30
darynyes11:31
darynthat will be much less hassle for you11:31
Redxrosshopefully =)11:32
*** Joins: giallu (~giallu@fedora/giallu)12:12
*** Quits: micahg (~micah@ubuntu/member/micahg) (Read error: Operation timed out)12:19
*** Joins: siebrand (~beis@sm.xs4all.nl)12:57
Redxrosshey daryn u there?12:58
darynyep12:58
RedxrossI used yum and now that error has gone but i am getting Database connection failed. Error received from database was #1045: Access denied for user 'mantisbt'@'localhost' (using password: NO).12:59
*** Quits: wolog (~wolog@195.6.104.193) (Remote host closed the connection)12:59
RedxrossI start mysql and swithced to user datbase12:59
Redxrossand then looked for mantisbt12:59
Redxrossits there12:59
Redxrossbut when i try to do mysql -u mantisbt it says ERROR 1045 (28000): Access denied for user 'mantisbt'@'localhost' (using password: NO)12:59
Redxrossaccording to the guide i never setup a password12:59
Redxrossany ideas13:00
Redxross?13:00
darynpermissions in mysql can be a little strange.  without seeing your setup it's kinda difficult to tell.  if you have root access i'd just set a password for the mantis user13:01
daryneasy admin... yum install phpmyadmin  then http://localhost/phpmyadmin/13:02
Redxrossi can't use xwindows on this machine =(13:03
Redxrossoh ok13:03
Redxrossnvm i'll try it13:03
Redxrossyum install phpmyadmin13:05
RedxrossLoaded plugins: fastestmirror13:05
RedxrossLoading mirror speeds from cached hostfile13:05
Redxross * addons: mirror.5ninesolutions.com13:05
Redxross * base: pubmirrors.reflected.net13:05
Redxross * extras: centos-distro.cavecreek.net13:05
Redxross * updates: mirror.vcu.edu13:05
Redxrossaddons                                                                                      |  951 B     00:0013:05
Redxrossbase                                                                                        | 2.1 kB     00:0013:05
Redxrossextras                                                                                      | 2.1 kB     00:0013:05
Redxrossupdates                                                                                     | 1.9 kB     00:0013:05
RedxrossSetting up Install Process13:05
RedxrossNo package phpmyadmin available.13:05
RedxrossNothing to do13:05
darynbah...probably only available in rpmforge packages13:05
darynso..mysql -u root -p; use mysql; SELECT * FROM user WHERE User='mantisbt'13:07
CIA-29Mantisbt: jreese * r9fe8a9b84c59 /bug_view_inc.php: Fix #11817: Modified MENU_ISSUE for consistency13:08
CIA-29Mantisbt: jreese * r71166a79bece /core/html_api.php: Fix #11829: Missing event EVENT_MENU_MANAGE_CONFIG13:08
CIA-29Mantisbt: jreese * r16b515109f48 /core/html_api.php: Use print_bracket_link_prepared13:08
CIA-29Mantisbt: jreese master-1.2.x * r4c7c9cf82918 /core/html_api.php: Use print_bracket_link_prepared13:08
CIA-29Mantisbt: jreese master-1.2.x * rad39d08302d1 /core/html_api.php: Fix #11829: Missing event EVENT_MENU_MANAGE_CONFIG13:08
CIA-29Mantisbt: jreese master-1.2.x * r9dfb40e14437 /bug_view_inc.php: Fix #11817: Modified MENU_ISSUE for consistency13:09
Redxrossman i can't read the output.. its all askew.. give me a few to parse it by hand13:10
Redxrosshm, how can i show u this text file.. brb pastebin hopefully cause the user exists and the password col has some alpha numeric and all priv are no13:11
Redxrossis there anything specfic i am looking for?13:12
darynyeah...you got it.  it has a password13:12
darynso, you'll have to reset it if you don't remember what it is13:13
Redxrosshow is that possible.. i never set one up for it13:13
Redxrosshmm13:13
darynnot sure...but the field has a value so it got something13:13
Redxrossgotta look up how to reste it13:13
darynUPDATE user SET User= PASSWORD('newpassword');13:14
Redxrossty13:14
darynit will encrypt it13:14
daryndang13:14
darynhold on13:14
Redxrosssure13:14
daryntry this...13:14
darynUPDATE user SET Password=PASSWORD('new_password') WHERE User='mantisbt'13:15
darynthat would've been bad...13:15
Redxrosslol13:15
Redxrossok ty13:15
*** Joins: Jwv (~jwv@ac-217-129-178-207.netvisao.pt)13:16
Redxrosswell i have access now but a new error lol: Database query failed. Error received from database was #1146: Table 'mantisbt.mantis_user_table' doesn't exist for the query: SELECT *13:19
RedxrossFROM mantis_user_table13:19
RedxrossWHERE username=?.13:19
darynyeah, so it didn't run the schema install probably because the user didn't have access13:19
Redxrosshow do i re run it13:19
Redxrossi figured it out13:21
darynk13:22
*** Joins: wolog (~wolog@AOrleans-152-1-42-42.w90-21.abo.wanadoo.fr)13:22
*** Joins: AzaToth (~azatoth@wikipedia/AzaToth)13:28
Redxrosswoot the page is up!13:28
Redxrossdaryn, u rock!13:28
daryn:), congrats13:29
Redxrossall thanks to you13:29
Redxrosshey where do i setup accounts for mantis?13:29
darynManage, Manage Users13:29
darynare you logged in as admin?13:30
Redxrossi am trying to13:30
Redxrossuse the mantisbt account13:30
Redxrossbut it won't let me13:30
darynno, that's just for mysql13:30
Redxrossoh13:30
Redxrossso which account do i use here?13:30
daryndefault user = administrator, pass=root13:31
Redxrossor where do i set the admin account up?13:31
darynbe sure and change that once you login13:31
Redxrosswoot13:31
Redxrossya changing it now13:31
*** Joins: dhx_z (~anonymous@c122-107-157-71.eburwd5.vic.optusnet.com.au)13:33
*** Quits: dhx_m (~anonymous@c122-107-157-71.eburwd5.vic.optusnet.com.au) (Read error: Connection reset by peer)13:33
*** dhx_z is now known as dhx_m13:33
*** Quits: rolfkleef (~rolf@82-204-82-162.fttx.bbeyond.nl) (Ping timeout: 248 seconds)13:35
nuclear_eclipsedhx_m: 13:40
nuclear_eclipsegot a moment?13:41
*** Quits: devdude34 (~lab@209-234-187-194.static.twtelecom.net) (Quit: Leaving.)13:50
*** Joins: micahg (~micah@ubuntu/member/micahg)13:50
*** Quits: Roa (~roa@unixmexico/Roa) (*.net *.split)14:03
*** Joins: Roa (~roa@unixmexico/Roa)14:08
*** Quits: Redxross (Redxross@ool-457aee66.dyn.optonline.net) (Quit: Leaving)14:21
CIA-29Mantisbt: jreese * r3485b7022750 /core/version_api.php: Fix #11641: Update history table on version rename14:21
CIA-29Mantisbt: jreese master-1.2.x * rcc1ad7046545 /core/version_api.php: Fix #11641: Update history table on version rename14:21
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)14:57
*** Quits: Jwv (~jwv@ac-217-129-178-207.netvisao.pt) (Quit: Leaving)15:05
CIA-29Mantisbt: jreese master-1.2.x * r3efd95f66259 / (config_defaults_inc.php core/bugnote_api.php): Make feedback reassignment optional15:19
CIA-29Mantisbt: jreese * ra87b32c7de56 / (config_defaults_inc.php core/bugnote_api.php): Make feedback reassignment optional15:20
*** Quits: fanno (~b3g@193.3.95.240) (Remote host closed the connection)15:35
*** Quits: rafalkoszyk (~43af039b@gateway/web/freenode/x-bqdrcmstxdobcpbv) (Ping timeout: 248 seconds)15:51
*** Joins: fanno (~Morten@90.184.93.233)16:29
*** Joins: siebrand_alt (~beis@sm.xs4all.nl)17:12
*** Quits: siebrand (~beis@sm.xs4all.nl) (Ping timeout: 240 seconds)17:13
*** siebrand_alt is now known as siebrand17:13
paul__killefiz: lo17:36
paul__dhx_m: moo?17:37
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Ping timeout: 245 seconds)18:09
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Remote host closed the connection)18:42
*** Quits: moto-moi (~hylke@cara.xs4all.nl) (Quit: Ex-Chat)18:51
*** Quits: giallu (~giallu@fedora/giallu) (Read error: Operation timed out)18:52
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)19:04
*** Quits: micahg (~micah@ubuntu/member/micahg) (Read error: Operation timed out)19:04
*** Quits: AzaToth (~azatoth@wikipedia/AzaToth) (Read error: Connection reset by peer)19:49
*** Quits: scribe9343423 (~scribe934@mantisforge.org) (Remote host closed the connection)20:00
*** Joins: scribe9343423 (~scribe934@mantisforge.org)20:00
dhx_mhi20:16
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Ping timeout: 276 seconds)20:22
CIA-29Mantisbt: hickseydr master-1.2.x * r8491bf43d53d /bug_assign_reporter.php: Remove unused bug_assign_reporter.php21:03
CIA-29Mantisbt: hickseydr * r9ec68ac5a436 /bug_assign_reporter.php: Remove unused bug_assign_reporter.php21:03
nuclear_eclipsedhx have you looked at the patch i posted to dev list?21:19
dhx_mnuclear_eclipse: let me check again :)21:22
nuclear_eclipseit's about the bug_assign thing21:22
dhx_moh yeah I thought that was fine :)21:23
dhx_mI assume it works? :D21:23
nuclear_eclipseafaik21:24
dhx_mI vote to commit :)21:25
nuclear_eclipsek21:25
dhx_mactually there is another approach21:25
dhx_mbug_change_status_page.php posts to bug_update.php21:25
dhx_mhowever we probably need to keep bug_assign.php for backwards compatibility in 1.2.x21:25
nuclear_eclipsehmm21:27
nuclear_eclipsesounds good, but I'm hesitant to do that in 1.221:28
dhx_myep21:28
dhx_moh actually we can't do that... bug_assign() is the direct landing page AFAIK21:29
dhx_mso there is no intermediate page in the process21:29
nuclear_eclipsewell, we could have the form on bug_view_inc just point at bug_update.php directly21:29
nuclear_eclipseit's a heavier change than what I did, but should technically work the same21:30
dhx_myep21:30
dhx_mone question I have is about email notifications...21:30
dhx_m"Email on change of handler" gets called from bug_update.php?21:31
nuclear_eclipsefrom my testing, it leeks like bug->update generates the same notification as bug_assign when the only change is the handler_id, so it should act the same21:31
dhx_mok21:31
dhx_mnot that anyone would notice with the email notification settings being as broken as they are21:32
nuclear_eclipsemy only concern with pointing assignment directly to bug_update.php is that bug_update doesn't do the same set of access checks and such21:33
dhx_myep I'd probably just leave it as-is (with your patch) for now21:34
dhx_mpending some future overhaul :)21:34
nuclear_eclipseso I think I'm gonna go ahead and push my patch to both branches and deal with cleanup some other day :P 21:34
nuclear_eclipseexactly :P21:35
dhx_mI have one more patch I want to get into 1.2.1 (bug #11166)21:35
dhx_mI'm not using the patch from that bug because it uses PHP's eval!!21:35
dhx_messentially all we need to do is preg_replace the new lines to remove them21:35
dhx_moh, and use trim() everywhere :)21:36
dhx_mand we already use trim21:36
dhx_mI'm not 100% sure how to write a pattern to match new lines21:36
CIA-29Mantisbt: jreese * rd793dbd6a4e3 /bug_assign.php: Fix #11830: Refactor bug_assign to bug->update21:37
CIA-29Mantisbt: jreese master-1.2.x * r04ab0f4f8155 /bug_assign.php: Fix #11830: Refactor bug_assign to bug->update21:37
* nuclear_eclipse looks into that bug21:37
* nuclear_eclipse wishes mantisbot weren't dead21:37
dhx_mah, \r and \n are tokens you can use when matching21:38
nuclear_eclipseuse \s instead21:38
dhx_moops no... it's just the standard "\n" approach21:38
*** Joins: micahg (~micah@ubuntu/member/micahg)21:39
dhx_mwe don't want to match all whitespace characters though21:40
nuclear_eclipsewhy not?21:40
dhx_mas you may have an array with strings that contain spaces21:40
dhx_mbesides, we use trim later to remove excess space :)21:40
nuclear_eclipsewell, my point is that you shouldn't be using preg_replace to strip all newlines from the input...21:41
dhx_mhow else could it be done?21:41
nuclear_eclipsewhat if the user wants a newline inside of that quoted string?21:41
dhx_mtough luck? :p21:41
nuclear_eclipsewell, you really need to just use a regex to parse the whole thing at once, rather than trying to strip it all out to a single line21:41
dhx_mthat'd be complex :)21:42
nuclear_eclipsewell...21:42
nuclear_eclipseit is labelled as a "complex" type ;)21:42
dhx_mlol21:42
nuclear_eclipsetbh, I don't like any of the solutions in that issue21:42
dhx_mok I'll try using preg_match on the whole thing21:43
dhx_mactually cancel that, we use constant_replace() to replace constants21:44
dhx_mso we'd need to loop through the matches and apply constant_replace() to them anyway21:44
nuclear_eclipsetbh, the real problem is that parsing a complex type like that is technically impossible to do with regexes21:45
nuclear_eclipseor extremely verbose otherwise21:45
nuclear_eclipseeven the simplified format requires a context free grammar to fully parse it21:46
nuclear_eclipseand even though Perl's regexes are in a gray area between regex and cfg/cfl, afaik they still aren't powerful enough21:47
nuclear_eclipseexample:21:47
nuclear_eclipseif you want 2D arrays, like "array( foo => array( 1, 2 ), bar => array( 3, 4 ) )", you can't parse that without implementing a CFG parser21:48
dhx_myep21:48
nuclear_eclipsealthough I'm not sure if there's any spot in mantis that uses 2D arrays..21:49
dhx_mfor instance, $g_main_menu_custom_options is a multidimensional array21:49
nuclear_eclipseah, right21:49
dhx_m$g_custom_group_actions21:50
nuclear_eclipsebut that can't be set in tehe db21:50
dhx_myep not a huge problem21:50
dhx_mI guess we could write a recursive parse function21:50
nuclear_eclipseI think we really need to just bite the bullet and use PHP's serialization21:50
dhx_mafaik we can't?21:50
nuclear_eclipseit's still human readable and writeable21:50
nuclear_eclipsenot pretty, but it works, and would be infinitely easier than writing our own parsing language21:51
dhx_mor we could get the human format into a serializable format...21:51
dhx_m?21:51
nuclear_eclipselikely not21:51
nuclear_eclipsewould still require a CFG parser to do the transform21:51
nuclear_eclipsealthough I guess for the intermediate time, your idea of just stripping newlines is certainly the easiest solution21:54
dhx_mthis is wrong anyway: /array[\s]*\((.*)\)/21:54
dhx_mthe .* is greedy and will include the last bracket :)21:54
nuclear_eclipseyep, but then it will backtrack and still work21:55
dhx_mah21:55
dhx_mI see :)21:55
nuclear_eclipseand tbh, there's no real way to make it work otherwise because they might need a ) somewhere in a string21:55
dhx_myep21:56
dhx_m$t_full_string = trim( preg_replace( '/$/m', '', $f_value ) );21:56
nuclear_eclipsethe only time you reallyneed to worry about greedy/ungreedy is if you are worried about speed, or if you want to match multiple repeating/optional sets21:57
nuclear_eclipsepreg_replace( ... trim( value ) ) is generally more efficient ;)21:58
nuclear_eclipsetrim first, and the parser will have less data to parse :P21:59
dhx_m:)22:00
nuclear_eclipseanyways, you honestly don't need any of that22:01
nuclear_eclipsejust add the s modifier to the primary regex and it will all work fine22:01
nuclear_eclipseie, preg_match('/array[\s]*\((.*)\)/s'...)22:02
nuclear_eclipsehttp://us3.php.net/manual/en/reference.pcre.pattern.modifiers.php22:03
dhx_mah, thanks :)22:06
nuclear_eclipseanyways, adding that modifier as a solution gets my stamp of approval22:06
dhx_mit works :)22:08
dhx_malmost22:08
nuclear_eclipseit's aLIVEeeee22:08
dhx_m  0 => '\'id\'',22:08
dhx_mescaping and inclusion of extra quotes22:08
dhx_mI'll work on it :)22:09
nuclear_eclipse:?22:09
nuclear_eclipsewhen do you ever need that?22:09
nuclear_eclipseand it sounds like it should be '\\\'id\\\''22:09
dhx_marray (22:09
dhx_m  0 => 'id',22:09
dhx_m  1 => 'project_id',22:09
dhx_m  2 => 'reporter_id',22:09
dhx_m  3 => 'handler_id',22:09
dhx_m  4 => 'duplicate_id',22:09
nuclear_eclipseoh22:09
dhx_mwe don't strip the ' characters from what the user supplies22:10
dhx_mor " for that matter22:10
nuclear_eclipseoh, right22:10
nuclear_eclipsethat's intended iirc22:10
dhx_mnope, because we reconstruct the array22:10
nuclear_eclipse /shrug22:10
dhx_mwe also need to somehow work around commas within these strings22:11
nuclear_eclipseI wasn't a fan with this solution when it first happended...22:11
dhx_mthis implementation seriously sucks at the moment :p22:11
nuclear_eclipsedhx_m: yet another reason I want to replace it with something like serialization or JSON, etc22:11
dhx_myep22:11
nuclear_eclipsethe moment you get past the first glance, you keep discovering more and more little details as you fall down the rabbit hole22:12
dhx_myep22:12
nuclear_eclipseif we picked up json/pickle/serialization, all of those issue would be handled by code we don't need to build, maintain, or debug22:12
dhx_mwe already dep on json22:13
nuclear_eclipsethough tbh, I never really understood why using eval was such a deal breaker, since the only people who can put stuff in the database are admins anyways...22:14
dhx_madmins of MantisBT... but maybe those admins aren't allowed to use the server :)22:14
nuclear_eclipsewell, if you get the option to inject stuff directly into the database... what's the difference?22:15
nuclear_eclipse<- cynical22:15
dhx_mthe things in the database aren't being executed as PHP code though22:16
nuclear_eclipseyou shouldn't be passing out admin privileges to people you don't trust...22:16
nuclear_eclipsebut anyways22:16
nuclear_eclipsedhx_m: I assume you'll have this done within the next 10 hours so that I can start working on the 1.2.1 release?22:33
nuclear_eclipseit's bedtime for me now though22:33
dhx_mwill have it done in 522:33
nuclear_eclipseok, cheers22:33
* nuclear_eclipse goes to bed22:33
dhx_mok thanks, cya :)22:34
dhx_mI look forward to the next release22:34
CIA-29Mantisbt: hickseydr * r4dd383f55ffe /adm_config_set.php: Fix #11166: Complex types could not be entered with newline chars22:51
CIA-29Mantisbt: hickseydr master-1.2.x * r7f68bdbae2f9 /adm_config_set.php: Fix #11166: Complex types could not be entered with newline chars22:51
CIA-29Mantisbt: hickseydr master-1.2.x * ra41aeea10e78 /admin/check.php: Fix #11797: Zend Optimizer version check fails for v4+23:38

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