{"thread":{"id":"24985","subject":"question on service commands in http-backend.c","startedAt":"2010-09-05T15:29:10Z","lastAt":"2010-09-05T21:20:05Z","messageCount":2,"participants":["Sitaram Chamarty","Shawn Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"149969","messageId":"AANLkTikH5yzHBA_KO_aMFn6bp3LnMS40S_c3P1QQO4gj@mail.gmail.com","threadId":"24985","inReplyTo":null,"subject":"question on service commands in http-backend.c","fromName":"Sitaram Chamarty","fromEmail":"sitaramc@gmail.com","sentAt":"2010-09-05T15:29:10Z","receivedAt":"2010-09-05T15:29:10Z","isPatch":false,"sender":{"key":"sitaramc@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43316?v=4"},"body":"Hi,\n\nShort version: can I assume that, of all the service commands [I\nassume that's what they're called] in the services[] array in\nhttp-backend.c (approx line 530), only 'git-receive-pack' represents a\n*write* attempt?\n\nLong version: I just managed to fixup gitolite so it can be used with\nsmart http also, and after all that was done I got to wondering about\nthis.  It matters to gitolite because it needs to recognise whether\nthe user is trying to perform a write or a read so it can make the\ncorrect access control decision.\n\nWith ssh it was very simple: you only had 3 command\n(git-upload-archive, git-upload-pack, git-receive-pack) and the first\n2 are \"read\"s.\n\nAnd yes, I do notice that these new ones are all \"GET\" so it is hardly\nlikely they'd be writes -- just wanted to make sure...\n\nThanks,\n\n-- \nSitaram\n"},{"id":"150002","messageId":"AANLkTikjvWpKmf6MP3-=US06XiWkR5cOwHVfVrNUme3w@mail.gmail.com","threadId":"24985","inReplyTo":"AANLkTikH5yzHBA_KO_aMFn6bp3LnMS40S_c3P1QQO4gj@mail.gmail.com","subject":"Re: question on service commands in http-backend.c","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2010-09-05T21:20:05Z","receivedAt":"2010-09-05T21:20:05Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"On Sun, Sep 5, 2010 at 8:29 AM, Sitaram Chamarty <sitaramc@gmail.com> wrote:\n> Short version: can I assume that, of all the service commands [I\n> assume that's what they're called] in the services[] array in\n> http-backend.c (approx line 530), only 'git-receive-pack' represents a\n> *write* attempt?\n\nCorrect.\n\n> And yes, I do notice that these new ones are all \"GET\" so it is hardly\n> likely they'd be writes -- just wanted to make sure...\n\nRight.  :-)\n\n-- \nShawn.\n"}]}