Getting suffixs like /0000189.3.json
Hi All,
I am building a component which reads suffix from url and then use that as input for component.
So when we have a url like this /content/virtual-sites/baseStore/catalog/en/secure/order-summary.html/00001114
It is making so many below request. Problem is now that when the page loads and to read suffix i request.getRequestPathInfo().getSuffix() return /00001114.3.json and thus in my code I have to put ugly check and parse it to a proper value.
Looking at below logs I get idea it is happening because of my parsys, and sling understand them as star resource . Is there a way to fix this issue by some configuration
01.10.2015 13:32:51.446 *WARN* [0:0:0:0:0:0:0:1 [1443702771418] GET /content/virtual-sites/baseStore/catalog/en/secure/order-summary.html/00001114 HTTP/1.1] com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl StarResource given at /content/virtual-sites/baseStore/catalog/en/secure/order-summary/jcr:content/par-header/*: no parent: no LiveCopy
01.10.2015 13:32:51.613 *WARN* [0:0:0:0:0:0:0:1 [1443702771418] GET /content/virtual-sites/baseStore/catalog/en/secure/order-summary.html/00001114 HTTP/1.1] com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl StarResource given at /content/virtual-sites/baseStore/catalog/en/secure/order-summary/jcr:content/par-footer/*: no parent: no LiveCopy
01.10.2015 13:32:51.614 *WARN* [0:0:0:0:0:0:0:1 [1443702771418] GET /content/virtual-sites/baseStore/catalog/en/secure/order-summary.html/00001114 HTTP/1.1] com.adobe.acs.commons.designer.impl.DesignHtmlLibraryManagerImpl Could not find resource: /etc/designs/default/jcr:content/clientlibs/body
01.10.2015 13:32:52.286 *WARN* [0:0:0:0:0:0:0:1 [1443702772265] GET /content/virtual-sites/baseStore/catalog/en/secure/order-summary.html/00001114.3.json HTTP/1.1] com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl StarResource given at /content/virtual-sites/baseStore/catalog/en/secure/order-summary/jcr:content/par-header/*: no parent: no LiveCopy
01.10.2015 13:32:52.442 *WARN* [0:0:0:0:0:0:0:1 [1443702772265] GET /content/virtual-sites/baseStore/catalog/en/secure/order-summary.html/00001114.3.json HTTP/1.1] com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl StarResource given at /content/virtual-sites/baseStore/catalog/en/secure/order-summary/jcr:content/par-footer/*: no parent: no LiveCopy
01.10.2015 13:32:52.443 *WARN* [0:0:0:0:0:0:0:1 [1443702772265] GET /content/virtual-sites/baseStore/catalog/en/secure/order-summary.html/00001114.3.json HTTP/1.1] com.adobe.acs.commons.designer.impl.DesignHtmlLibraryManagerImpl Could not find resource: /etc/designs/default/jcr:content/clientlibs/body
Code from LiveCopyManagerImpl
private LiveCopyManagerImpl.LiveCopyImpl getContainingLiveCopy(Resource resource, ResourceResolver resolver)
throws RepositoryException, WCMException
{
assert (resource != null);
if (ResourceUtil.isStarResource(resource))
{
String parentPath = resource.getPath();
resource = resource.getParent();
if (resource == null)
{
log.warn("StarResource given at {}: no parent: no LiveCopy", parentPath);
return null;
}
}
public static boolean isStarResource(Resource res)
{
return res.getPath().endsWith("/*");
}
Any help on this would be hugely appreciated.
Kind regards,
Shehjad