ID 233266 - Objects load incorrectly in the Viewer when a cyclic symlink is included in a KATANA_RESOURCES directory

Follow

Problem summary
Lights, Cameras, PrimitiveCreate or geometry read in from Alembics will not show up in the Viewer in Katana 2.5+ if a broken symlink is present in a KATANA_RESOURCES directory. For alembic files and PrimitiveCreate only the bounding box is visible.
 
Customer reported version
Katana 2.5v3
 
Customer reported platform
Fedora 21 / Fedora 23
 
Steps to reproduce
 
1) Create a directory “katana/resources” and create a symlink linking foo.katana to foo.katana inside it using the following command:
 
ln -s foo.katana foo.katana
 
2) Add the path to the resources directory to KATANA_RESOURCES using
 
export KATANA_RESOURCES=path/to/katana/resources
 
3) Open Katana, add a PrimitiveCreate node and expand the Scene Graph to view it - only the bounding box will show up, the primitive will not load.
 
Workaround
Remove the broken symlink.
 
Reproduced by support
Reproduced in 2.5v1-v3 on Linux RHEL 6
Does not happen in versions below 2.5
 
Expected behaviour
The geometry should load in correctly even if an invalid symlink is present.
 
Actual behaviour
Only the bounding box of the geometry will show up.

    We're sorry to hear that

    Please tell us why