Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2207

Initialize on sequencers are only called when automatic sequencing is used

    Details

    • Steps to Reproduce:
      Hide

      1) Setup a repository to use a manual Image Sequencer

      ...
      sequencing": {
        "sequencers": {
          "Image Sequencer": {
            "classname": "org.modeshape.sequencer.image.ImageMetadataSequencer"
          }
        }
      }
      ...
      

      2) Create a node/property which contains suitable binary data for the parsing with the image sequencer.

      3) Call the sequencer using ((JcrSession)jcrSession).sequence("Image Sequencer", resourceNode.getProperty("jcr:data"), newNode); (where the jcr:data is the property containing the binary data and newNode will be updated with the sequenced data.

      4) Verify that the sequencing fails due to the lack of supported node types (which should have been registered via initialize).

      Show
      1) Setup a repository to use a manual Image Sequencer ... sequencing": { "sequencers" : { "Image Sequencer" : { "classname" : "org.modeshape.sequencer.image.ImageMetadataSequencer" } } } ... 2) Create a node/property which contains suitable binary data for the parsing with the image sequencer. 3) Call the sequencer using ((JcrSession)jcrSession).sequence("Image Sequencer", resourceNode.getProperty("jcr:data"), newNode); (where the jcr:data is the property containing the binary data and newNode will be updated with the sequenced data. 4) Verify that the sequencing fails due to the lack of supported node types (which should have been registered via initialize).

      Description

      After removing the 'pathExpression' configuration property as per the documentation regarding sequencer configurations (https://docs.jboss.org/author/display/MODE/Sequencing#Sequencing-ManualSequencers). It seems as though the 'initialize' method is never invoked on the manual sequencer.(org.modeshape.jcr.Sequencer:136)

      This was tested using the image sequencer (which loads node definitions on initialize)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rhauch Randall Hauch
                Reporter:
                bjconlan Benjamin Conlan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: