the MigrationUtil.getAbsolutePath() method should return null if/when path can't be resolved and calling class should check result for null. If you return invalid path, later call to session.itemExists(invalidPath) will end up unnecessarily w/ exception. Also inside of the method when going up over ../ you should check whether you are not already on the root level and stop iterating and return null as a result since path is obviously invalid.

Change By: Jan Haderka (07/Feb/13 8:36 AM)
Resolution: Fixed
Status: Resolved Reopened
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to