Article View: news.software.nntp
Article #79388Re: 200 or 201 at initial connection?
From: Russ Allbery
Date: Sun, 31 Aug 2008 20:53
Date: Sun, 31 Aug 2008 20:53
35 lines
2840 bytes
2840 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes:
>> Yeah, this is the sort of thing I was thinking of when I had mentioned
>> cases where you don't know whether the user will be able to
>> authenticate or not. CAPABILITIES is much cleaner since it reflects
>> the current state. This is one of the reasons why relying on 200/201
>> is deprecated.
>
> I do not understand why the same problem does not arises for POST in
> CAPABILITIES: since we cannot "advertise POST in CAPABILITIES unless
> the user can POST right now without any additional authentication"
> (according to your previous message ih this thread), we need to know
> that.
>
> Python dynamic access groups for instance prevent us from knowing if
> POST should be put in the CAPABILITIES list.
Oh, hm. Now I see what you're getting at.
Dynamic authorization is a hard one for this, and I'm not sure we can do
any better than advertising POST despite the fact that it might always
fail. I think it's sort of in the same category as posting filters or "n"
mode groups -- the POST *capability* is present, but there are various
post-time checks that may or may not succeed at the time of a posting.
You're right, this isn't as different as I thought. CAPABILITIES will
need to be handled a similar way, since the client should not even attempt
a POST unless POST is advertised as a capability. If we want the browser
to attempt one, we have to advertise it.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<878wucq524.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mailReferences:
<g971md$r4v$1@news.trigofacile.com> <877ia0k58u.fsf@windlord.stanford.edu> <g9cchr$b66$1@news.trigofacile.com> <87fxomat3k.fsf@windlord.stanford.edu> <g9ddmo$itt$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <878wucq524.fsf@windlord.stanford.edu> Subject: Re: 200 or 201 at initial connection? Date: Sun, 31 Aug 2008 13:53:55 -0700 From: Russ Allbery <rra@stanford.edu> References: <g971md$r4v$1@news.trigofacile.com> <877ia0k58u.fsf@windlord.stanford.edu> <g9cchr$b66$1@news.trigofacile.com> <87fxomat3k.fsf@windlord.stanford.edu> <g9ddmo$itt$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 35 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.stanford.edu 1220216036 18253 171.64.19.147 (31 Aug 2008 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:an7Crj1pmzAfin34zB3eguWtca0=