[Hawkular-dev] Revisit resource naming + resource types for Alpha4

Michael Burman miburman at redhat.com
Thu Jul 30 12:38:42 EDT 2015


Hi,

Why are we fighting encoding in 2015? Mainframes had these things solved in 1963. Resource identifier and resource separator are different things and JAX-RS has no issues with encoded URLs, it will automatically parse them and decode.

  - Micke

----- Original Message -----
From: "Heiko W.Rupp" <hrupp at redhat.com>
To: "Discussions around Hawkular development" <hawkular-dev at lists.jboss.org>
Sent: Thursday, July 30, 2015 6:43:09 PM
Subject: Re: [Hawkular-dev] Revisit resource naming + resource types for Alpha4

On 30 Jul 2015, at 16:36, Matt Wringe wrote:
> to a URL just needs to url encode the metrics id part.
>
> It can be frustrating to a user if ids become policed to be url safe.

Not sure I understand this.
The 2nd sentence says that the proposal of the 1st sentence
is frustrating. 

And take the / as an example - if you don't encode it, then
the Jax-rs mechanisms for 

GET /bla/{id}/foo

will not work if id has a literal / in it. => you need to make
it url-safe.

_______________________________________________
hawkular-dev mailing list
hawkular-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev


More information about the hawkular-dev mailing list