Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15560

TaxonomyClassificationInterceptor throws exception in case taxonomy field is inherited

    XMLWordPrintable

Details

    • 1
    • Flagged
    • Orion
    • Orion.Cycle7.Sprint1, Orion.Cycle7.Sprint2, Orion.Cycle7.Sprint3, Orion.Cycle2.Sprint3, Orion.Cycle3.Sprint, Orion.Cycle4.Sprint, Orion.Cycle5.Sprint
    • Small
    • Small (1-2)

    Description

      Suggestion to add field to the document directly doesn't seem to fix the issue. Looking at the code there are a TODO items listed for improvements...

      (see client description below)

      =======

       

      colleagues of mine that are working on upgrading the taxonomy structure in a new brXM version (see https://xmdocumentation.bloomreach.com/library/concepts/plugins/taxonomy/migrate-to-the-taxonomy-field.html) asked me to create a support case for the following problem:

      "We migrated the taxonomy field to the new structure in version 15.3.2 for both the document types and the documents. After migrating, we ran into the problem that an error message is thrown for all document types that include the new primitive taxonomy field.

      I looked into the implementation of yourorg.onehippo.taxonomy.contentbean.TaxonomyClassificationInterceptor and found out that it is searching for the taxonomy nodetypes to retrieve the taxonomy name. Unfortunately, the code is not working for document types where the taxonomy field is inherited from the parent. In this case, the following exception is thrown. Could you please provide a patch to fix this issue? Thanks in advance.

      [INFO] [talledLocalContainer] 2023-09-08 09:20:12,784 ERROR [TaxonomyClassificationInterceptor.resolveTaxonomyName:95] Error while retrieving taxonomy document
      [INFO] [talledLocalContainer] javax.jcr.RepositoryException: Document type node /hippo:namespaces/yourorg/ApplicationDocument cannot be processed.
      [INFO] [talledLocalContainer] at org.onehippo.taxonomy.contentbean.TaxonomyClassificationInterceptor.getFieldName(TaxonomyClassificationInterceptor.java:116) ~[hippo-plugin-taxonomy-hstclient-15.3.2.jar:15.3.2]
      [INFO] [talledLocalContainer] at org.onehippo.taxonomy.contentbean.TaxonomyClassificationInterceptor.resolveTaxonomyName(TaxonomyClassificationInterceptor.java:88) ~[hippo-plugin-taxonomy-hstclient-15.3.2.jar:15.3.2]
      [INFO] [talledLocalContainer] at org.onehippo.taxonomy.contentbean.TaxonomyClassificationInterceptor.(TaxonomyClassificationInterceptor.java:58) ~[hippo-plugin-taxonomy-hstclient-15.3.2.jar:15.3.2]"

      Attachments

        Activity

          People

            jhoffman Jeroen Hoffman
            mmilicevic Marijan Milicevic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: