Hello Dave,

[email protected] wrote:
> I've tried registering this a new ticket on trac however it keeps on
> getting rejected as spam.  (I guess the settings are bit high since I
> was logged in as well)

hm, normally being logged in does the trick, not sure why it did not 
work for you.

> Priority  : minor
> Component : System (OSGBase)
> Version   : 2.0
> 
> 
> In OpenSG 1.8 a filename could contain a ':' and still be loaded.  For
> example the full file path of "/home/dave/test:filename.wrl" could be
> loaded.  However in version 2 it checks if a file exists by seeing if it
> can read "/home/dave/test" which doesn't necessary exist.

well, as you certainly know ':' is used as path separator on linux so 
when attempting to resolve the path it thinks it is handed a list of 
paths instead and splits at the ':'.

> Looking back over the changes between 1.8 and 2.0 I've worked out what
> changed.  Changing it back works as expected however I don't know why it
> was changed in the first place, so it may need fixing else where instead
> of reverting the change.

yes, I think you need to escape the ':' in the path, i.e. pass something 
like "/home/dave/test\:filename.wrl" and the PathHandler has to check if 
the path separator is actually escaped before splitting.
Hm, perhaps the path handler should be rewritten with boost filesystem, 
I'd assume that would take care of a lot of nasty cases, although 
offhand I don't know if they have support for path lists.

Anyway, thanks for the report, I've flagged it in my inbox so it does 
not get forgotten.

        Cheers,
                Carsten


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core

Reply via email to