Camelia, the Perl 6 bug

IRC log for #mojo, 2013-01-12

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 good_news_everyone joined #mojo
00:00 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/tBo9aQ
00:00 good_news_everyone mojo/master 5a328eb Sebastian Riedel: updated entities.pl example
00:00 good_news_everyone left #mojo
00:11 Molaf_ joined #mojo
00:16 jberger if my save_page controller method subscribes to message then my tests pass but the real world fails
00:16 jberger if instead save_page subscribes to text the real world passes and my tests fail
00:30 rem_lex|pivo joined #mojo
00:34 good_news_everyone joined #mojo
00:34 good_news_everyone [mojo] kraih tagged v3.77 at ae905b0: http://git.io/3PN24Q
00:34 good_news_everyone left #mojo
00:42 jberger sri: to make the test behave like the browser I have to do:     ->send_ok({ text => decode 'UTF-8', $data })
00:43 jberger where $data was just encoded by j
00:50 sri my guess would be already encoded data in your json
00:51 sri which the json encode double encodes, and you have to recover manually
01:11 Mike-PerlRecruiter_ joined #mojo
01:50 alzeih joined #mojo
02:01 jnbek joined #mojo
02:03 xaka joined #mojo
02:29 duncanthrax joined #mojo
02:59 davehorner joined #mojo
03:02 esskar_ joined #mojo
03:13 noganex joined #mojo
03:41 zivester joined #mojo
04:11 jwang joined #mojo
04:11 davehorner joined #mojo
04:22 xaka joined #mojo
04:34 kryptonite joined #mojo
05:20 davehorner joined #mojo
05:59 d4rkie joined #mojo
05:59 d4rkie joined #mojo
06:30 davehorner joined #mojo
07:00 davehorner joined #mojo
07:08 Vandal joined #mojo
07:16 ladnaV joined #mojo
07:23 ObseLeTe joined #mojo
07:38 ObseLeTe joined #mojo
07:40 ObseLeTe joined #mojo
08:23 davehorner joined #mojo
08:28 memowe joined #mojo
08:56 kongelaks joined #mojo
09:05 travis-ci joined #mojo
09:05 travis-ci [travis-ci] kraih/mojo#125 (master - a799a9a : Sebastian Riedel): The build was broken.
09:05 travis-ci [travis-ci] Change view : https://github.com/kraih/mojo/com​pare/1d0ab874967a...a799a9abff4e
09:05 travis-ci [travis-ci] Build details : http://travis-ci.org/kraih/mojo/builds/4096933
09:05 travis-ci left #mojo
09:15 travis-ci joined #mojo
09:15 travis-ci [travis-ci] kraih/mojo#127 (master - 1d98aeb : Sebastian Riedel): The build was fixed.
09:15 travis-ci [travis-ci] Change view : https://github.com/kraih/mojo/com​pare/4b0e12725528...1d98aeb95afd
09:15 travis-ci [travis-ci] Build details : http://travis-ci.org/kraih/mojo/builds/4098795
09:15 travis-ci left #mojo
09:45 davehorner joined #mojo
09:58 lammel2 joined #mojo
09:58 arthas joined #mojo
10:05 kitt_vl joined #mojo
10:30 Vandal joined #mojo
11:01 xaka joined #mojo
11:25 ladnaV joined #mojo
11:50 Vandal joined #mojo
11:52 yakubori joined #mojo
12:00 yakubori o/
12:04 ladnaV joined #mojo
12:17 rem_lex| joined #mojo
12:17 Vandal joined #mojo
12:47 Adura joined #mojo
12:49 rem_lex joined #mojo
12:55 vervain joined #mojo
12:56 vervain \o
12:56 vervain yakubori: I just sent an idea to the mailing list.  I'd enjoy knowing your thoughts on the idea.
12:57 Vandal joined #mojo
13:02 sri o/
13:06 ladnaV joined #mojo
13:07 Foxcool joined #mojo
13:08 Vandal joined #mojo
13:11 Mike-PerlRecruiter_ joined #mojo
13:12 Vandal joined #mojo
13:15 ladnaV joined #mojo
13:16 yakudza joined #mojo
13:17 dhg joined #mojo
13:19 Vandal joined #mojo
13:23 yakubori joined #mojo
13:24 yakubori vervain: cool. i'll take a look. :)
13:31 yakubori as far as there being a command to essentially cache part or all of a site, that sounds like it be beneficial to me
13:33 yakubori *it'd
13:36 yakubori i'm still learning the framework though, so I don't know how feasible that is
13:39 vervain sri replied and didn't show signs of tears so I hope it's not crazy. :-)
13:40 vervain I'd also vote for putting try_files for the static pages in the mojo+nginx cookbook example.
13:40 vervain I spent two days off in the weeds trying to unsuccessfully proxy my app under /app when try_files gave me the functionality that I wanted.
13:45 ladnaV joined #mojo
14:00 sri vervain: quite the contrary, i want to see more asset-pipeline-ish plugins!
14:00 vervain *nod*
14:01 Vandal joined #mojo
14:03 basic6 joined #mojo
14:04 basic6 left #mojo
14:04 basic6 joined #mojo
14:07 basic6 how do i redirect_to relative to the current controller? i.e. i'm in /Documents/document/30 and I go redirect_to('list') (in this controller) it takes me to /list instead of /Documents/list
14:07 yakubori you can get path data, afaik, basic6
14:07 yakubori just append if you have that info, no?
14:08 dhg joined #mojo
14:08 yakubori something like $self->app->route->path . '/something/else' is my guess, but double check on the docs.
14:09 vervain $self->req->url->path
14:09 vervain perhaps
14:09 Vandal joined #mojo
14:09 yakubori ah, there ya go, that might be it
14:10 vervain Personally since you are trying to go 'more generic' I would just have a name on the route to /Documents/list and redirect_to('documents_list') or some such.
14:10 vervain But that is of course advice without really understanding your environemnt.
14:12 * vervain don't like 'list' in urls.
14:12 vervain That is after all what '.../' is supposed to mean I believe.
14:13 vervain .../.../.../index.html was a way to 'stop' directory listings originally I think.  Otherwise .../.../ meant 'list files at this location.
14:14 dhg joined #mojo
14:14 basic6 so url_for without arguments returns the url relative to the application, $self->req->url->path does the same but inside. however calling them with ../list does not work for the former and looks weird but works for the latter (/Documents/documents/../list)
14:15 ladnaV joined #mojo
14:16 basic6 I thought url_for can build a url relative to the current controller, i just can't find it in the docs
14:17 basic6 i'll use your req-url-path suggestion for now, thanks
14:21 Vandal joined #mojo
14:22 ladnaV joined #mojo
14:30 Molaf__ joined #mojo
14:32 Vandal joined #mojo
14:33 ladnaV joined #mojo
14:38 kitt_vl joined #mojo
14:57 phillipadsmith joined #mojo
15:16 Britzel joined #mojo
15:52 gryphon joined #mojo
16:27 kongelaks in sub extract, https://github.com/kraih/mojo/blob/mast​er/lib/Mojo/UserAgent/CookieJar.pm#L40
16:28 kongelaks should the cookie's path default to $url->path when there is no path component in the cookie?
16:36 d4rkie joined #mojo
16:43 kongelaks i see "If the server omits the Path attribute, the user
16:43 kongelaks agent will use the "directory" of the request-uri's path component as
16:43 kongelaks the default value." in rfc6265
16:49 wircus christ, you guys have been busy...
16:50 yakubori_ joined #mojo
17:00 kitt_vl joined #mojo
17:03 kitt_vl joined #mojo
17:14 dhg joined #mojo
17:15 sri kongelaks: when it comes to cookies all RFCs are irrelevant, what matters is what browsers actually do
17:16 kongelaks sri: so... does that mean Mojo::UserAgent::CookieJar should be modified?
17:16 sri you tell me
17:16 kongelaks yes
17:16 kongelaks haha
17:16 kongelaks well, i guess i don't know what browsers do
17:17 sri ...
17:17 sri well, i guess i won't modify it then
17:19 kongelaks if browsers set the path to "/" if the cookie doesn't specify a Path, then CookieJar should be modified. if browsers default to the url's path, then CookieJar is ok the way it is
17:20 kongelaks i can tell you that the server i'm interacting with expects that a null Path component should default to '/'
17:21 sri i don't care about any of that, all that matters is what real browsers actually do
17:31 xaka joined #mojo
17:38 kongelaks // """Defaults to the path of the request URL that generated the
17:38 kongelaks //    Set-Cookie response, up to, but not including, the
17:38 kongelaks //    right-most /."""
17:38 kongelaks http://code.google.com/searchframe#OAMlx​_jo-ck/src/net/cookies/canonical_cookie.cc&l=87
17:38 sri no pasting into this channel please
17:55 marty welcome back, wircus
17:58 sri kongelaks: i can now confirm that the cookiejar is broken pretty badly though
18:07 sri well, actually i guess it doesn't matter much, but i guess we should document that the cookie jar is insecure
18:08 kongelaks heh
18:10 kongelaks what's insecure about it?
18:11 sri no cookie jar that doesn't maintain a database of all top level domains is insecure
18:11 sri umm
18:11 sri s/no/every/
18:16 kongelaks so, $jar->find can send cookies from the wrong domain?
18:17 kongelaks s/send/find/
18:19 kongelaks or... just across subdomains
18:20 kongelaks that loop is a little bit confusing
18:47 sh4 joined #mojo
18:54 dod joined #mojo
18:59 sattellite joined #mojo
19:13 dod joined #mojo
19:13 yakubori joined #mojo
19:19 laouji joined #mojo
19:44 good_news_everyone joined #mojo
19:44 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/7iNucg
19:44 good_news_everyone mojo/master 28e228e Sebastian Riedel: fixed domain and path detection bugs in Mojo::UserAgent::CookieJar
19:44 good_news_everyone left #mojo
19:48 * marty is worried that sri's brain is going to catch on fire
19:48 * sri is worried too
19:57 dod joined #mojo
20:12 * marcus gets the fire extinguisher.
20:14 sh4|2 joined #mojo
20:26 good_news_everyone joined #mojo
20:26 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/R9nYkA
20:26 good_news_everyone mojo/master a216a1a Sebastian Riedel: normalize cookie path
20:26 good_news_everyone left #mojo
20:27 perlite_ joined #mojo
20:30 chansen joined #mojo
20:32 good_news_everyone joined #mojo
20:32 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/9pProQ
20:32 good_news_everyone mojo/master 3810a31 Sebastian Riedel: better contains example
20:32 good_news_everyone left #mojo
20:42 good_news_everyone joined #mojo
20:42 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/EoloIw
20:42 good_news_everyone mojo/master 68b0d5a Sebastian Riedel: fixed IDNA support in Mojo::UserAgent::CookieJar
20:42 good_news_everyone left #mojo
20:42 sri the bugs never stop
20:57 marty that means you'r looking to hard.  :P
21:01 GabrielVieira joined #mojo
21:02 sri i've already found another IDNA bug :S
21:02 sri and i'm unsure how to handle domains with leading dots
21:06 ifim joined #mojo
21:10 xaka joined #mojo
21:13 good_news_everyone joined #mojo
21:13 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/MM9paw
21:13 good_news_everyone mojo/master 9239fbb Sebastian Riedel: fixed another IDNA bug
21:13 good_news_everyone left #mojo
21:16 sri looks like leading dots should just be ignored these days and all subdomains are fair game
21:16 yakudza joined #mojo
21:26 sri please review http://mojolicio.us/perldoc/Mojo/Path#to_dir does that look like a sensible addition?
21:26 chansen_ joined #mojo
21:26 espent_ joined #mojo
21:26 Annihite1 joined #mojo
21:26 sivoais_ joined #mojo
21:26 ruz_ joined #mojo
21:26 LV joined #mojo
21:28 good_news_everyone joined #mojo
21:28 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/tnDwXw
21:28 good_news_everyone mojo/master 4304c8c Sebastian Riedel: fixed to_dir example
21:28 good_news_everyone left #mojo
21:28 zdk_ joined #mojo
21:28 rafl_ joined #mojo
21:28 Mike-PerlRecruiter_ joined #mojo
21:28 bizam joined #mojo
21:28 Gruber joined #mojo
21:29 xaka joined #mojo
21:33 ask joined #mojo
22:29 good_news_everyone joined #mojo
22:29 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/GtVdRw
22:29 good_news_everyone mojo/master 8dfa75d Sebastian Riedel: more tests for Mojo::UserAgent::CookieJar
22:29 good_news_everyone left #mojo
22:32 sri marcus: stream http://www.ustream.tv/channel/perigrin
23:41 good_news_everyone joined #mojo
23:41 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/VVpv5Q
23:41 good_news_everyone mojo/master ea5c332 Sebastian Riedel: better examples for JSON tests
23:41 good_news_everyone left #mojo
23:46 good_news_everyone joined #mojo
23:46 good_news_everyone [mojo] kraih tagged v3.78 at 9adb26c: http://git.io/mnwlgA
23:46 good_news_everyone left #mojo
23:54 jzawodn joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary