Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3189

"NoSuchNodetypeException" in RecieveFilter when activating already published nodes for a separate repository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.2
    • 4.3.1
    • activation, core
    • None

      We have two jcr repositories, the default one and a repository for media(with custom nodetypes). I am publishing some medias (custom nodetype) from the author instance of a staging env (in the separated jcr repository) to the author instance of a production env.
      When i publish new contents everything goes fine, but when i publish modified contents i get an exception on the destination server:
      [gest-srv] ERROR 03.05.2010 12:44:06 info.magnolia.module.exchangesimple.ReceiveFilter ReceiveFilter.java(importOnExisting:444) – Exception caught
      {{javax.jcr.nodetype.NoSuchNodeTypeException:

      {http://www.magnolia.info/jcr/mgnl}

      media}}

      Looking at source code, there is a temporary import to the mgnlSystem workspace that resides in the default repository which have not the custom nodetypes declarations (registered in the media repository).
      Possible solutions?

      • getting the SystemContext hierarchyManager for the destination workspace instead of mgnlSystem
      • have a mgnlSystem ws in every repository mapped as mgnlSystem[repository name]
      • register custom nodetypes also on default repository

        Acceptance criteria

              manuelmolaschi Manuel Molaschi
              manuelmolaschi Manuel Molaschi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD