jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: Hypermedia - Take 2

From: Markus KARG <markus_at_headcrashing.eu>
Date: Tue, 2 Aug 2011 20:27:28 +0200

> >> Finding broken client implementations should not guide new
> specifications. (Errm .... reminds me of HTML5 WG discussions...)
> >
> > Jan,
> >
> > The way I understand it, Sergey is just supporting the idea to make
> the absolute references a default option in JAX-RS
> > API, so that by default the API can support also (potential) ill-
> behaved clients.
>
> I do not think that ill-behaved clients should guide design decisions.
> Cluttering all my payload up with redundant information per default
> only increases message size (maybe even significantly - in contexts
> with only few textual data, you can easily double the message size).

+1

> > Such behavior is IMO a variation to
> > Postel's Law.
>
> I'd say, that Postel's law emphasizes to fix the *client* to be liberal
> in what it accepts and not to code the server to code with client
> defects in mind.
>
>
> > Do you have any particular concerns with this?
>
> Yes: really unnecessary payload increase as a default. Seems more
> logical to make absolute URI references sth that has to be turned *on*
> explicitly.

+1