hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Glück <ortwin.glu...@nose.ch>
Subject Re: normalizing a URI with ..'s in it ?
Date Wed, 23 Jul 2003 15:29:09 GMT
Sounds like a bug to me. normalize should not change the 
absolute/relative type of an URL.

Odi

Marcus Crafter wrote:
> Hi All,
> 
> Hope all is well. I have a question to do with normalizing a URI with
> ..'s in it.
> 
> If I execute the following code:
> 
> URI u = new URI("my/relative/../../another/relative");
> u.normalize();
> u.getURI();
> 
> should the URI now be /another/relative or 'another/relative'
> 
> The code returns /another/relative but I was actually expecting 
> 'another/relative' since the original URI was without a leading /.
> 
> Was my expectation wrong or could this be a defect? Any ideas?
> 
> Cheers,
> 
> Marcus
> 
> 
> 

-- 
_________________________________________________________________
  NOSE applied intelligence ag
                                    [www]      http://www.nose.ch
  ortwin glück                      [email] ortwin.glueck@nose.ch
  hardturmstrasse 171               [pgp key]          0x81CF3416
  8005 zurich                       [office]      +41-1-277 57 35
  switzerland                       [fax]         +41-1-277 57 12


Mime
View raw message