Details
-
Bug
-
Status: Closed
-
Top
-
Resolution: Fixed
-
sitemap-1.07.00
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
- is a forward port of
-
HIPPLUG-1066 HST News Sitemap Component - does not parse propertyCriteria property correctly (patch attached)
- Closed
-
HIPPLUG-1103 Forward port 7.9 - HST News Sitemap Component - does not parse propertyCriteria property correctly
- Closed