hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@managesoft.com>
Subject normalizing a URI with ..'s in it ?
Date Wed, 23 Jul 2003 15:19:40 GMT
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



-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   ManageSoft GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'
          &&&&.
    &&&&&&&:

Mime
View raw message