greptilian logo

IRC log for #rest, 2016-05-23

https://trygvis.io/rest-wiki/

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:01 fuzzyhorns joined #rest
01:35 tbsf joined #rest
01:58 tbsf joined #rest
02:30 tbsf joined #rest
03:46 tbsf joined #rest
04:16 wsiqueir joined #rest
05:49 tbsf joined #rest
05:52 wsieroci joined #rest
06:32 wsieroci joined #rest
07:03 Macaveli joined #rest
08:44 Macaveli joined #rest
08:54 Coldblackice joined #rest
08:58 timg__ joined #rest
10:02 tbsf joined #rest
10:33 timg___ joined #rest
10:34 Macaveli joined #rest
10:35 timg__ joined #rest
12:04 tbsf joined #rest
12:47 philbot joined #rest
12:47 Topic for #rest is now #rest REpresentational State Transfer | logs: http://irclog.greptilian.com/rest/today |  http://tech.groups.yahoo.com/group/rest-discuss | http://code.google.com/p/implementing-rest/ | http://en.wikipedia.org/wiki/Representational_State_Transfer
12:47 searchbot joined #rest
12:53 pdurbin joined #rest
13:17 tbsf joined #rest
13:37 Devastator_ joined #rest
13:41 timg___ joined #rest
13:47 eschmidbauer__ joined #rest
13:47 Devastator joined #rest
13:51 Devastator joined #rest
13:55 tbsf joined #rest
14:03 saml joined #rest
14:23 tbsf joined #rest
14:29 lbvcxNpu joined #rest
14:29 lbvcxNpu left #rest
15:23 wsieroci joined #rest
15:47 tbsf joined #rest
15:47 tbsf joined #rest
15:50 kpPuvP joined #rest
15:50 kpPuvP left #rest
16:02 tbsf joined #rest
16:21 sd512 joined #rest
16:23 sd512 What is the appropriate response to a POST request which tries to post to a resource that already exists, but should not be modified by that user?
16:23 sd512 *"that user" being the user that initiated the request
16:25 asdf i'd say conflict
16:26 asdf and the ACL issue is really unrelated, that only would result in a 401/403 when actually updating
16:26 asdf (401 i guess since you said "that" user)
16:27 asdf but when trying to create, the error that the thing already exists, is a 409 conflict (possibly include a helpful error message)
16:29 sd512 asdf, Thanks! What do you mean by ACL?
16:30 asdf uh, i mean the permissions issue; that the part where you try to POST, ie. create, but it already exists - is one issue; but the part where, if the user were to update instead, but doesnt have permissions for that - is another
16:32 sd512 so acl = access control layer?
16:32 asdf right (or access control list)
16:32 sd512 ah. right. ok thanks
16:33 asdf hmm, but i think you mean, your program also does updates by POST? and you send a POST directly to the updeated resource, and that means "update", not "create"?
16:34 asdf that's not really ideal, instead use PUT for updates (or PATCH if you want to support that)
16:34 sd512 ah, no, I am talking about resource creation
16:34 asdf ah, cool
17:16 timg___ joined #rest
17:22 nkoza joined #rest
17:31 whartung They should get a 403 -- unauthorized.
17:41 asdf shouldn't they get a 401, if some other user would be allowed to perform the action?
17:41 asdf i think that was the reasoning - "you can't do that, but some other account can, so go ahead and relog"
17:42 eschmidbauer__ left #rest
17:43 whartung yea, 401
17:44 asdf oh right, you said "unauthorized", not "forbidden" :)
17:44 whartung I mean, the two are kind of a mess
17:44 asdf i think with the reasoning above, there arent really many cases where 403 would be used
17:44 whartung yea
17:45 asdf because usually there's a superuser or something that you could potentially switch to
18:04 Coldblackice joined #rest
18:16 quimrsto_ joined #rest
21:18 quimrstorres joined #rest
21:18 quimrstorres joined #rest
21:31 tbsf joined #rest
21:34 quimrstorres joined #rest
22:00 quimrsto_ joined #rest
22:08 fuzzyhorns joined #rest
22:41 tbsf joined #rest
22:48 igitoor_ joined #rest
22:49 zama_ joined #rest
22:50 upasana- joined #rest
22:52 rxo_ joined #rest
22:52 jgornick_ joined #rest
22:52 impl_ joined #rest
22:52 pindonga` joined #rest
22:55 _longines_ joined #rest
23:00 igitoor_ joined #rest
23:00 zama_ joined #rest
23:01 quimrstorres joined #rest
23:32 tbsf joined #rest
23:35 fuzzyhorns joined #rest
23:36 tbsf joined #rest

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

https://trygvis.io/rest-wiki/