Getting suffixs like /0000189.3.json | Community
Skip to main content
Level 4
October 16, 2015
Solved

Getting suffixs like /0000189.3.json

  • October 16, 2015
  • 6 replies
  • 1844 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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.

6 replies

edubey
Level 10
October 16, 2015

Can you try 

suffix = slingRequest.getRequestPathInfo().getSuffix();

Level 4
October 16, 2015

Hi Praveen,

We have not done any customization to content finder.

Thanks!

Shehjad

edubey
Level 10
October 16, 2015

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

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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.

Level 4
October 16, 2015

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. frown

I really wish if there was a way to restrict these calls.

Level 3
November 4, 2015

We have confirmed this is indeed a product bug and DayCare ticket has now been raised.