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
Solved! Go to Solution.
This is a product bug related to one of the AEM Forms Content Finder tabs, specifically the Guide Data Model Tab (/libs/fd/af/extensions/contentfinder/GuideDataModelTab.js). This tab makes an AJAX call to determine if the tab should be shown or hidden. When it does this request, however, it doesn't take suffixes into account.
I would suggest getting in touch with DayCare to work up a workaround and/or permanent fix.
Also I have observed that this extra 3.json call only gets called only when we have cf# in the url.
Thus while loading the content finder frame it is making these calls.
I really wish if there was a way to restrict these calls.
Views
Replies
Total Likes
This is a product bug related to one of the AEM Forms Content Finder tabs, specifically the Guide Data Model Tab (/libs/fd/af/extensions/contentfinder/GuideDataModelTab.js). This tab makes an AJAX call to determine if the tab should be shown or hidden. When it does this request, however, it doesn't take suffixes into account.
I would suggest getting in touch with DayCare to work up a workaround and/or permanent fix.
Hi,
Have you customized any content finder tab or try to change its behavior?
Mean while take a look @ https://helpx.adobe.com/experience-manager/kb/HowToChangeContentFinderRefreshInterval.html
Views
Replies
Total Likes
Hi Praveen,
We have not done any customization to content finder.
Thanks!
Shehjad
Views
Replies
Total Likes
Can you try
suffix = slingRequest.getRequestPathInfo().getSuffix();
Views
Replies
Total Likes
We have confirmed this is indeed a product bug and DayCare ticket has now been raised.