Aleksander Slominski wrote:
> James M Snell wrote:
>> Aleksander Slominski wrote:
>>   
> 
> <snip/>
>>> should Location header point to atom:entry or actual binary resource (as
>>> in section 12)?  (it was already asked but i could not find a definitive
>>> answer http://www.imc.org/atom-protocol/mail-archive/msg04577.html )
>>>     
> wow! that is more complicated than i have imagined :) but very useful to
> have it so detailed when implementing media collection.
> 

The example I provided is more detailed than is minimally required by
the spec.  Also, keep in mind that the example only shows the behavior
of media collections.  Entry collections operate a bit differently.

> how do you distinguish between read-only and editable binary
> representation of resource? it seems that both are have "/media/abc123"
> in this example?
> 

You don't really.  APP has no way of identifying read only resources in
metadata.  The only way to determine if a resource is read only is to
attempt to perform an operation on it.  If it fails, it's possible that
it failed because it was read only.  (this is something I'd like to see
fixed)

> also it seems that in step O. it magically transformed <content
> type="application/atom+xml" src="/media/abc123"/> into <content
> type="image/png" src="/media/abc123"/> ? is it the only way to do it?
> 

Not magically. Keep in mind that this is a media resource.  In other
words, the member can be anything. You can even change types during an
update operation.  I threw that in to illustrate the point that in media
collections, the type of the resource doesn't matter.

> i thought that editable media resource would be identified with <link
> rel="edit" type="image/png" href="/media/abc123.edit.png" /> besides
> editable metadata <link rel="edit" href="/media/abc123.edit" /> ?
> 

That's what I wanted, but that's not the case.  For some reason I have
yet to fully understand, the WG seems to have decided that media
collections should work differently than entry collections and use
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]"edit"].

The Way APP defines it:

 <entry>
   ...
   <link rel="edit" type="application/atom+xml" href="foo.atom" />
   <content type="image/png" src="foo.png" />
 </entry>

The Way it should be (IMHO)

  <entry>
    ...
    <link rel="edit" type="application/atom+xml" href="foo.atom" />
    <link rel="edit" type="image/png" href="foo.png" />
    ...
  </entry>

- James

Reply via email to