users@jsr311.java.net

remove double slashes from URI?

From: André Dietisheim <andre.dietisheim_at_trialox.org>
Date: Tue, 13 Apr 2010 17:32:25 +0200

Hi!

we currently use jax-rs in our product and I came across the pretty
frequent case where I expected an URI with double slashes to be
equivalent to an URI with a single slash

ex.
http://mydomain/resource
http://mydomain//resource

Jersey currently does not treat both URI to be equivalent.
Reading the jax-rs specs I got redirected to RFC3986
(http://www.ietf.org/rfc/rfc3986.txt). I tend to pretend that URI
normalization (specially section 6.2.3) is to be read that // may be
normalized to /.
I'd highly appreciate any inputs, corrections to this topic.

Thanks in advance
André