*** mlinksva has joined #cc | 00:00 | |
mattl | no prob | 00:14 |
---|---|---|
*** JanisB_123896912 has quit IRC | 00:14 | |
*** jgay has joined #cc | 00:21 | |
*** kreynen has quit IRC | 01:10 | |
*** lotia has joined #cc | 02:03 | |
*** WishMasterNND has quit IRC | 02:23 | |
*** lotia has quit IRC | 02:54 | |
*** jgay has quit IRC | 02:57 | |
*** oshani has quit IRC | 02:58 | |
*** K`Tetch_ has joined #cc | 03:08 | |
*** K`Tetch has quit IRC | 03:20 | |
*** [mharrison] has joined #cc | 03:25 | |
*** mlinksva has quit IRC | 03:34 | |
*** dini has joined #cc | 05:11 | |
*** JanisB has joined #cc | 06:47 | |
*** ankitg has quit IRC | 07:09 | |
*** sama has joined #cc | 07:33 | |
*** dini has quit IRC | 08:24 | |
*** dini has joined #cc | 09:33 | |
*** ankitg has joined #cc | 09:38 | |
*** shroebrou has quit IRC | 09:42 | |
*** dini has quit IRC | 09:54 | |
*** dini has joined #cc | 10:00 | |
*** sama has quit IRC | 12:04 | |
*** Orango|Away is now known as Orango | 12:10 | |
*** sama has joined #cc | 12:15 | |
*** ankitg has quit IRC | 12:40 | |
*** ankitg has joined #cc | 12:40 | |
*** dini has left #cc | 12:56 | |
*** ankitg is now known as ankitg|food | 12:58 | |
*** ankitg|food is now known as Ankitg|Food | 12:58 | |
*** kreynen has joined #cc | 13:18 | |
*** Ankitg|Food is now known as ankitg | 13:31 | |
*** balor has joined #cc | 13:34 | |
*** haoyu_ has joined #cc | 13:38 | |
*** haoyu__ has quit IRC | 13:38 | |
*** lotia has joined #cc | 13:41 | |
*** kreynen has quit IRC | 13:59 | |
*** kreynen has joined #cc | 14:23 | |
*** mlinksva has joined #cc | 14:23 | |
*** oshani has joined #cc | 14:42 | |
*** dini has joined #cc | 15:00 | |
*** dini has quit IRC | 15:33 | |
*** jgay has joined #cc | 15:40 | |
*** nkinkade has joined #cc | 15:42 | |
*** nathany has joined #cc | 15:55 | |
*** dini has joined #cc | 16:01 | |
*** sama has quit IRC | 16:01 | |
paulproteus | mattl, Frank Tobia is one of CC's interns last year, was involved in Free Culture at RPI, and has a little bio still on the CC staff page. | 16:05 |
paulproteus | nathany, Morning. | 16:05 |
nathany | morning, paulproteus | 16:05 |
*** ankitg has quit IRC | 16:06 | |
paulproteus | "For example, if a machine can say a prayer for you, why not have a fully robotic pope and clergy?" <http://news.yahoo.com/s/livescience/20090326/sc_livescience/youpaycomputerpraysforyou> | 16:07 |
nathany | why not, indeed? | 16:08 |
paulproteus | I may WFH until lunchtime or so. | 16:10 |
mattl | paulproteus: thanks for the update. did you enjoy offline? | 16:12 |
paulproteus | I did. I went hiking. | 16:14 |
paulproteus | This weekend was like the most weekend-y weekend I've had in ages. | 16:14 |
* paulproteus reviews our gsoc applications | 16:16 | |
*** ankitg has joined #cc | 16:24 | |
*** balor has quit IRC | 16:30 | |
paulproteus | nathany, Okay if I make some of these reviews public...? | 16:31 |
nathany | paulproteus: of course | 16:31 |
nathany | paulproteus: but you'll need to do a private pass to actually get the +/- value recorded | 16:31 |
paulproteus | Right, I realize. | 16:32 |
nathany | if i understand correctly you can either publicly comment or privately score, not both at the same time | 16:32 |
nathany | ok | 16:32 |
nathany | (a score would be useful) | 16:32 |
paulproteus | Yeah, I plan to score many many apps. | 16:32 |
*** Bovinity has joined #cc | 16:35 | |
*** BjornW has joined #cc | 16:38 | |
haoyu_ | nkinkade, the rewrite rule on monitor.(cc).org maybe still a bit problematic - when I edit page via api.php ( http://monitor.creativecommons.org/api.php ) the content is written to page "Api.php" | 16:41 |
haoyu_ | nkinkade, but it may not caused by rewrite rules because other POST request to api.php works well, so I'm not quite sure | 16:41 |
nkinkade | haoyu_: Let me see ... | 16:42 |
haoyu_ | I can produce some request so you can see what happend on the logs | 16:42 |
nkinkade | haoyu_: I might be misunderstanding something, but that page show up for me. | 16:43 |
nkinkade | That is, api.php is not redirected to Api.php. | 16:44 |
haoyu_ | yes, the problem only occurs when I do editing via api.php | 16:44 |
haoyu_ | when edit via api.php, the content of the page pushed to a wiki page called 'Api.php' | 16:45 |
*** flakerimi has joined #CC | 16:45 | |
haoyu_ | eg. I just done a edit on page Sandbox via api.php, but now the content published on Api.php | 16:46 |
haoyu_ | and Sandbox page unchanged. | 16:47 |
nkinkade | haoyu_: I've never used api.php ... can you give me an example URL? | 16:47 |
haoyu_ | em, it should be a post request, hold on, I'll figure out how the post data looks like | 16:48 |
nkinkade | It won't work with a GET? | 16:49 |
haoyu_ | yes the api.php require POST on some method | 16:51 |
nkinkade | You could email me the form you're using. | 16:52 |
nkinkade | Or pastebin it. | 16:52 |
paulproteus | It does work with GETs in some cases. | 16:52 |
haoyu_ | yep it just doesn't work for the edit action.. | 16:52 |
haoyu_ | it is not a form, it is a python wiki bot called mwclient. | 16:56 |
haoyu_ | nkinkade, the session here: http://pastebin.com/m5eae1e87 | 16:56 |
haoyu_ | I grabed the whole session. Everyone of them is a POST request. the last request is the one caused problem | 16:57 |
nkinkade | haoyu_: This one?: format=json&text=HIHIHIHIHI&title=Sandbox&bot=1&summary=&token=cf8e109505b5f13ba4f0b59ac4350293%2B%5C¬minor=1&action=edit | 16:58 |
haoyu_ | yes | 16:58 |
nkinkade | That looks a lot like a GET request to me. | 16:58 |
nkinkade | Or does this python module break it down into a POST? | 16:58 |
haoyu_ | yes but it is indeed a POST | 16:58 |
nkinkade | So you feed the module a GET-style URL and it converts it? | 16:59 |
haoyu_ | it just POSTed the data in this format... em... let me see.. | 16:59 |
haoyu_ | I think it is the Python API has break it down | 17:00 |
*** papyromancer has quit IRC | 17:03 | |
nkinkade | That may be how POST data looks. I honestly forgot how it's passed. It's been years since I manually parsed POST data, probably about 10 years, and I did it using Perl. | 17:03 |
nkinkade | It may very well be tokenized like that, similar to GET, but sent as content/data instead. | 17:04 |
haoyu_ | em.. anyway do you think it is a mediawiki bug? it said clearly in the request that the title is 'Sandbox', but in the return value the title is 'Api.php' | 17:07 |
haoyu_ | I just think it maybe related to the rewrite rule since it is just the url of the request - api.php | 17:08 |
nkinkade | Yeah, that is strange. | 17:09 |
paulproteus | I think it's the Rewrite rules, too. Let me know if I ought to give it a gander. | 17:09 |
paulproteus | lol re: HIHIHIHIHI | 17:10 |
nkinkade | haoyu_: paulproteus: Here are the only rewrite rules: | 17:11 |
nkinkade | http://pastebin.com/de7ac492 | 17:11 |
nkinkade | Presumably if it's posting to /api.php, then it should not be touched by those rules, as api.php exists. | 17:11 |
nkinkade | Unless %{REQUEST_FILENAME} is something other than what it's expecting. | 17:12 |
paulproteus | Yeah, I agree, that seems strange. | 17:12 |
paulproteus | There was this old Apache2 bug about REQUEST_FILENAME. | 17:12 |
paulproteus | But I think we're probably past that nowadays. Are we on Lenny on that machine? | 17:12 |
nkinkade | paulproteus: Not yet. | 17:12 |
paulproteus | Okay. | 17:12 |
nkinkade | a7 and a5 I was hoping to do this week. Had we talked about tomorrow? | 17:13 |
haoyu_ | ah... seems it is indeed changed to /index.php?title=Api.php , so the api.php got Api.php as title? | 17:13 |
nkinkade | haoyu_: Can you catch the request your program is sending with tcpdump or wireshark and look precisely at the headers and data? | 17:13 |
nkinkade | Ah. | 17:13 |
nkinkade | So my thought is that %{REQUEST_FILENAME} is not what the rewrite rule is expecting. | 17:14 |
nkinkade | Is it possible your program is generating a slightly faulty request? | 17:14 |
paulproteus | nkinkade, I'm curious why you prefix that with the full path. I guess it shouldn't make a difference, but I don't usually do that. | 17:15 |
paulproteus | That should be idle discussion, so if you have a real lead go on that. | 17:15 |
paulproteus | i.e. | 17:15 |
paulproteus | # | 17:15 |
paulproteus | RewriteCond /var/www/monitor.creativecommons.org/www%{REQUEST_FILENAME} !-f | 17:15 |
paulproteus | vs | 17:15 |
paulproteus | RewriteCond %{REQUEST_FILENAME} !-f | 17:15 |
paulproteus | I'll be back in ca. 30m. | 17:15 |
*** oshani has quit IRC | 17:21 | |
*** oshani has joined #cc | 17:21 | |
haoyu_ | nkinkade, the last request catched by wireshark here: http://pastebin.com/d790317cf | 17:24 |
nkinkade | paulproteus: I can't remember why I did that. I have this recollection that I found that it required an absolute filesystem path, but there may have been something else going on. | 17:24 |
haoyu_ | the post data is just the same as GET... I think | 17:24 |
nkinkade | Sure looks pretty normal. | 17:25 |
nkinkade | Let me turn on rewrite logging and then I'll have you make the request again. | 17:25 |
nkinkade | haoyu_: Can you make the request again, right now. | 17:26 |
nkinkade | The logs gets big fast. | 17:26 |
haoyu_ | requesting... | 17:27 |
haoyu_ | done. | 17:27 |
nkinkade | haoyu_: It would appear that modrewrite is passing it through to /api.php. I see about 6 or 7 requests to api.php and all them end with this: (1) pass through /api.php | 17:33 |
haoyu_ | is there anyone passed to index.php or something? | 17:34 |
nkinkade | I could perhaps later api.php to return all sorts of data like $_POST, $_SESSION, etc. | 17:34 |
nkinkade | None of them were passed to /index.php. | 17:34 |
nkinkade | Can you modify your program to only make a single request ... the POST to edit? | 17:35 |
nkinkade | That will make it easier to pick out. | 17:35 |
haoyu_ | there's maybe just the last request is wrong... | 17:35 |
haoyu_ | hmm, I'm not sure, it may need to grab a token before editing. | 17:35 |
nkinkade | I see 6 requests for /api.php and all of them got passed through. Is your programing making exactly 6 requests? | 17:36 |
haoyu_ | the whole logic is in a package, maybe not easy to hacking with | 17:36 |
haoyu_ | yes 6 requests | 17:36 |
nkinkade | haoyu_: Does your program accept any return data? | 17:38 |
nkinkade | If so, I can have api.php return some of its environment. | 17:38 |
haoyu_ | okey | 17:39 |
haoyu_ | just make it starting with some tags so I can hack the program for it. | 17:40 |
haoyu_ | eg. "DEBUG:" | 17:40 |
nkinkade | It'll be the output of print_r($_POST), so I'll wrap it in something easy to pick out. | 17:42 |
nkinkade | haoyu_: Try it now. | 17:44 |
nkinkade | It will return the contents of $_REQUEST and $_SESSION, and then exit. | 17:45 |
haoyu_ | it seems correct: http://pastebin.com/m640634ad | 17:47 |
*** papyromancer has joined #cc | 17:47 | |
haoyu_ | can you don't break api.php's logic but just append the output after its normal output? | 17:47 |
haoyu_ | so we can see how the entire session works | 17:48 |
*** MesutCanGurle has joined #cc | 17:48 | |
nkinkade | haoyu_: I moved it to the end of the file. | 17:52 |
haoyu_ | nkinkade, http://pastebin.com/m17cc1fb1 | 17:54 |
haoyu_ | did you notice every requict | 17:54 |
haoyu_ | oops | 17:54 |
haoyu_ | every request has a [title] => api.php | 17:54 |
haoyu_ | even there's no title argument passed in... | 17:55 |
nkinkade | Yeah, that's strange. That almost seems like a bug in the api.php implementation. | 17:57 |
haoyu_ | it messed up the _REQUEST... | 17:58 |
haoyu_ | in our previous result, you put the output before the API logic, then there's no [title]=>api.php | 17:59 |
*** michaelkrnac has joined #cc | 18:01 | |
nkinkade | haoyu_: That would indeed seem like either a bug in api.php or some omission in the way you are forming the request. | 18:02 |
nkinkade | Do you agree? | 18:02 |
haoyu_ | in includes/WebRequest.php it has line like: $_GET['title'] = $_REQUEST['title'] = substr( $_SERVER['ORIG_PATH_INFO'], 1 ); | 18:02 |
haoyu_ | is it caused the problem? | 18:03 |
haoyu_ | ah nkinkade, have you enabled $wgUsePathInfo ? | 18:05 |
haoyu_ | http://www.mediawiki.org/wiki/Manual:$wgUsePathInfo | 18:05 |
*** Bovinity has quit IRC | 18:05 | |
*** jgay has quit IRC | 18:05 | |
nkinkade | haoyu_: It was not enabled, but it is now. | 18:06 |
haoyu_ | nkinkade, could you force disable $wgUsePathInfo ? | 18:09 |
haoyu_ | I greped whole mediawiki code and just found a place in WebRequest, it set $_REQUEST['title'] when $wgUsePathInfo is true. | 18:10 |
nkinkade | There you go. | 18:11 |
nkinkade | God bless grep. I'd be lost without it. | 18:11 |
haoyu_ | yes it works now! | 18:11 |
haoyu_ | you disabled $wgUsePathInfo right? and now it works.. | 18:12 |
haoyu_ | it find the correct title now :) | 18:12 |
haoyu_ | cheers~! | 18:12 |
*** robmyers has joined #cc | 18:13 | |
nkinkade | haoyu_: Yeah, I set $wgUsePathInfo to false. | 18:14 |
nkinkade | Glad the fix was easy, though it took a while to arrive there. :-) | 18:14 |
haoyu_ | indeed... | 18:15 |
haoyu_ | amazing, this also fixed another bug caused my program crash. thanks nkinkade ! :) | 18:18 |
nkinkade | haoyu_: No problem, though you were the one to find the issue. I just used vi a bit. :-) | 18:19 |
haoyu_ | haha. anyway thank you nkinkade :) I'll go ahead coding now :) | 18:22 |
*** Bovinity has joined #cc | 18:37 | |
*** johndoigiii has joined #cc | 18:41 | |
* paulproteus sighs | 19:13 | |
robmyers | * blinks | 19:13 |
robmyers | how *do* you do the stars thing? | 19:13 |
* paulproteus says /me does the stars thing | 19:14 | |
paulproteus | "DWORD to your moms, I came to drop bombs" <http://www.monzy.com/intro/drama_lyrics.html> | 19:14 |
* nathany thinks stars are groovy | 19:14 | |
Bovinity | get off my lawn! | 19:14 |
paulproteus | By the time you've rhymed one line, I've already busted ten; | 19:14 |
paulproteus | You rap in exponential time and I'm big-O of log(n). | 19:14 |
paulproteus | This is awesome. | 19:14 |
*** nathany is now known as nathany|curry | 19:14 | |
* robmyers tries that | 19:14 | |
robmyers | oooOOooOoooh! | 19:14 |
paulproteus | FC-Disgust. | 19:15 |
robmyers | DWORD is a windoze type. inherently un-hip. ;-) | 19:15 |
paulproteus | But it's said to your mom, also inherently un-hip. | 19:15 |
robmyers | hmmm | 19:17 |
robmyers | my mom is a yogi. that's reasonably cool. also, mattl has already done this one. ;-P | 19:17 |
paulproteus | er, what has he done? | 19:18 |
robmyers | well quite. | 19:18 |
mattl | paulproteus: fc-disgust | 19:22 |
*** MesutCanGurle has quit IRC | 19:23 | |
*** flakerimi has quit IRC | 19:29 | |
*** jgay has joined #cc | 19:41 | |
*** robmyers has quit IRC | 19:47 | |
*** dini has left #cc | 20:02 | |
*** kreynen_ has joined #cc | 20:02 | |
nkinkade | paulproteus: I just verified that you need the absolute filesytem path for files when you are doing RewriteConds in the vhost config. | 20:06 |
nkinkade | YOu can use relative paths in <Directory> or .htaccess | 20:06 |
paulproteus | Oh, I think I just always keep mine in <Directory>. That's the difference. | 20:06 |
paulproteus | Thanks, I didn't know that, and it explains it all. | 20:06 |
nkinkade | On the wiki, I have it as: RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f | 20:07 |
nkinkade | Which is slightly more portable, I guess. | 20:07 |
paulproteus | Even if it uses more CAPITAL LETTERS (c.f. https://bugs.launchpad.net/firefox/+bug/269656/+viewstatus ) | 20:08 |
paulproteus | "It deserves capital punishment DUE TO EXCESSIVE USE OF CAPS." | 20:08 |
* paulproteus giggles. | 20:08 | |
paulproteus | Your situation is a perfectly good use of caps; the Firefox one wasn't. | 20:08 |
ianweller | flaming caps! | 20:09 |
*** kreynen__ has joined #cc | 20:11 | |
*** kreynen_ has quit IRC | 20:16 | |
*** kreynen has quit IRC | 20:19 | |
johndoigiii | paulproteus or nathany|curry whats the difference between mozcc in git and mozcc2 in svn? | 20:20 |
*** nathany|curry is now known as nathany | 20:21 | |
nathany | johndoigiii: mozcc2 is old | 20:21 |
nathany | mozcc in git contains more recent work paulproteus has done | 20:21 |
johndoigiii | oh okay cool | 20:21 |
paulproteus | Ya | 20:22 |
*** Fusion5 has joined #cc | 20:33 | |
Fusion5 | hi, if someone has licensed something with CC non-commercial, can I take that content, paste it on my page, and display ads? | 20:35 |
Fusion5 | this is a hypotetic situation | 20:35 |
*** kreynen has joined #cc | 20:36 | |
*** kreynen__ has quit IRC | 20:53 | |
*** Orango is now known as Orango|Away | 20:53 | |
*** oshani has quit IRC | 20:58 | |
*** BjornW has quit IRC | 21:09 | |
nathany | Fusion5: is the content the primary draw to the page? | 21:16 |
Fusion5 | nathany: yes, it may be. in that case, i suppose it's not allowed? | 21:28 |
nathany | Fusion5: that's what the license legal text says (if commercial gain is the primary purpose of the reuse...) | 21:28 |
Fusion5 | ok, understood - thanks for the clarification | 21:29 |
*** JanisB has quit IRC | 21:42 | |
*** [mharrison] has quit IRC | 22:00 | |
*** oshani has joined #cc | 22:13 | |
nathany | johndoigiii: i'm doing some bug triage; i'm going to assign some items to you with no expectation that you know where to start on them... let's plan to meet first thing tomorrow to go over and do background knowledge transfer | 22:22 |
johndoigiii | Okay sounds good to me | 22:22 |
johndoigiii | quick q, to deploy on staging, can I simply scp the neccesary files to a9 or are there any sort of deployment utilities that I need to use? | 22:27 |
johndoigiii | because all that has changed is a template and a css file | 22:27 |
johndoigiii | nm that, there are more diffs | 22:28 |
*** lotia has quit IRC | 22:29 | |
Bovinity | you can svn up on the staging sites | 22:30 |
johndoigiii | and its hooked? | 22:30 |
Bovinity | i believe so | 22:31 |
johndoigiii | this is for creativecommons.net | 22:33 |
Bovinity | ah. check with nathany. | 22:35 |
*** Fusion5 has quit IRC | 22:38 | |
*** NeonFloss has joined #cc | 22:45 | |
*** kreynen has quit IRC | 23:08 | |
nkinkade | nathany: paulproteus: Both of you will be around tomorrow at some point? | 23:15 |
nkinkade | I'm thinking about a5 and a7. | 23:15 |
nathany | nkinkade: yes | 23:15 |
nathany | let's do it | 23:15 |
paulproteus | nkinkade, Yup, I said I'd be online 10am Pacific and I will stick to that. | 23:15 |
nkinkade | Awesome. This will be a big relief. There are loads of updates pending, and not just distribution ones. | 23:16 |
nkinkade | paulproteus: nathany: Maybe we should plan for early afternoon Pacific. | 23:17 |
nkinkade | After lunch, that is. | 23:17 |
nathany | nkinkade: sounds good; i'm in meetings most of the morning | 23:17 |
paulproteus | Sure, either way. I'm flexible for tomorrow. | 23:17 |
nkinkade | Okay, thanks. I'll shoot for sometime tomorrow around 1 or 2 pm Pacific. I'll catch up with you both on that front tomorrow. | 23:17 |
paulproteus | Ahrash is going to want to quiz me about OpenEd stuff, but I told him that any server-related fires will take priority. | 23:19 |
*** michaelkrnac has quit IRC | 23:26 | |
paulproteus | nkinkade, others: You may love http://afuse.sourceforge.net/ as much as I do. | 23:29 |
paulproteus | It eliminates the need for trivial "scp"s. | 23:29 |
nkinkade | paulproteus: Do you just keep all the servers mounted with sshfs? | 23:33 |
paulproteus | afuse automounts them. | 23:33 |
paulproteus | $ cat ~/sshfs/opened.creativecommons.org/tmp/dull.xml | 23:33 |
paulproteus | That will now auto-mount whichever server opened is on and read me that file. | 23:33 |
nkinkade | That could be pretty useful. I'm trying to think how often I do simple file operations on the servers where I don't also need full remote shell functionality. | 23:34 |
*** cristi2 has quit IRC | 23:38 | |
*** nathany has quit IRC | 23:38 | |
nkinkade | paulproteus: An interesting addition to that would be some wrapper script called, say "rmt" that would interpret commands passed to it as a command to be executed on the remote machine, which is automatically determined based on what mount point you in. | 23:39 |
nkinkade | I guess sudo operation would be tricky. | 23:39 |
paulproteus | Emacs has a mode that tries to take care of this, but I never really liked how non-native it felt. | 23:40 |
johndoigiii | hmm, while trying to add a few keys to gitosis-admin I seem to have fudged my priveleges | 23:42 |
johndoigiii | I am getting a "read access denied" for any remote operation | 23:42 |
paulproteus | johndoigiii, eep, let me see about that. | 23:45 |
johndoigiii | k, thx | 23:45 |
paulproteus | zomg, git over sshfs | 23:45 |
paulproteus | FINALLY, a way to make git slow. | 23:45 |
Bovinity | hahah | 23:45 |
paulproteus | Er, you broke *all* our access, johndoigiii (-: | 23:46 |
paulproteus | Fixing now. | 23:46 |
paulproteus | ...it's actually not super slow. | 23:46 |
johndoigiii | ohhh no, ha sorry | 23:46 |
johndoigiii | what did I do? | 23:46 |
paulproteus | Probably broke the syntax of the config file. | 23:47 |
johndoigiii | ohh ok | 23:48 |
paulproteus | I don't see anything obviously wrong... | 23:54 |
paulproteus | Yeah, not really at all. Weird. | 23:54 |
* paulproteus scratches his head | 23:57 | |
*** oshani has quit IRC | 23:57 | |
johndoigiii | yeah I didnt make any changes to the conf | 23:58 |
johndoigiii | intentional changes that is | 23:58 |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!