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

Forward port 10 - HST News Sitemap Component - does not parse propertyCriteria property correctly

    XMLWordPrintable

Details

    Description

      I am trying to use "propertyCriteria" property in sitemap for News Sitemap from Hippo Forge Sitemap Protocol Component[1]. Parameters that contains colon (:) symbol in parameter name can not be parsed - we get error message in the log "org.hippoecm.hst.core.component.HstComponentException: Criterion does not match pattern "property=condition" ".
      Parameter from documentation example[2] also does not work (hippostd:state=published).
      It seems that the problem is in org.onehippo.forge.sitemap.components.NewsSitemapFeed.java (line207) where regular expression for matching cafeterias is stored:
      Pattern propertyCriterionPattern = Pattern.compile("(\\w)\\s=\\s(
      w)"); [3]
      [1] http://sitemap.forge.onehippo.org/newssitemap.html
      [2] http://sitemap.forge.onehippo.org/newssitemap.html#Parameters
      [3] https://source.onehippo.com/browse/public/hippo-cms7/plugins/sitemap/trunk/component/src/main/java/org/onehippo/forge/sitemap/components/NewsSitemapFeed.java?r=47570#to207

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              llemos Luís Pedro Lemos (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: