Thursday, 2015-07-23

*** Apoorva has quit IRC00:26
openstackgerritMerged openstack/api-wg: Add the description of GET method  https://review.openstack.org/18518000:52
*** salv-orlando has quit IRC01:03
*** shangxdy has joined #openstack-api01:58
*** salv-orlando has joined #openstack-api02:04
*** salv-orlando has quit IRC02:16
*** annegentle has quit IRC02:28
*** annegentle has joined #openstack-api02:33
*** shangxdy has quit IRC03:16
*** annegentle has quit IRC03:17
*** Apoorva has joined #openstack-api03:21
*** salv-orlando has joined #openstack-api03:28
*** salv-orlando has quit IRC03:38
*** annegentle has joined #openstack-api03:48
*** annegentle has quit IRC04:09
*** HenryG has quit IRC04:09
*** HenryG has joined #openstack-api04:12
*** etoews has quit IRC04:17
*** Apoorva has quit IRC04:26
*** vishwana_ has quit IRC04:45
*** terrylhowe has quit IRC05:42
*** salv-orlando has joined #openstack-api05:43
*** salv-orlando has quit IRC05:48
*** Apoorva has joined #openstack-api05:51
*** woodster_ has quit IRC06:22
*** fzdarsky|afk has joined #openstack-api06:34
*** fzdarsky|afk is now known as fzdarsky06:37
*** Apoorva has quit IRC06:51
*** salv-orlando has joined #openstack-api06:56
*** e0ne has joined #openstack-api07:14
*** subscope has quit IRC07:41
*** alex_klimov has joined #openstack-api07:46
*** cdent has joined #openstack-api07:48
*** subscope has joined #openstack-api07:56
openstackgerritChris Dent proposed openstack/api-wg: Add advice on when to use POST or PUT in create  https://review.openstack.org/18191208:08
* cdent smh08:08
*** subscope has quit IRC08:09
*** lucasagomes has joined #openstack-api08:11
*** subscope has joined #openstack-api08:25
*** alex_klimov has quit IRC08:26
*** alex_klimov has joined #openstack-api08:37
*** fzdarsky_ has joined #openstack-api10:32
*** fzdarsky has quit IRC10:35
*** terrylhowe has joined #openstack-api11:50
*** jaypipes has joined #openstack-api11:56
*** annegentle has joined #openstack-api13:14
*** annegentle has quit IRC13:36
*** annegentle has joined #openstack-api13:36
*** jaypipes has quit IRC13:37
*** woodster_ has joined #openstack-api13:55
*** jaypipes has joined #openstack-api13:56
*** sigmavirus24_awa is now known as sigmavirus2414:08
sigmavirus24psssst14:31
*** terrylhowe has left #openstack-api14:31
*** briancurtin has quit IRC14:31
*** briancurtin has joined #openstack-api14:31
sigmavirus24Currently if you make a GET request to glance with a body, it returns a 500. Would y'all say that Glance should instead return 400 (Bad Request) or 200 OK with the regular body for a GET to that endpoint14:31
sigmavirus24e.g., GET /v2/images (with a body) => 500 currently. Would you instead prefer GET /v2/images (with a body) => 400  or GET /v2/images (with a body) => 200 (with images listed)14:32
ryansbI'd say 40014:34
ryansbsince GET isn't allowed to have a body14:34
ryansbweird that the wsgi framework doesn't auto-400 in that case14:35
kragnizryansb: where is GET disallowed a body?14:36
* ryansb digs14:37
sigmavirus24ryansb: spoiler, it isn't disallowed14:37
sigmavirus24ryansb: GETs with a body are semantically meaningless14:37
sigmavirus24GETs are allowed a body by the RFCs14:37
sigmavirus24In fact, every method *may* have a body. The body may just be semantically meaningless14:37
ryansbargh, yeah that's what I'm gleaning from 723114:39
sigmavirus24It's been that way since at least 261614:39
sigmavirus24This is why elasticsearch can use bodies on a GET14:39
sigmavirus24They define the semantics for their server14:39
sigmavirus24*their application14:40
ryansbhttps://tools.ietf.org/html/rfc7231#section-4.3.114:40
sigmavirus24ryansb: right, and given the behaviour of load balancers/proxies (which often strip out bodies from GETs) I would say this should be a 200, no?14:40
ryansbyeah. Well there's no RFC that says I can't grumble about GETs with bodies being wrong14:40
ryansbI want to still vote 400, but I'm only about a 3/10 on strength-of-opinion14:41
sigmavirus24Yeah14:41
sigmavirus24I feel both responses are correct14:41
ryansbI'd be against projects defining their own GET-with-body semantics, so having them hard-400 would be a better disincentive to stuffing meaning into them14:42
sigmavirus24it's up to the service but I think that having different behaviour based on how youv'e deployed your application is wrong14:42
ryansb+114:42
sigmavirus24ryansb: or just saying "GETs with a body should ignore the body and do what they would without it"14:42
ryansbyeah, or that14:43
sigmavirus24So the caveat here is that openstack/searchlight is building atop elasticsearch =P14:43
kragnizsome proxies will also strip the body14:43
kragnizsigmavirus24: shhhh14:43
* sigmavirus24 enjoys throwing monkey-wrenches into discussions14:43
* sigmavirus24 is a troll14:43
ryansbwhy can't everything be glorious and standardized, so we can go to the beach?14:44
sigmavirus24ryansb: because RFCs are simply requests for comments, not standards that people enforce =P14:44
sigmavirus24I want to be an RFC Cop14:44
sigmavirus24Someone hire me as an RFC Cop kthnxbai14:44
*** vishwanathj has joined #openstack-api14:44
ryansblol sigmavirus24++14:45
kragnizsomething something the sigmavirus24 we deserve14:45
sigmavirus24"The virus we deserve"14:46
ryansbif you ever start an infosec company, that should be on the biz cards14:46
sigmavirus24lol14:49
elmikoi vote 400 on a get with body, since the client could change their behavior to stop the error14:53
*** annegentle has quit IRC14:56
*** alex_klimov has quit IRC15:00
*** alex_xu has quit IRC15:10
*** alex_xu has joined #openstack-api15:11
*** annegentle has joined #openstack-api15:18
*** annegentle has quit IRC15:18
*** annegentle has joined #openstack-api15:19
*** sdague has quit IRC15:26
*** sdague has joined #openstack-api15:30
*** ameade has quit IRC16:08
*** ameade has joined #openstack-api16:08
*** Apoorva has joined #openstack-api16:14
*** e0ne has quit IRC16:53
*** lucasagomes has quit IRC17:07
*** vishwanathj has quit IRC17:15
*** e0ne has joined #openstack-api17:35
*** vishwanathj has joined #openstack-api17:51
*** e0ne has quit IRC17:51
*** e0ne has joined #openstack-api18:42
*** jaypipes has quit IRC18:44
*** fzdarsky_ has quit IRC18:44
*** bitblt has joined #openstack-api18:55
*** bitblt has quit IRC18:58
*** cdent has quit IRC18:59
*** jaypipes has joined #openstack-api19:16
*** jaypipes has quit IRC19:16
*** annegentle has quit IRC19:37
*** e0ne has quit IRC20:04
*** annegentle has joined #openstack-api20:09
*** annegentle has quit IRC20:11
*** annegentle has joined #openstack-api20:12
*** annegentle has quit IRC20:13
*** annegentle has joined #openstack-api20:13
*** Apoorva has quit IRC20:37
*** Apoorva has joined #openstack-api20:50
*** e0ne has joined #openstack-api20:51
*** e0ne has quit IRC20:55
*** annegent_ has joined #openstack-api21:02
*** annegentle has quit IRC21:05
*** e0ne has joined #openstack-api21:12
*** e0ne has quit IRC21:38
*** sigmavirus24 is now known as sigmavirus24_awa21:43
*** etoews has joined #openstack-api21:54
*** annegent_ has quit IRC22:47
*** Apoorva has quit IRC23:43
*** salv-orlando has quit IRC23:58

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