http-extensions icon indicating copy to clipboard operation
http-extensions copied to clipboard

Server ignoring representation metadata

Open ioggstream opened this issue 1 year ago • 1 comments

Question

The consequences of a server ignoring representation metadata are not clear to me. Is this related to the fact that they are associated with the upload resource? OTOH, Content-Type and Content-Encoding are associated with the target resource.

Server MAY interpret this metadata or MAY ignore it.

https://github.com/httpwg/http-extensions/blame/9ecc41277598ece1ab372b9f8c141b1838783e56/draft-ietf-httpbis-resumable-upload.md#L276

Then, we have:

The server SHOULD respect representation metadata received during creation

ioggstream avatar Aug 28 '24 10:08 ioggstream

IIRC, the statement about ignoring metadata was originally intended for Content-Disposition. Clients can set this header to indicate a filename, but servers are not required to respect or process it.

But the statement doesn't add much value to the draft, so we can probably get rid of "Servers MAY interpret this metadata or MAY ignore it". Thanks for bringing this up!

Acconut avatar Sep 10 '24 16:09 Acconut

The sentence in question has been removed in https://github.com/httpwg/http-extensions/pull/3006. The new text doesn't mention how/if servers have to handle representation metadata. This leaves the decision up to the resource.

Thank you for bringing this up!

Acconut avatar Feb 28 '25 08:02 Acconut