Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Evan Jardine 108 posts 168 karma points
    Jun 08, 2011 @ 03:36
    Evan Jardine
    0

    Moving folders in media tree NullReferenceException

    When I try and move any sub-folders in a particular branch of the Media tree I am getting a NullReferenceException in the move dialog box.

    Media Section
    - Branch 1
    -- SubFolder1
    -- SubFolder2

    - Branch 2
    -- SubFolder1
    -- SubFolder2

    With a tree structure like this if I try and move SubFolder1 from Branch 1 anywhere the dialog box appears with the below stack trace.  Moving anything in Branch 2 works fine and I can move nodes around in that branch and into Branch 1.

    Stack Trace: 

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.dialogs.moveOrCopy.CheckPermissions(CMSNode node, IAction currentAction, Char actionLetter) +53
       umbraco.dialogs.moveOrCopy.ValidAction(Char actionLetter) +156
       umbraco.dialogs.moveOrCopy.Page_Load(Object sender, EventArgs e) +1440
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

     

    Version Information: 

    • .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
    • Umbraco 4.7.0

    Has anyone else seen this problem before?  I can't replicate it in a clean install.

    Regards

    Evan

  • Tim 15 posts 35 karma points
    Jun 14, 2011 @ 07:11
    Tim
    0

    Hey mate,

    Looks like the null ref is happening here: 

    umbraco.dialogs.moveOrCopy.CheckPermissions

    May be a shot in the dark but do the folders you're moving between have different / incorrect permission configurations?

  • Evan Jardine 108 posts 168 karma points
    Jun 15, 2011 @ 00:27
    Evan Jardine
    0

    Hi Tim

    The Media Folder permissions are all fine, it is actuly a problem when moving a 'Media Type' Folder in the tree.  Moving a sinle image or file works fine in all areas.

    Thanks

    Evan

  • Evan Jardine 108 posts 168 karma points
    Jun 28, 2011 @ 03:46
    Evan Jardine
    0

    I've been able to replicate this problem.  It seems to be a bug in the latest nightly builds of 4.7.1 that I've been testing.

    Loged on codeplex with details on how to replicate.

    http://umbraco.codeplex.com/workitem/30337

    Cheers

    Evan


  • Tim 15 posts 35 karma points
    Jun 28, 2011 @ 14:29
    Tim
    0

    Nice one!

    High five :)

Please Sign in or register to post replies

Write your reply to:

Draft