Mysterious behaviour of the AutoRoutePartHandler while removing draft taxonomy terms

Feb 22, 2013 at 6:28 PM
Edited Feb 22, 2013 at 6:47 PM
I'm building a module that lets you to import Taxonomies from external data feeds.

Part of its workflow is to allow you to preview the imported terms to choose whether to reject the terms, or publish them.

It now works, but I had some odd behaviour with the AutoRoutePartHandler when removing draft taxonomy terms.

Have a look at my stackoverflow post for the background.

Something strange seems to be happening at the database level which I can't really work out, but I'm still new to Orchard.

I've solved my problem with a workaround, but there seems to be some code smell here around draft items and the AutoRoutePart handler?

If anyone is interested enough to look at the prolem, the full module code is Available HERE.

You will also need to install the latest default branch version of Contrib.Taxonomies, not the one from the gallery.

(If you just want it to work, look for the comment "// !! uncomment these lines to make the Reject and then Publish workflow work !!")