Uploaded image for project: '[Read Only] - Hippo Plugins'
  1. [Read Only] - Hippo Plugins
  2. HIPPLUG-1424

Taxonomy Labels show unicode characters in HST

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • None
    • Flagged

    Description

      The vanilla project can be downloaded from here
      https://drive.google.com/a/bloomreach.com/file/d/0B1Rc8rVAcDIlcjBmOUxJYzBkQjA/view?usp=sharing

      The class "org.onehippo.taxonomy.impl.CategoryInfoImpl" seem to be
      using properties are that are no longer contained by the node that is
      being accessed from.As a result, node names are returned when taxonomy names are accessed.

      For example, following node [1] has just one property "hippotaxonomy:name"
      [1] /content/taxonomies/newscategories/newscateories[3]/industry/conference_x002f_meeting_x002f_events/hippotaxonomy:categoryinfos/en
      of type "hippotaxonomy:categoryinfo"

      but the implementation of CategoryInfoImpl is getting "hippo:message"
      property (see code snippet below), which does not exist. the
      "this.getValueProvider()" resolved to be --> the node [1].

      public CategoryInfoImpl(Node jcrNode) throws ServiceException {
          super(jcrNode);
      
          this.language = this.getValueProvider().getString("hippo:language");
          this.name = this.getValueProvider().getString("hippo:message");
          this.synonyms =
      this.getValueProvider().getStrings(TaxonomyNodeTypes.HIPPOTAXONOMY_SYNONYMS);
          this.description =
      this.getValueProvider().getString(TaxonomyNodeTypes.HIPPOTAXONOMY_DESCRIPTION);
          if (synonyms == null) {
              synonyms = new String[0];
          }
      
          this.properties = this.getValueProvider().getProperties();
      }
      
      

      Following warnings are seen in console/terminal when running the project

      [INFO] [talledLocalContainer] 19.01.2017 11:49:17 WARN  http-nio-8080-exec-4 [CategoryImpl.<init>:93] Skipping child nodes that are not of type 'hippotaxonomy:category'. Primary node type is 'hippotaxonomy:categoryinfos'.
      [INFO] [talledLocalContainer] 19.01.2017 11:49:17 WARN  http-nio-8080-exec-4 [CategoryImpl.<init>:93] Skipping child nodes that are not of type 'hippotaxonomy:category'. Primary node type is 'hippotaxonomy:categoryinfos'.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              macharya Mahesh Acharya (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: