Tuesday, 2011-01-11

*** Joins: kirillka (~Miranda@195.242.142.17)01:10
*** Quits: kirillka (~Miranda@195.242.142.17) (Remote host closed the connection)01:11
*** Joins: kirillka (~Miranda@195.242.142.17)01:11
*** Joins: mantisbt_79111 (54a5abfd@gateway/web/freenode/ip.84.165.171.253)02:21
*** Quits: siebrand (~chatzilla@535392CA.cm-6-4c.dynamic.ziggo.nl) (Remote host closed the connection)02:31
*** Joins: Cupertino (~Cupez@62-177-158-122.dsl.bbeyond.nl)02:38
*** Quits: Cupertino (~Cupez@62-177-158-122.dsl.bbeyond.nl) (Changing host)02:38
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:38
*** Joins: giallu (~giallu@fedora/giallu)02:44
*** Joins: rolfkleef (~rolfkleef@urtica.xs4all.nl)03:54
*** Quits: mantisbt_79111 (54a5abfd@gateway/web/freenode/ip.84.165.171.253) (Quit: Page closed)04:09
*** Joins: Rixie (~Rixie@0x4dd7390e.adsl.cybercity.dk)04:40
*** Joins: YiSh (~joanna@host86-178-115-105.range86-178.btcentralplus.com)05:04
*** Joins: Al_Chapone (~chatzilla@ATuileries-153-1-73-105.w83-202.abo.wanadoo.fr)05:13
*** Quits: rolfkleef (~rolfkleef@urtica.xs4all.nl) (Ping timeout: 250 seconds)06:41
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 255 seconds)06:55
*** Joins: giallu (~giallu@fedora/giallu)06:56
*** Joins: rolfkleef (~rolfkleef@82-204-82-162.fttx.bbeyond.nl)06:58
*** Quits: Al_Chapone (~chatzilla@ATuileries-153-1-73-105.w83-202.abo.wanadoo.fr) (Ping timeout: 240 seconds)07:10
*** Joins: paulr (~a@212.85.5.19)07:35
* paulr pokes dhx107:35
paulrI've got a configuration issue :)07:36
paulrcan I make it such that a global manage is only a reporter in a specific project?07:37
paulr+r07:37
paulri.e. can I assume it'll downgrade their rights :)07:38
paulroh, PS, i'm gonna kill you :)07:39
*** Joins: Al_Chapone (~chatzilla@ATuileries-153-1-73-105.w83-202.abo.wanadoo.fr)07:49
*** Quits: Al_Chapone (~chatzilla@ATuileries-153-1-73-105.w83-202.abo.wanadoo.fr) (Ping timeout: 240 seconds)08:22
*** Joins: Al_Chapone (~chatzilla@ATuileries-153-1-73-105.w83-202.abo.wanadoo.fr)08:26
*** Joins: Al_Chapone_ (~chatzilla@ATuileries-153-1-67-239.w83-202.abo.wanadoo.fr)08:32
*** Quits: Al_Chapone (~chatzilla@ATuileries-153-1-73-105.w83-202.abo.wanadoo.fr) (Ping timeout: 240 seconds)08:35
*** Al_Chapone_ is now known as Al_Chapone08:35
*** Joins: daryn (~daryn@h20.110.88.75.dynamic.ip.windstream.net)09:32
*** Quits: paulr (~a@212.85.5.19) ()09:44
*** Quits: kirillka (~Miranda@195.242.142.17) (Quit: kirillka)10:02
*** Joins: siebrand (~chatzilla@535392CA.cm-6-4c.dynamic.ziggo.nl)10:38
*** Joins: micahg (~micah@ubuntu/member/micahg)10:39
*** Parts: Rixie (~Rixie@0x4dd7390e.adsl.cybercity.dk)11:02
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)11:07
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 255 seconds)12:02
*** Quits: Al_Chapone (~chatzilla@ATuileries-153-1-67-239.w83-202.abo.wanadoo.fr) (Quit: ChatZilla 0.9.86 [Firefox 3.6.13/20101203075014])12:23
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)12:32
*** Joins: moto-moi (~hylke@2001:888:13e4:1010:21f:e2ff:fe0c:ce28)12:35
*** Joins: daryn_ (~daryn@h78.158.16.98.dynamic.ip.windstream.net)13:00
*** Quits: daryn (~daryn@h20.110.88.75.dynamic.ip.windstream.net) (Ping timeout: 260 seconds)13:03
*** Joins: daryn__ (~daryn@h117.64.29.71.dynamic.ip.windstream.net)13:04
*** Quits: daryn_ (~daryn@h78.158.16.98.dynamic.ip.windstream.net) (Ping timeout: 260 seconds)13:07
*** Quits: micahg (~micah@ubuntu/member/micahg) (Quit: Leaving.)13:17
*** Joins: micahg (~micah@ubuntu/member/micahg)13:26
*** Quits: YiSh (~joanna@host86-178-115-105.range86-178.btcentralplus.com) (Ping timeout: 240 seconds)13:51
*** Joins: JonMarkGo (~Jon@ool-4572146f.dyn.optonline.net)14:11
JonMarkGoHi, I am trying to set up GitHub to post to my Mantis install. When I do Import Latest Data it applies the changesets to tickets properly14:11
JonMarkGoBut it doesn't auto-post when I push14:11
JonMarkGoI've tried both the MantisBT hook and the generic Post URL hook14:11
nuclear_eclipseJonMarkGo: I'm currently trying to resolve that problem14:12
nuclear_eclipsethe mantisbt hook isn't sending data correctly, and I believe Github changed the data format used by the generic post-commit hook14:13
JonMarkGoAh14:13
JonMarkGoSo I should just wait for a patch?14:13
nuclear_eclipseunfortunately, I don't have much spare time to work on the fix, so if you happen to know ruby and php, you might be able to help get it working14:14
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 260 seconds)14:14
JonMarkGoI do14:14
* JonMarkGo coughs14:14
JonMarkGoSo you think the data format is just messed up?14:15
nuclear_eclipseI know the data format is messed up in the mantisbt hook, because I'm no good at ruby and couldn't get a proper test bed set up on my machine, so I had submitted something only to find out afterwards that it's not correct14:16
nuclear_eclipseeither way, if you're willing to help out, check out https://github.com/github/github-services14:16
JonMarkGoAh14:16
JonMarkGoI was going to say, Mantis doesn't use Ruby...14:16
JonMarkGoBut the github side does14:16
nuclear_eclipseif you fork that, you can modify the mantis hook, and use a pull request to get them to merge it back to their system14:17
JonMarkGoYeah14:17
nuclear_eclipseand if you need to modify the mantis plugin set at all, that repo is located at http://git.mantisforge.org14:17
JonMarkGoWouldn't it be easier to modify the mantis side to match what github is sending rather than the other way around?14:17
JonMarkGoOr is the github side not sending all necessary data?14:17
nuclear_eclipsethe github side isn't sending correctly formatted data, I don't know if I screwed up the way that it formats it, or what14:18
JonMarkGoOk14:18
nuclear_eclipseI tried winging it based on code from other hooks, but I must have done soemthing wrong14:19
JonMarkGoYeah14:19
JonMarkGoI keep getting connection refused when I try to clone from mantisforge14:20
nuclear_eclipseif you add some logging from mantis' plugin.php or from Source/pages/checkin.php, you should be able to see the data that Github is sending, and should be able to figure it out that way -- ideally I would like github's mantisbt hook to match their generic post-commit hook as much as possible so that the plugin can use the same code to handle both14:20
JonMarkGoYup14:21
nuclear_eclipseyeah, paul never seems to get mantisforge running correctly, let me push to my github repo14:21
nuclear_eclipse14:20 < JonMarkGo> I keep getting connection refused when I try to clone from mantisforge14:22
nuclear_eclipsecrap14:22
nuclear_eclipsehttps://github.com/jreese/source-integration14:23
*** daryn__ is now known as daryn14:23
JonMarkGoSo end goal is to have the mantisbt hook receive the same data as the post-receive URL14:25
JonMarkGoBut for the mantisbt hook to be idiot-proof and append the plugin.php for you14:26
nuclear_eclipsethat's at least the way I would handle it, but if there's a different way that would make it easier/simpler, I'm all ears14:26
JonMarkGoOk14:27
nuclear_eclipseI happier just to have someone willing to help out :)14:27
JonMarkGoNo problem14:27
JonMarkGoYou on twitter?14:27
nuclear_eclipse@nuclear_eclipse14:28
JonMarkGoCM 7 is out?14:28
nuclear_eclipseit's in alpha stage atm14:29
JonMarkGoOoh14:29
JonMarkGoI use CM6.1 on the incredible14:29
nuclear_eclipsebut it's based on stock 2.3.1, runs really well so far on my Nexus S14:29
JonMarkGoCan't wait for a gingerbread update14:29
nuclear_eclipsegingerbread is seriously awesome14:29
JonMarkGoIs it a nightly build or experimental?14:30
nuclear_eclipseit's an alpha build available from rommanager14:30
JonMarkGoAh14:31
JonMarkGoIsn't one for Inc yet14:31
nuclear_eclipseit's one of the benefits of running the unlocked phones from Google, they tend to get first wave support from custom roms14:36
JonMarkGoYeah14:37
JonMarkGojson_commit_changeset is what's processing the github post data, right?14:47
nuclear_eclipseno14:47
JonMarkGoHeh, what is?14:48
nuclear_eclipsethe post data really only triggers the plugin to send json requests to github's API to request updates for the repo14:48
JonMarkGoOh14:48
JonMarkGoBut doesn't the post data have all the info you'd need?14:48
nuclear_eclipseI don't know if it does these days, but a) it didn't when I first created the plugin, and b) if for some reason the system missed a previous update, this way it makes sure it gets the most up-to-date info for the entire repo14:49
JonMarkGoAh14:49
JonMarkGoHeh14:57
JonMarkGoThe mantis service hook is really funky14:57
JonMarkGoIn reality, all it should do is pass the same data that the generic one does14:58
JonMarkGoI found one fun issue that you may know about15:20
nuclear_eclipsewhat's that?15:21
JonMarkGoGithub is cloud hosted15:21
JonMarkGoSo the single IP you provide is wron15:21
JonMarkGowrong15:21
*** Joins: micahg (~micah@ubuntu/member/micahg)15:21
nuclear_eclipseah, yeah, that used to be the only address that they used for post-commits15:22
JonMarkGoYup15:22
JonMarkGoActually, that might be the only issue with the generic post15:22
nuclear_eclipsethese days I whitelist a few ip blocks15:22
JonMarkGoHeh15:23
JonMarkGoOnce I allowed all IPs the generic post works fine15:23
nuclear_eclipseit's probably a bit too open, but for the most part I'm not too worried because it doesn't trust any of the data from the hook, just uses it to trigger an API pull15:23
JonMarkGoYup15:23
JonMarkGoSo how do you think this should be handled since there's no real way to define ALL of github's IPs?15:24
JonMarkGoFor github you could jsut check the referrer15:24
nuclear_eclipsereferrer?15:24
JonMarkGoActually, that wont work15:25
JonMarkGoNot sure how you could verify that its actually from github15:25
JonMarkGoOr why you'd need to if all it does is trigger a pull15:27
nuclear_eclipsewell, you'd technically still want to limit originating addresses to limit random attempts or DOS attacks15:29
JonMarkGoYou could DDoS a server even if the page refuses your "checkin", but I guess it could help in preventing ddos against github15:29
JonMarkGoThough I imagine your server would crash before you dented github15:29
JonMarkGoAlso, I figured out what's wrong with your github service15:30
JonMarkGoYou do Net::HTTP.post_form(URI.parse(full_url), payload)15:30
JonMarkGoYou need something like Net::HTTP.post_form(URI.parse(url), "payload" => payload.to_json)15:30
nuclear_eclipsetrue, I just tend to figure that it's better to whitelist a select set of IPs than to let everyone in15:30
JonMarkGopayload is an object15:30
JonMarkGopayload.to_json is a json object string15:30
JonMarkGoI agree, but clearly thats not possible with github15:30
nuclear_eclipsewell, three IP blocks is still better than the entire internet :P15:31
JonMarkGoI suppose15:31
nuclear_eclipseif someone really wants to whitelist the entire internet, they can just enter 0.0.0.0 :P15:32
JonMarkGohttps://github.com/jonmarkgo/github-services/commit/2455a22567df77a2f8348ad4cdf918965efb5fb215:32
nuclear_eclipseglad someone could save the day, probably would have taken me hours to figure that out :P15:33
JonMarkGoSubmitted it for a pull request15:34
JonMarkGoHopefully it fixes the issue15:34
nuclear_eclipsethank you15:34
JonMarkGoSo anyway, as for IP recognition15:35
JonMarkGoIts up to you, but I'm doubtful you'll be able to get a proper whitelist15:35
nuclear_eclipsedo you propose to just remove the IP check?15:36
JonMarkGoIt seems kind of useless15:36
JonMarkGoIf you were using the posted data to update mantis, you'd need some kind of security15:36
JonMarkGoBut all it really does is trigger a pull from your repo15:37
JonMarkGoIf someone tried to DDoS it, it wouldn't be any more effective than DDoSing index.php except that you'd be trying to hit github as well15:37
JonMarkGoAnd in reality, your webserver would crash and prevent the ddos long before github did :P15:37
nuclear_eclipseprobably15:38
JonMarkGoIf you want to do a proper fix, though..15:38
JonMarkGoI'd recommend setting an API username/pass in the source module15:38
JonMarkGoAnd giving github a spot to pass that along in the post data15:38
nuclear_eclipsehmmm15:38
JonMarkGoShould be easy enough15:38
nuclear_eclipseyeah, that does seem reasonable, I'll probably put that on my to-do list15:40
JonMarkGoAdding it to the github side would take like 30 seconds15:40
JonMarkGoAdding it to mantis would be a little harder15:40
nuclear_eclipseyeah, ideally I'd like each repo to have a generated key, and it would mean updating all of the plugins and hook templates to deal with that15:41
JonMarkGoYup15:41
JonMarkGoOr you could just have a generic key for now15:41
JonMarkGoFor all repos15:41
JonMarkGoBut only use it on github15:41
nuclear_eclipseI'd gladly accept code contributions :P15:47
JonMarkGoYeah15:47
JonMarkGoSo I'm a total mantis development newb15:48
JonMarkGoBut how does $_POST get pulled and filtered?15:48
JonMarkGoAnd how do you retrieve post data15:48
JonMarkGogpc_get_string?15:48
nuclear_eclipseyeah, it's in core/gpc_api.php15:48
nuclear_eclipseas a rule of thumb, all of our API functions are in the form "x_func_name", and reside in core/x_api.php15:50
JonMarkGoOk15:50
*** Quits: rolfkleef (~rolfkleef@82-204-82-162.fttx.bbeyond.nl) (Ping timeout: 240 seconds)15:57
JonMarkGoTesting it...15:59
JonMarkGoHooray, it works on the mantis side16:00
JonMarkGoSent you a pull request16:05
nuclear_eclipsethanks, I'll try to get to it sometime when I'm at home16:05
JonMarkGoSure thing16:06
JonMarkGoI also added an api key field to the mantis bt service hook16:06
JonMarkGoAnd submitted a pull request16:06
nuclear_eclipseawesome :)16:06
JonMarkGoSweet deal16:07
JonMarkGoIf I go to http://mysite/bugs/plugin.php?page=Source/checkin&api_key=abc123&payload=github it pulls from github :P16:08
nuclear_eclipsehow does it know which repo to pull from?16:08
JonMarkGoI actually sent a proper payload obj16:09
JonMarkGoBut it didn't copy well16:10
nuclear_eclipseok16:11
JonMarkGoNone of the actual core code should be changed16:11
JonMarkGoAll I did was add the api_key field and add a check to set $t_valid=true if the api key was correct16:11
nuclear_eclipseok, so this should work for all repo types then if they pass that parameter?16:13
JonMarkGoYup16:13
JonMarkGoITs an override if your repo doesn't have a list of ips16:13
nuclear_eclipseexcellent16:13
JonMarkGoIf you add &api_key= to your generic url in github it should work too16:17
*** Joins: spm-Draget (~quassel@ip-78-94-105-168.unitymediagroup.de)16:18
JonMarkGoAnd it does for me with no remote IPs in the allow list16:19
JonMarkGoHooray16:19
spm-DragetI am supposed to update a plain manthis 1.1.7 to latest stable, which would be 1.2.4. Anything I need to take care when updating?16:20
nuclear_eclipsespm-Draget: just make sure to backup your database and old installation, then follow the directions in your new tarball at doc/INSTALL16:20
spm-DragetI read the documentation on the website, it was only talking abotu new installs. I will check that doc and try it =)16:21
JonMarkGospm-Draget - http://www.mantisbt.org/manual/manual.installation.upgrading.php16:23
JonMarkGoThat helped me a bit16:23
*** Joins: YiSh (~joanna@5ade2c24.bb.sky.com)16:23
*** Joins: rolfkleef (~rolfkleef@urtica.xs4all.nl)17:39
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)17:41
*** Joins: roentgen (~arthur@openvpn/community/support/roentgen)17:56
*** Quits: moto-moi (~hylke@2001:888:13e4:1010:21f:e2ff:fe0c:ce28) (Read error: Operation timed out)18:15
*** Joins: daryn_ (~daryn@h70.8.96.216.dynamic.ip.windstream.net)18:27
*** Quits: daryn (~daryn@h117.64.29.71.dynamic.ip.windstream.net) (Ping timeout: 276 seconds)18:31
*** Quits: YiSh (~joanna@5ade2c24.bb.sky.com) (Ping timeout: 255 seconds)18:39
*** Joins: daryn__ (~daryn@h139.152.16.98.dynamic.ip.windstream.net)18:40
*** Quits: daryn_ (~daryn@h70.8.96.216.dynamic.ip.windstream.net) (Ping timeout: 240 seconds)18:41
*** Quits: daryn__ (~daryn@h139.152.16.98.dynamic.ip.windstream.net) (Client Quit)18:44
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)19:00
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)19:00
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 260 seconds)19:27
*** Quits: rolfkleef (~rolfkleef@urtica.xs4all.nl) (Remote host closed the connection)20:55

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