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)


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.

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.

The svn diff is highlighting what I changed back on my system for it to
work is attached.


Dave


-- 
David Morris
Research Assistant
School of Computing, Mathematics and Information Sciences,

Room 108
Watts Building
Lewes Road
University of Brighton
Bright BN2 4GJ
UK

+44 (0)1273 642917

IRC    : davemorris on irc.freenode.net
Jabber : [email protected]
Index: checkouts/code/opensg2/opensg2.0/opensg/Source/Base/Base/OSGPathHandler.cpp
===================================================================
--- checkouts/code/opensg2/opensg2.0/opensg/Source/Base/Base/OSGPathHandler.cpp	(revision 1810)
+++ checkouts/code/opensg2/opensg2.0/opensg/Source/Base/Base/OSGPathHandler.cpp	(working copy)
@@ -113,9 +113,9 @@
     {
         if((pType & TypeMask) == AbsPath)
         {
-            SINFO << "Check abs : " << tmpList.front() << std::endl;
+            SINFO << "Check abs : " << filename << std::endl;
 
-            if(File::tstAttr(tmpList.front().c_str(),
+            if(File::tstAttr(filename,
                              AccessFlags::IsReadable))
             {
                 returnValue.assign(fileName);

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core

Reply via email to