ModeShape/modeshape — pull request #358 by hchiorean (2012-04-24 10:07:19+00:00)
Title: Mode 1422 - Fixed the invalid ReferenceIntegrityException in relation with SNS

The issue was caused by the fact that SNS location changes are performed directly against the cached nodes, in the transient session, while the query results matches locations from the indexes against the transient locations, causing invalid nodes to be returned by the query results.

The fix was to make the query results try and locate the node by the UUID first (if such information is available) and only as a fallback, use the location directly.