Have you tried this on a clean umbraco install? If so, do you mind adding this as a work item on Codeplex? Please include all relevant info (as you've done here)
Working on a clean local install, there is no issue, nodes are deleted correctly, so mustbe something else. Trying to find out issue. Maybe some package? I'll keep searching and post updates here.
Well, I think i've got the solution, thanks to Tim for pointing me in the right direction. I'll post this bug to the umbsearch2 project.
I think the problem is caused by removing the image from the node. That's no problem, but when you would like to remove the node from the tree, the mediaIndexer is looking for the file which does not exist, so the LastIndexof("\\") is the umbraco directory, which will be deleted.
Rebuild the searcher but removed the Media_BeforeDelete handler. Now iot's working fine.
I am very sorry for this nasty bug. I changed the code. When I have time I will create a new package. For the moment you have to dowload the source code.
this also happened to me, now I've updated UmbSearch2 from the latest source and I hope the umbraco folder won't be deleted again. But before the umbraco folder was deleted, another strange thing happened. When the client was adding content to the website, after creating a node (so they assume, I couldn't reproduce this) all the images belonging to a different node were gone. The media folders were still there, so were the thumbnails, just the original files were gone. Can this also be related to UmbSearch2?
I've noticed a bug when saving and deleting a folder node within the Media section. In both cases the UmbSearch2 code is looking to index (or to remove from the index) the node and try to access the properties "umbracoExtension" and "umbracoFile". As these properties does not exist for a media folder node, it crashes and as a result it's not possible to delete a media folder.
To fix this issue I've just added a couple of test statements to MediaIndexer.cs (delete event) and Indexer.cs (save event) as following:
MediaIndexer.cs, line 17:
public static void Media_BeforeDelete(Media sender, umbraco.cms.businesslogic.DeleteEventArgs e) { if (sender.getProperty("umbracoFile") != null) { // delete file string relFilePath = sender.getProperty("umbracoFile").Value.ToString();
Finally I got some time to update the UmbSearch2 package. Though this bug was already fixed in the code I finally created a new package. You can download v1.3 from http://umbsearch2.codeplex.com
Very scary problem when deleting empty Media node
I've a weird problem when deleting a media node. I can reproduce this issue:
I'm I the only one with this problem, am i missing some files? everything is working fine. Just this 'minor' issue.
Some more info, running latest version of Umbraco(umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657))
Packages installed:
Hi Folkert,
Have you tried this on a clean umbraco install? If so, do you mind adding this as a work item on Codeplex? Please include all relevant info (as you've done here)
TIA,
/Dirk
OK, i'll make a clean install local and try to reproduce this.
Working on a clean local install, there is no issue, nodes are deleted correctly, so mustbe something else.
Trying to find out issue. Maybe some package? I'll keep searching and post updates here.
Comment author was deleted
Hi, I think it might be related to umbsearch2 (this is the second case of the problem I see and both had umbsearch2 installed).
Ok, thanks for the input, I can focus on umsearch. While im just indexing nodes and no media items, I can remove all those usages.
Well, this is indeed a dangerous operation:
Umbsearch2
[mediaIndexer.cs]
Well, I think i've got the solution, thanks to Tim for pointing me in the right direction. I'll post this bug to the umbsearch2 project.
I think the problem is caused by removing the image from the node. That's no problem, but when you would like to remove the node from the tree, the mediaIndexer is looking for the file which does not exist, so the LastIndexof("\\") is the umbraco directory, which will be deleted.
Rebuild the searcher but removed the Media_BeforeDelete handler. Now iot's working fine.
Hi guys,
I am very sorry for this nasty bug. I changed the code. When I have time I will create a new package. For the moment you have to dowload the source code.
Thanx, application is still in development, so solved in time...;-)
Hi,
this also happened to me, now I've updated UmbSearch2 from the latest source and I hope the umbraco folder won't be deleted again. But before the umbraco folder was deleted, another strange thing happened. When the client was adding content to the website, after creating a node (so they assume, I couldn't reproduce this) all the images belonging to a different node were gone. The media folders were still there, so were the thumbnails, just the original files were gone. Can this also be related to UmbSearch2?
Hi guys,
I've noticed a bug when saving and deleting a folder node within the Media section. In both cases the UmbSearch2 code is looking to index (or to remove from the index) the node and try to access the properties "umbracoExtension" and "umbracoFile". As these properties does not exist for a media folder node, it crashes and as a result it's not possible to delete a media folder.
To fix this issue I've just added a couple of test statements to MediaIndexer.cs (delete event) and Indexer.cs (save event) as following:
MediaIndexer.cs, line 17:
Indexer.cs, line 107:
Hope it helps,
Julien
Any idea of when this might be fixed? We just experienced this on a site we manage that uses UmbSearch2.
Thanks
Finally I got some time to update the UmbSearch2 package. Though this bug was already fixed in the code I finally created a new package. You can download v1.3 from http://umbsearch2.codeplex.com
Thanks Hans! Really appreciate the effort!
is working on a reply...