Tuesday, 2012-08-07

*** Joins: dregad (~dregad@155.250.128.35)00:10
GitHub40[mantisbt] dregad pushed 2 new commits to master-1.2.x: https://github.com/mantisbt/mantisbt/compare/218c5129e0b9...9db97b999a6701:12
GitHub40[mantisbt/master-1.2.x] Add event to allow plugins access to the bug change status form - Daryn Warriner01:12
GitHub40[mantisbt/master-1.2.x] Renaming EVENT_BUG_CHANGE_STATUS_FORM to EVENT_UPDATE_BUG_STATUS_FORM - Damien Regad01:12
GitHub10[mantisbt] dregad pushed 1 new commit to master: https://github.com/mantisbt/mantisbt/commit/6bbaa7b9b8282b2bd62d7772792f2763db0c329a01:12
GitHub10[mantisbt/master] Renaming EVENT_BUG_CHANGE_STATUS_FORM to EVENT_UPDATE_BUG_STATUS_FORM - Damien Regad01:12
*** Joins: kirillka (~Miranda@195.242.142.17)02:19
*** Joins: Paul_46 (~IceChat09@cpc1-enfi15-2-0-cust580.hari.cable.virginmedia.com)02:57
GitHub49[mantisbt] dregad pushed 2 new commits to master-1.2.x: https://github.com/mantisbt/mantisbt/compare/9db97b999a67...eb026965bf6006:04
GitHub49[mantisbt/master-1.2.x] Cosmetic changes and comments in admin/check.php - Damien Regad06:04
GitHub49[mantisbt/master-1.2.x] Fix #14552: Update admin checks to make sure ADOdb extension is not used - Damien Regad06:04
*** Quits: kirillka (~Miranda@195.242.142.17) (Quit: kirillka)07:03
*** Joins: renaud (5043b076@gateway/web/freenode/ip.80.67.176.118)07:47
dregadhi Paul_4608:20
dregadwas trying to replace a call to db_query() by db_query_bound() in file_add() function08:21
Paul_46heh08:21
Paul_46don't08:21
Paul_46the reason that file_add and the other place use db_query was deliberate08:21
dregadbecause of line ending encoding for text files08:22
Paul_46and kinda comes down to how adodb handles binary files08:22
Paul_46?08:22
dregadwell while testing, i realized that uploaded text files with new functions are not dealt with properly08:22
dregadi.e. with db_query_bound, it's a single line with \n chars08:22
dregadwherease with db_query it's interpreted with line feeds as expected08:23
Paul_46we need to get off this db layer08:23
Paul_46it's stupid :P08:24
dregadstuck with it for now :(08:24
Paul_46or well, it's stupid fixing stuff atm08:24
Paul_46what concern's me is whether it's possible to do a release of any branch08:24
Paul_46without breaking something else :)08:24
dregadwell using db_query is preventing oracle users from uploading files due to limitation of literal SQL to 2000 chars08:25
Paul_46really08:25
dregadyep08:25
Paul_46we should be saying that mysql is only platform that really works08:25
dregadORA-0170408:25
Paul_46as atm, our 'fix' for the fact that pgsql/oracle are broken in 1.2 is to replace adodb08:26
Paul_46but we are also trying to 'fix' adodb08:26
Paul_46so the question is08:26
Paul_46to ensure future proofing whether we support upgrades from 1.2 to 'next' on oracle etc [which we know are completely broken]08:26
Paul_46i'd personally be inclined not to allow automatic updates from mssql/pgsql/oracle etc from 1.2 to 2.008:27
Paul_46and ahve users contact us08:27
Paul_46so we can ensure with them that there database schema matches what we expect it to be in oracle08:27
Paul_46i.e. i'm 'concerned' that we may do a release that fixes the non-mysql db's that we've broken08:28
Paul_46users might see that in a set of release notes and start using them08:28
Paul_46then we might do an update that changes db engine, pick the data types that we want to use for engines, and then find we've got bugs later on due to users having done their own thing08:29
Paul_46a case in point, I think I currently run mantis at work with ODBC08:29
Paul_46and MSSQL08:29
Paul_46#mantisbt-help is a case in point atm of what i'm saying :)08:30
dregadre: "and ahve users contact us" - like we have the resources to cope with this kind of support ::rolls eyes::08:32
dregadas broken as adodb may be, we're stuck with it for a while08:32
Paul_46given the fact that it's broken08:32
Paul_46pgsql/mssql etc dont work atm08:33
dregadso i've been pushing all our fixes upstream08:33
dregad(the ones I could find anyway)08:33
Paul_46so I dont think we are gonna have lots of people using it08:33
dregadmost of them have been included08:33
dregadhence my pushing to upgrade from 5.10 to latest08:33
dregadwhich should fix out of the box a lot of pgsql / mssql / oracle issues08:34
dregadand let 1.2.x work +/- OK as we bundle it08:34
dregadnow if I can't use bind vars to upload files, that's kind of a show stopper08:34
Paul_46tbh, i'd rather you spent some time seeing if it's feasible to make a oracle engine for the db layer we had in next08:35
Paul_46atm, i'd probably propose dropping oracle/db2 support for mantis and just keeping mssql/pgsql/mysql and maybe adding a 'development' sqlite layer for non-production use08:36
Paul_46as I've never managed to get oracle/db2 setup for development08:36
dregadno experience with db2, but oracle is almost good to go now08:36
Paul_46and especailly with db2, the core dev's dont have access to the db engines08:36
dregadhttps://github.com/dregad/mantisbt/tree/oracle08:37
dregadthere are a few ppl using that08:37
dregadso it'd be nice to pull it in at some point08:38
dregadso, care to explain why uploading files works with db_query and not with db_query_bound ?08:39
Paul_46because db_Query has db_prepare_binary_file to encode the file08:40
Paul_46and in mssql we did something special iirc08:40
Paul_46$content = unpack( "H*hex", $p_string );08:41
Paul_46return '0x' . $content['hex'];08:41
Paul_46is what we do for mssql for instance08:41
Paul_46however, there's no reason that the db insert stuff should change the line feeds08:41
dregadsee http://www.mantisbt.org/bugs/view.php?id=14563 the screenshot illustrates the problem08:51
dregadbtw this also screws up png files08:54
dregad(that was on mysql)08:57
dregadwell if you have any ideas or thoughts, it would be appreciated09:16
dregadgoing home now, may login again later - or tomorrow09:16
*** Quits: dregad (~dregad@155.250.128.35) (Quit: Ex-Chat)09:18
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 246 seconds)09:35
*** Quits: renaud (5043b076@gateway/web/freenode/ip.80.67.176.118) (Ping timeout: 245 seconds)12:20
*** Quits: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)17:00
*** Joins: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de)17:00
*** Quits: Paul_46 (~IceChat09@cpc1-enfi15-2-0-cust580.hari.cable.virginmedia.com) (Quit: If at first you don't succeed, skydiving is not for you)17:20
*** Joins: dregad (~dregad@155.250.128.35)23:52

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