Thread View: news.software.nntp
20 messages
20 total messages
Started by Eric A. Hall
Thu, 11 Apr 2002 07:05
comments on Jeremy's proposal
Author: Eric A. Hall
Date: Thu, 11 Apr 2002 07:05
Date: Thu, 11 Apr 2002 07:05
96 lines
5031 bytes
5031 bytes
Comments on http://www.exit109.com/~jeremy/news/binaries/multipart.html
General feeling is that it is certainly a well thought-out set of ideas.
Regarding the binary single-part stuff: The clustering of parameters into
the Content-Type header is a creative approach to the problem, but it
won't fly with the MIME people. You should try hard to find another way to
do this.
I'm not even really sure that it's necessary. If somebody sees a filename
they are interested in, the download agent can HEAD the articles to get
the metadata before the download starts.
If your objective here is to make it faster to gather summary data for
general purposes, define a command that actually achieves that. Mucking
with the MIME architecture is the wrong approach. You know this deep
inside already.
I'd also like to see an actual definition of an actual Content-Size header
field or parameter. People have shied away from this because of the EOL
issues with text, but it might be that you can do something here as part
of this effort.
Multipart/related: the use of multipart/related is a good idea. This
probably needs some testing to see how well it works in practice.
Charsets: the existing charset specs should be encouraged for use unless
and until they are changed. This means encouraging the use of 2047 and
2231 where appropriate.
Multipart binaries: I don't see the merit of providing the filename
parameter to Content-Type: application/file-fragment. The ID provides the
unique identifier, and the Content-Disposition provides a filename.
Also, please consider renaming the MD5 parameter to something like
File-MD5 so that people don't confuse it with the Content-MD5 entity
header field.
Should the Number and Total parameters be combined? EG, "Element=3/27" to
identify that this is part 3 of a 27-part posting. Either way, you should
also point out that this information won't always be used, since reposts
of fragments won't have the same numbers.
The MIME people will jump on you about having a type parameter. I would
suggest that you consider doing away with this altogether. The way this is
typically handled is to define an entity container in the first message.
Even though that model doesn't really work in Usenet for scanning for
specific types of files to download, you do need all of the parts for the
file to actually work, so having this stuff in the first message does
function as a model *after* you have downloaded everything. The real bitch
about this is that Usenet will gladly drop the first part (especially in a
heavily-loaded server with a FIFO queue). However, I can guarantee that it
is going to be a sore point. Be prepared to drop this.
Another advantage to this method is that the Content-MD5 can apply to the
entire file and to each part, since they have their own headers.
There is also some possibilities here in the area of a new
Content-Disposition parameter of "Combine" (or whatever) which may provide
relief for some of these issues. It may be that the byte-range stuff
should go here, as this would generalize the problem somewhat.
For example:
[first part]
Content-Type: application/frag
Content-Transfer-Encoding: yEnc
Content-Disposition: combine; filename=blah.mpeg; range=0xfoo-0xbar
Content-MD5: <this-part>
Etcetera: headers
Content-Type: video/mpeg
Content-Transfer-Encoding: binary
Content-MD5: <whole-file>
X-Content-Binary-Size: <whole-file size>
xxxx data xxxx
xxxx data xxxx
[second part]
Content-Type: application/frag
Content-Transfer-Encoding: yEnc
Content-Disposition: combine; range=0xfoo-0xbar
xxxx data xxxx
xxxx data xxxx
That is the model that the MIME folks will want to see, if history is any
kind of indicator.
--
Eric A. Hall http://www.ehsco.com/
Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: comments on Jeremy's proposal
Author: J.B. Moreno
Date: Thu, 11 Apr 2002 18:40
Date: Thu, 11 Apr 2002 18:40
42 lines
2237 bytes
2237 bytes
In article <3CB535C6.138D3BFB@ehsco.com>, Eric A. Hall <ehall@ehsco.com> wrote: > There is also some possibilities here in the area of a new > Content-Disposition parameter of "Combine" (or whatever) which may provide > relief for some of these issues. It may be that the byte-range stuff > should go here, as this would generalize the problem somewhat. > > For example: > > [first part] > Content-Type: application/frag > Content-Transfer-Encoding: yEnc > Content-Disposition: combine; filename=blah.mpeg; range=0xfoo-0xbar > Content-MD5: <this-part> > Etcetera: headers > > Content-Type: video/mpeg > Content-Transfer-Encoding: binary > Content-MD5: <whole-file> > X-Content-Binary-Size: <whole-file size> > > xxxx data xxxx > xxxx data xxxx > > [second part] > Content-Type: application/frag > Content-Transfer-Encoding: yEnc > Content-Disposition: combine; range=0xfoo-0xbar > > xxxx data xxxx > xxxx data xxxx > > That is the model that the MIME folks will want to see, if history is any > kind of indicator. This seems to indicate that you're using something like multi-part -- if so, that's not going to fly. -- J.B. Moreno
Re: comments on Jeremy's proposal
Author: Jeremy
Date: Thu, 11 Apr 2002 19:11
Date: Thu, 11 Apr 2002 19:11
119 lines
6383 bytes
6383 bytes
Eric A. Hall <ehall@ehsco.com> wrote: > Regarding the binary single-part stuff: The clustering of parameters into > the Content-Type header is a creative approach to the problem, but it > won't fly with the MIME people. You should try hard to find another way to > do this. > > I'm not even really sure that it's necessary. If somebody sees a filename > they are interested in, the download agent can HEAD the articles to get > the metadata before the download starts. That would be prohibitively expensive, particularly in a single-part group like a picture group, when you're dealing with information you really want for every file in the group (like the MD5 and the size). There's just no way someone is going to HEAD an entire picture group. > If your objective here is to make it faster to gather summary data for > general purposes, define a command that actually achieves that. Mucking > with the MIME architecture is the wrong approach. You know this deep > inside already. I prefer to think of it as improving the MIME architecture for a situation where you can't have access to all of the message headers, and where each additional header used incurs additional expense -- a situation which MIME as it stands does not address, but a situtaion in which MIME is now being used. > I'd also like to see an actual definition of an actual Content-Size header > field or parameter. People have shied away from this because of the EOL > issues with text, but it might be that you can do something here as part > of this effort. Would such a thing really be that important? By the time you have that header, you have the message, or at least the full headers, so you at least already have the post-encoding size of the message. At that point, is the pre-encoding size that important that it's worth a new header? Maybe it is. > Multipart binaries: I don't see the merit of providing the filename > parameter to Content-Type: application/file-fragment. The ID provides the > unique identifier, and the Content-Disposition provides a filename. The merit is that you don't have the Content-Disposition header when you're browsing the group, and needing to have it makes the operation twice as expensive and adds another header that server operators have to optimize retrieval of. So, for the filename, the alternative to doing something that probably isn't going to happen and which probably would kill the whole idea in practice is to do something which lots of implementations are already doing right now. The benefit of filename over ID or MD5 is that it is human-readable, and provides a means of showing a user what is there. > Should the Number and Total parameters be combined? EG, "Element=3/27" to > identify that this is part 3 of a 27-part posting. I was wondering about that in another thread. The sequence information is the least important of the metadata, so it might be worthwhile to make it as small as possible. But, it might not... > The MIME people will jump on you about having a type parameter. I would > suggest that you consider doing away with this altogether. The way this is > typically handled is to define an entity container in the first message. There may not *be* a "first message". > Even though that model doesn't really work in Usenet for scanning for > specific types of files to download, you do need all of the parts for the > file to actually work, so having this stuff in the first message does > function as a model *after* you have downloaded everything. Well, no, part of the whole point is that you *don't* need all of the parts for the file to work. You can miss several posts in a series, and get the data from another post of the same file, which may be a partial post of only the data required. So unless you define "first message" as "any message where the byte-offset is zero", you may never see the first message because it may be missing. Relying upon the first message in a series for non-crucial metadata is fine, but I would be hesitant to "hide" the really important stuff there. > Another advantage to this method is that the Content-MD5 can apply to the > entire file and to each part, since they have their own headers. Right. Content-MD5 would apply only to the single message (which is how it is defined), allowing detection of corrupt posts. > There is also some possibilities here in the area of a new > Content-Disposition parameter of "Combine" (or whatever) which may provide > relief for some of these issues. It may be that the byte-range stuff > should go here, as this would generalize the problem somewhat. > > For example: > > [first part] > Content-Type: application/frag > Content-Transfer-Encoding: yEnc > Content-Disposition: combine; filename=blah.mpeg; range=0xfoo-0xbar > Content-MD5: <this-part> > Etcetera: headers > > Content-Type: video/mpeg > Content-Transfer-Encoding: binary > Content-MD5: <whole-file> > X-Content-Binary-Size: <whole-file size> [...] > That is the model that the MIME folks will want to see, if history is any > kind of indicator. But it won't work, and wouldn't even be worth pursuing in that form. Again, you are requring twice the expense (and more from the server implementors) to get the initial metadata, and you're hiding the full-file-md5 (the most important piece of metadata, which the client needs pre-download for all the files) within the message body, where it will be entirely useless. -- Jeremy | jeremy@exit109.com
Re: comments on Jeremy's proposal
Author: Eric A. Hall
Date: Thu, 11 Apr 2002 19:19
Date: Thu, 11 Apr 2002 19:19
78 lines
3362 bytes
3362 bytes
"J.B. Moreno" wrote:
>
> In article <3CB535C6.138D3BFB@ehsco.com>,
> Eric A. Hall <ehall@ehsco.com> wrote:
> > [first part]
> > Content-Type: application/frag
> > Content-Transfer-Encoding: yEnc
> > Content-Disposition: combine; filename=blah.mpeg; range=0xfoo-0xbar
> > Content-MD5: <this-part>
> > Etcetera: headers
> >
> > Content-Type: video/mpeg
> > Content-Transfer-Encoding: binary
> > Content-MD5: <whole-file>
> > X-Content-Binary-Size: <whole-file size>
> >
> > xxxx data xxxx
> > xxxx data xxxx
> This seems to indicate that you're using something like multi-part --
> if so, that's not going to fly.
The nesting is similar to multipart but it's definitely not multipart.
This same model is used for message/partial and message/external-body,
where the top-level entity (the body of the message) is a container which
has an additional subordinate entity.
Message/partial:
[first portion]
From: foo
Subject: blah
Content-Type: message/partial
From: bar
Subject: blah
Content-Type: video/mpeg
Content-Transfer-Encoding: 8bit
xxxx data xxxx
xxxx data xxxx
[second portion]
From: foo
Subject: message from bar
Content-Type: message/partial
xxxx data xxxx
xxxx data xxxx
Message/external-body:
From: foo
Subject: remote data
Content-Type: message/external-body; access-type=blah
Content-type: video/mpeg
Content-Transfer-Encoding: binary
[data at remote location]
In both of those cases, the message body is not what people normally
consider to be a message, nor are they multiparts. They are nested
entities, where the body of the 822 message is a container entity that
references another subordinate entity.
It is important to remember that not all MIME objects are messages. Any
MIME entity can be sent through mail/news if (1) the necessary transfer
headers are appended to the top of the MIME headers, and (2) the data is
mail-safe (line lenths, chars, etc). Sending an app/frag entity through
mail/news can be handled in the same way.
--
Eric A. Hall http://www.ehsco.com/
Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: comments on Jeremy's proposal
Author: Eric A. Hall
Date: Thu, 11 Apr 2002 19:30
Date: Thu, 11 Apr 2002 19:30
25 lines
1872 bytes
1872 bytes
Jeremy wrote: > > Eric A. Hall <ehall@ehsco.com> wrote: > > That is the model that the MIME folks will want to see, if history > > is any kind of indicator. > > But it won't work, and wouldn't even be worth pursuing in that form. Trust me, I have said as much myself. However, there are some parts of this approach that can work, and there are some unique benefits to this approach as well. We should talk about this some at least. Also, the syntax doesn't have to be as rigid as I laid it out. The message/partial type certainly uses parameters in the content header, so the MIME people can't argue against that approach unless they also admit they were wrong, for example. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: comments on Jeremy's proposal
Author: Jeremy
Date: Thu, 11 Apr 2002 20:48
Date: Thu, 11 Apr 2002 20:48
17 lines
1679 bytes
1679 bytes
Eric A. Hall <ehall@ehsco.com> wrote: > Also, the syntax doesn't have to be as rigid as I laid it out. The > message/partial type certainly uses parameters in the content header, so > the MIME people can't argue against that approach unless they also admit > they were wrong, for example. Well, I don't see a problem with the parameters in application/file-fragment. It's a new type, so it can define its own paramters. What I can see causing controversy is the overloading of *existing* types by adding parameters to them for the single-part binaries. I think it's worth doing, but it is the most dubious part of my proposal and the part which most "bends" the MIME spec (using non-type-specific parameters in Content-Type). -- Jeremy | jeremy@exit109.com
Re: comments on Jeremy's proposal
Author: Juergen Helbing
Date: Fri, 12 Apr 2002 04:42
Date: Fri, 12 Apr 2002 04:42
21 lines
1196 bytes
1196 bytes
Jeremy <jeremy@exit109.com> wrote: >[...] >> That is the model that the MIME folks will want to see, if history is any >> kind of indicator. > >But it won't work, and wouldn't even be worth pursuing in that form. Dear Jeremey, welcome to the discussion with MIME people. As far as I see it _you_ are now in the same situation I was 9 months ago. (With 10 times the complexity) I wish you more luck than I had. -- Juergen
Re: comments on Jeremy's proposal
Author: Eric A. Hall
Date: Fri, 12 Apr 2002 07:21
Date: Fri, 12 Apr 2002 07:21
12 lines
1404 bytes
1404 bytes
Juergen Helbing wrote: > welcome to the discussion with MIME people. As far as I see it > _you_ are now in the same situation I was 9 months ago. Except that he's bothered to read the specs -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: comments on Jeremy's proposal
Author: Eric A. Hall
Date: Fri, 12 Apr 2002 07:53
Date: Fri, 12 Apr 2002 07:53
57 lines
3266 bytes
3266 bytes
"Eric A. Hall" wrote:
Having read and reviewed my own notes, there are some changes which should
be made to the suggested framework.
Most important of these is that a single byte-range attribute is defined
as a paramter to app/frag. Most of the other attributes are redundant.
I also think that the disposition type of "combine" suggested in the first
message is redundant (any app/frag has a disposition of combine, by
definition). Furthermore, I would go so far as to say that any
content-disposition header field associated with an app/frag entity is
nothing more than noise (only the reassembled object can have any kind of
handling, while the fragments only have a single handling of the implicit
"combine" value).
Note that the size of the fragment can be determined by the range values.
EG, if the range is 0x0000 - 0x00FF then this fragment is 255 bytes. This
means that the fragment does not need a distinct "Size" header field,
although there still needs to be a way to clue into the size of the
encapsulated entity. Furthermore, the use of a single "range" parameter
serves the purpose of the offset and length attributes. This is all just
for effeciency purposes, there are more questions here (such as, what size
values should be used).
[first part]
Content-Type: application/frag; byterange=0xfoo-0xbar
Content-Transfer-Encoding: yEnc
Content-MD5: <this-part>
Content-Type: video/mpeg
Content-Transfer-Encoding: binary
Content-MD5: <whole-file>
X-Content-Binary-Size: <whole-file>
Content-Disposition; attachment=blah.jpeg
xxxx data xxxx
xxxx data xxxx
[second part]
Content-Type: application/frag
Content-Transfer-Encoding: yEnc
xxxx data xxxx
xxxx data xxxx
I'll address the specific concerns in another message. For the record, the
above is much more suitable to mail environments than Usenet. Reliability,
completeness and speed are totally different across those environments.
This message is solely for the purpose of laying out one "purist" way of
doing this.
--
Eric A. Hall http://www.ehsco.com/
Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: comments on Jeremy's proposal
Author: Eric A. Hall
Date: Fri, 12 Apr 2002 08:38
Date: Fri, 12 Apr 2002 08:38
92 lines
5451 bytes
5451 bytes
Jeremy wrote:
>
> Eric A. Hall <ehall@ehsco.com> wrote:
[on the subject of redundant parameters for single-part binaries]
> > I'm not even really sure that it's necessary. If somebody sees a
> > filename they are interested in, the download agent can HEAD the
> > articles to get the metadata before the download starts.
>
> That would be prohibitively expensive, particularly in a single-part
> group like a picture group, when you're dealing with information you
> really want for every file in the group (like the MD5 and the size).
> There's just no way someone is going to HEAD an entire picture group.
I'm not suggesting that they HEAD every article. I'm suggesting that they
HEAD the articles they specifically want to download as part of a better
overall strategy.
Let's look at the normal practice here. Either the Subject header field
has the filename in it, or the subject header describes the data ("picture
of my poodle"), or the author is a known poster of quality material, or
*something* about that message makes the user think they want to download
it. In this regard, running HEAD on that article and getting information
like the size, filename, MD5 and so forth is a feature.
Essentially, my argument is that you should be encouraging implementations
to make better use of the features that are already there, rather than
reinventing the features that aren't being used. Jamming all of this into
the Content-Type header field is redundant with the existing headers *AND*
it violates the model. Give them more information and maybe they'll start
using it is all. It's not expensive to right-click on a message and "get
full headers".
[on the multipart model]
> > Multipart binaries: I don't see the merit of providing the filename
> > parameter to Content-Type: application/file-fragment. The ID provides
> > the unique identifier, and the Content-Disposition provides a
> > filename.
> needing to have it [content-disposition] makes the operation
> twice as expensive and adds another header that server operators have
> to optimize retrieval of. So, for the filename, the alternative to
> doing something that probably isn't going to happen and which probably
> would kill the whole idea in practice is to do something which lots of
> implementations are already doing right now.
There may be an argument here that a filename parameter to content-type
has meaning if the content-disposition is not specified, but that
content-disposition takes precedence if it is defined and discovered.
> The benefit of filename over ID or MD5 is that it is human-readable,
> and provides a means of showing a user what is there.
On this point, I just want a clarification that the filename does not
serve as an index point, excpet in some well-defined scenarios.
You also need to define the handling of reposted parts such that the user
agents know that they need to use the ID of the original posting rather
than making up a new one and relying on filename matches.
> > The MIME people will jump on you about having a type parameter. I
> > would suggest that you consider doing away with this altogether. The
> > way this is typically handled is to define an entity container in
> > the first message.
>
> There may not *be* a "first message".
> Relying upon the first message in a series for non-crucial metadata is
> fine, but I would be hesitant to "hide" the really important stuff
> there.
If you don't have the first part (or a reposted version of it), then you
don't have the file. Missing any part is going to be fatal, regardless of
which part it is. So the part *number* is not important.
I agree that putting important information in the first part makes it
somewhat difficult to figure out everything you've got, or worse, when
you've got all of the parts. It also introduces some exposure for attack
potential, in that somebody could repost the first part with a different
MD5 and thereby destroy all of the other parts. On the other hand, this is
also a feature to admins who have to deal with copyright issues.
Overall, I agree with you that the nested entity model won't work for
news. This ain't mail.
--
Eric A. Hall http://www.ehsco.com/
Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: comments on Jeremy's proposal
Author: Russ Allbery
Date: Fri, 12 Apr 2002 08:59
Date: Fri, 12 Apr 2002 08:59
19 lines
1825 bytes
1825 bytes
Juergen Helbing <archiver@i3w.com> writes:
> welcome to the discussion with MIME people. As far as I see it _you_ are
> now in the same situation I was 9 months ago. (With 10 times the
> complexity)
And while we're discussing things here, the "MIME people" on ietf-822 seem
to be wholeheartedly in favor of something along the lines of yEnc for
Usenet, think it would work fine as a CTE, and think that a CTE is
unquestionably the right way to go about that part of the puzzle.
Maybe you were dealing with the wrong set of MIME people?
--
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.
Re: comments on Jeremy's proposal
Author: Jeremy
Date: Fri, 12 Apr 2002 19:36
Date: Fri, 12 Apr 2002 19:36
15 lines
1500 bytes
1500 bytes
Juergen Helbing <archiver@i3w.com> wrote: > welcome to the discussion with MIME people. As far as I see it > _you_ are now in the same situation I was 9 months ago. > (With 10 times the complexity) > > I wish you more luck than I had. You read the discussion on the ietf-822 list, right? It was almost entirely positive, and I hadn't even joined the list yet at that point so I wasn't even present to make the case. -- Jeremy | jeremy@exit109.com
Re: comments on Jeremy's proposal
Author: Jeremy
Date: Fri, 12 Apr 2002 19:49
Date: Fri, 12 Apr 2002 19:49
94 lines
5651 bytes
5651 bytes
Eric A. Hall <ehall@ehsco.com> wrote:
>> That would be prohibitively expensive, particularly in a single-part
>> group like a picture group, when you're dealing with information you
>> really want for every file in the group (like the MD5 and the size).
>> There's just no way someone is going to HEAD an entire picture group.
>
> I'm not suggesting that they HEAD every article. I'm suggesting that they
> HEAD the articles they specifically want to download as part of a better
> overall strategy.
What I'm saying is that you need some of that metadata in order to decide
whether you want to download the post. In particular, the MD5 must be
available pre-download for every file in the group, so you can determine
if you already have it, or that two different posts are the same file.
The filename should also be available, because it is the human-readable
version of "what file is in this post", and is used by humans to make
the "shall I download" decision. You want those pieces of information
for *every* file in the group -- in a picture group, that means almost
every article in the group (unless perhaps the group is using my
"thumbnail post" idea, which would somewhat reduce the need for that).
You simply can't require a HEAD to get that information.
> Let's look at the normal practice here. Either the Subject header field
> has the filename in it, or the subject header describes the data ("picture
> of my poodle"), or the author is a known poster of quality material, or
> *something* about that message makes the user think they want to download
> it. In this regard, running HEAD on that article and getting information
> like the size, filename, MD5 and so forth is a feature.
No; in the picture groups, filenames are often used for this (it's probably
the single most-often used piece of data in making this decision). The MD5
could be used for a more-automated version of this.
> Essentially, my argument is that you should be encouraging implementations
> to make better use of the features that are already there, rather than
> reinventing the features that aren't being used. Jamming all of this into
> the Content-Type header field is redundant with the existing headers *AND*
> it violates the model. Give them more information and maybe they'll start
> using it is all. It's not expensive to right-click on a message and "get
> full headers".
But it *is* expensive to get full headers for every post in a group, which
is what I'm trying to avoid by not putting various bits of important data
into random headers.
[filename in content-type]
> There may be an argument here that a filename parameter to content-type
> has meaning if the content-disposition is not specified, but that
> content-disposition takes precedence if it is defined and discovered.
I think that's exactly what I wrote; if the name is present in the
Content-Disposition header, and is different, it takes precedence over
a name in Content-Type.
>> The benefit of filename over ID or MD5 is that it is human-readable,
>> and provides a means of showing a user what is there.
>
> On this point, I just want a clarification that the filename does not
> serve as an index point, excpet in some well-defined scenarios.
Okay, that makes sense. But you have to understand that it *is* being
used as an index point right now, and users will still want to see it
before deciding whether to download something. Posters changing filenames
is a big complaint in some picture groups, because then people can't tell
that it's stuff they already have.
> You also need to define the handling of reposted parts such that the user
> agents know that they need to use the ID of the original posting rather
> than making up a new one and relying on filename matches.
No, reposts use a different ID, but will have the same MD5. The MD5 is
what a client can use to match up a repost with an original series.
>> There may not *be* a "first message".
>>
>> Relying upon the first message in a series for non-crucial metadata is
>> fine, but I would be hesitant to "hide" the really important stuff
>> there.
>
> If you don't have the first part (or a reposted version of it), then you
> don't have the file.
Well, right, a repost of the same data will do -- which means that you
may never see the "first message" in the original series. And the whole
thing should still work anyway, as long as some other post contains the
appropriate data. But the metadata in that "first message" is going to
be a bit different -- it may have been posted by a different person,
for example.
--
Jeremy | jeremy@exit109.com
Re: comments on Jeremy's proposal [single-part]
Author: Eric A. Hall
Date: Fri, 12 Apr 2002 20:47
Date: Fri, 12 Apr 2002 20:47
31 lines
2196 bytes
2196 bytes
Jeremy wrote:
> in the picture groups, filenames are often used for this (it's probably
> the single most-often used piece of data in making this decision). The
> MD5 could be used for a more-automated version of this.
Okay, I don't use binary Usenet so I don't have working knowledge about
this particular model. Can you recommend a newsreader that I should be
using to get a feel for this?
The model I am thinking about it:
1) enter group
2) xover to build array
3) select article->head article for information
-or-
3) select article for download->head for stats to build download
dialog box, graph, etc.
Either of those will work using the existing headers. If things don't work
that way now and there's some reason why it isn't likely to work that way,
then I need to learn up on it.
--
Eric A. Hall http://www.ehsco.com/
Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: comments on Jeremy's proposal [multi-parts]
Author: Eric A. Hall
Date: Fri, 12 Apr 2002 20:52
Date: Fri, 12 Apr 2002 20:52
38 lines
2671 bytes
2671 bytes
Jeremy wrote: > > Eric A. Hall <ehall@ehsco.com> wrote: > >> There may not *be* a "first message". > >> > >> Relying upon the first message in a series for non-crucial metadata > >> is fine, but I would be hesitant to "hide" the really important > >> stuff there. > > > > If you don't have the first part (or a reposted version of it), then > > you don't have the file. > > Well, right, a repost of the same data will do -- which means that you > may never see the "first message" in the original series. And the whole > thing should still work anyway, as long as some other post contains the > appropriate data. But the metadata in that "first message" is going to > be a bit different -- it may have been posted by a different person, > for example. Right. So, just as somebody could nuke all of the parts by posting a bogus first-part with the metadata, MULTIPLE people could post the first part, and the user could choose the appropriate first part based on credibility, data-integrity, or whatever. Also, there is nothing about the *current* model that prevents people from nuking multipart posts, so this model isn't any worse than the current model (comparably anyway). The real problem here is the protocol. It is very difficult to extract the information from the subordinate entity header given the current protocol semnatics and options. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: comments on Jeremy's proposal [single-part]
Author: Jeremy
Date: Sat, 13 Apr 2002 08:13
Date: Sat, 13 Apr 2002 08:13
68 lines
3699 bytes
3699 bytes
Eric A. Hall <ehall@ehsco.com> wrote:
>> in the picture groups, filenames are often used for this (it's
>> probably the single most-often used piece of data in making this
>> decision). The MD5 could be used for a more-automated version of
>> this.
>
> Okay, I don't use binary Usenet so I don't have working knowledge about
> this particular model. Can you recommend a newsreader that I should be
> using to get a feel for this?
I don't really use it myself, but I do have the advantage of having quite
a lot of users who do, and I'm very available to my users so I hear from
them all the time.
A good way to get a feel for it is to read through some discussion groups
where the binary users hang out. alt.binaries.nospam.teenfem.d is a good
one (as long as you keep in mind that they can be a little extreme), as
they have some pretty detailed posting guidelines which are a good
reflection of what binary-group users want to see.
I think I've gotten more use out of the binary groups just testing various
things lately, than I ever have from just wanting to use them. :)
> The model I am thinking about it:
>
> 1) enter group
>
> 2) xover to build array
>
> 3) select article->head article for information
> -or-
>
> 3) select article for download->head for stats to build download
> dialog box, graph, etc.
The model I'm thinking about (eventually, assuming most or all of the
posts are done using "new" methods) would go something like:
1) Enter group.
2) XHDR Content-Type to build a list of what is available in the group.
This would use the filename as a human-readable tag for the files,
and the MD5 as a machine-readable one.
3) (Optional) XOVER on text articles in the group to build a list of
available text messages, probably to be presented in a different
window or whatever from the file list.
4) User wants more info about a post; you can HEAD it (or HEAD the
first article in the series), or XOVER it, to get whatever is
available there.
> Either of those will work using the existing headers. If things don't work
> that way now and there's some reason why it isn't likely to work that way,
> then I need to learn up on it.
Right now, newsreaders enter and index binary groups exactly the same way
they do it for text groups. I'm saying that this doesn't make any sense,
and leads to kludges like using Subject for the metadata just because it's
a free-form text field which happens to be there. Binary groups are used
in fundamentally different ways than text groups, so it makes sense to use
different methods to index and scan them. You're interested in what files
are available, not what Usenet articles are available.
--
Jeremy | jeremy@exit109.com
Re: comments on Jeremy's proposal
Author: Jeremy
Date: Sat, 13 Apr 2002 08:17
Date: Sat, 13 Apr 2002 08:17
25 lines
2034 bytes
2034 bytes
Eric A. Hall <ehall@ehsco.com> wrote: > Note that the size of the fragment can be determined by the range values. > EG, if the range is 0x0000 - 0x00FF then this fragment is 255 bytes. This > means that the fragment does not need a distinct "Size" header field, > although there still needs to be a way to clue into the size of the > encapsulated entity. Furthermore, the use of a single "range" parameter > serves the purpose of the offset and length attributes. This is all just > for effeciency purposes, there are more questions here (such as, what size > values should be used). When I was trying to decide between "start and end" and "start and length", given that any one of those values can be determined from the other two, I settled on using length rather than end because it provides a human readable indication of the size of the enclosed entity. I don't think that's too terribly important (since a newsreader can display the size given start and end values), but that tiny little advantage was what made the decision for me. Using a range would work too, of course. I do think that the values should be in decimal, though, to preserve some form of human readability. -- Jeremy | jeremy@exit109.com
Re: comments on Jeremy's proposal
Author: Joe Feser
Date: Sat, 13 Apr 2002 15:39
Date: Sat, 13 Apr 2002 15:39
27 lines
2263 bytes
2263 bytes
> When I was trying to decide between "start and end" and "start and length", > given that any one of those values can be determined from the other two, > I settled on using length rather than end because it provides a human > readable indication of the size of the enclosed entity. I don't think > that's too terribly important (since a newsreader can display the size > given start and end values), but that tiny little advantage was what made > the decision for me. > > Using a range would work too, of course. I do think that the values should > be in decimal, though, to preserve some form of human readability. > > -- > Jeremy | jeremy@exit109.com > No matter what, would the values be 1 based or 0 based? start = 0, start = 1 Joe
Re: comments on Jeremy's proposal
Author: Jeremy
Date: Sat, 13 Apr 2002 17:25
Date: Sat, 13 Apr 2002 17:25
14 lines
1352 bytes
1352 bytes
Joe Feser <nntp@fesersoft.com> wrote: > No matter what, would the values be 1 based or 0 based? > > start = 0, start = 1 That's on my page; zero-based, of course. One-based offsets are madness, and are essentially *begging* for off-by-one errors. Not to mention that virtually every other piece of software in existence which deals with ranges of data within files uses zero-based offsets. -- Jeremy | jeremy@exit109.com
Re: comments on Jeremy's proposal
Author: Joe Feser
Date: Sat, 13 Apr 2002 23:19
Date: Sat, 13 Apr 2002 23:19
24 lines
2320 bytes
2320 bytes
"Jeremy" <jeremy@exit109.com> wrote in message news:1018718745.831315@ok-corral.gunslinger.net... > Joe Feser <nntp@fesersoft.com> wrote: > > > No matter what, would the values be 1 based or 0 based? > > > > start = 0, start = 1 > > That's on my page; zero-based, of course. One-based offsets are madness, > and are essentially *begging* for off-by-one errors. Not to mention that > virtually every other piece of software in existence which deals with > ranges of data within files uses zero-based offsets. I missed that part, it was one of the bigger issues for me to work around when building the yEnc application in .net. Everything is zero based, so I had to keep subtracting or adding one to things. Joe
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads