acs-aem-commons icon indicating copy to clipboard operation
acs-aem-commons copied to clipboard

Unable to complete a Marketo Configuration. ?item= missing in Step 2

Open krishnaselvaraj opened this issue 2 years ago • 2 comments

Required Information

  • AEM Cloud Service Latest
  • [ ] ACS AEM Commons Version: _____
  • [ ] Reproducible on Latest? yes

Expected Behavior

When creating a cloud configuration for AEM Marketo integration using the ACS Commons connector, after providing the title and name for your configuration, upon clicking next you should be provided with a window to enter the Marketo Configuration details.

Actual Behavior

After providing a Title and Description for the Marketo Cloud Configuration, when clicking next we are served with an empty page that has the title as apps and is missing the configuration window where we provide the Marketo Configuration details. After saving and closing the incomplete configuration, when I navigate to the Marketo Cloud Configuration, I cant seem to find the Configuration that I created. Please check the video for more details.

Screen Shot 2022-03-31 at 7 50 10 AM

https://user-images.githubusercontent.com/93158262/161083986-ec16d59d-15f6-43ea-8dfe-c6943a811fff.mp4

Steps to Reproduce

  1. Install ACS Commons 5.2.0
  2. Try to set up Marketo Cloud Configuration in the local dev environment

Links

Links to related assets, e.g. content packages containing test components

krishnaselvaraj avatar Mar 31 '22 14:03 krishnaselvaraj

@klcodanr Could you please help us with this issue as we have a Go Live next week ?

krishnaselvaraj avatar Mar 31 '22 14:03 krishnaselvaraj

Hm, could this be a permissions issue? DO you have R/W under /conf?

I checked with the latest release of CS and was able to create the configuration successfully.

klcodanr avatar Apr 01 '22 04:04 klcodanr

@klcodanr I am encountering the same issue with v5.3.4 on a new site with MSM enabled.

This is showing in the logs:

POST /apps/acs-commons/content/cloudservice/console/_jcr_content/content/items/cloudconfiglist HTTP/1.1] com.adobe.granite.metrics.knownerrors.impl.ErrorLoggingComponentFilter Exception in component: category=CUSTOMER_CODE, resourceType=acs-commons/components/utilities/cloudconfig/cloudconfiglist, exceptionType=java.io.IOException, errorId=CUSTOMER, resource=/apps/acs-commons/content/cloudservice/console/jcr:content/content/items/cloudconfiglist, exceptionMessage = Parameter template must not be blank

Note: I am able to get to the Marketo cloud configs if I use a fresh author instance and fresh site built from the archetype (and a title/name without any spaces). Otherwise, existing sites have the issue reported here.

What could be causing this?

dporter-moveworks avatar Oct 19 '22 19:10 dporter-moveworks

@dporter-moveworks can you try running the following query:

SELECT * FROM [cq:Page] WHERE ISDESCENDANTNODE([/conf]) AND [jcr:content/cq:template]='/apps/acs-commons/templates/utilities/marketocloudconfig'

klcodanr avatar Oct 20 '22 17:10 klcodanr

Thanks for getting back to me @klcodanr The query shows no results. If I remove the second where clause (AND [jcr:content/cq:template]='/apps/acs-commons/templates/utilities/marketocloudconfig') I get a lot of results as expected, just as a query sanity check.

dporter-moveworks avatar Oct 20 '22 17:10 dporter-moveworks

Sure seems like it's just not creating the config. Probably swallowing an error somewhere.

Are you on aem-tech.slack.com? I'd like to do a screenshare if possible. If not could you have your browser network tab open and look for a POST to /apps/acs-commons/content/cloudservice/console/_jcr_content/content/items/cloudconfiglist

klcodanr avatar Oct 20 '22 18:10 klcodanr

@klcodanr I am not on aem-tech.slack.com, but I will jump tomorrow morning and reach out.

Thanks so much for the invite and engagement 🙏

dporter-moveworks avatar Oct 20 '22 19:10 dporter-moveworks

@klcodanr sorry to post this here, but I am unable to join that slack per the following message:

You can use any account with the domain:
argildx.com
argildx.us
3sharecorp.com
6dglobal.com
headwire.com
hoodoo.digital
Don’t have an email address from one of those domains?
Contact the workspace administrator at AEM-Tech for an invitation.

dporter-moveworks avatar Oct 20 '22 19:10 dporter-moveworks

@klcodanr thanks for your patience. Below is a screenshot of the POST request to the endpoint you mentioned. The template parameter is empty.

Monosnap Create Cloud Configuration 2022-10-25 14-37-34

dporter-moveworks avatar Oct 25 '22 18:10 dporter-moveworks

Hm, interesting what's the URL for the Create Cloud Configuration page? It should be using the suffix of that page as the template.

klcodanr avatar Oct 26 '22 17:10 klcodanr

# Tools > Cloud Services > Marketo
/apps/acs-commons/content/cloudservice/console.html/apps/acs-commons/templates/utilities/marketocloudconfig
# Create
/apps/acs-commons/content/cloudservice/create/

dporter-moveworks avatar Oct 26 '22 17:10 dporter-moveworks

@dporter-moveworks what are your permissions on /apps/acs-commons/templates/utilities/marketocloudconfig, if you can't read, could you update your ACLs to enable read on that path?

klcodanr avatar Oct 26 '22 17:10 klcodanr

Full admin. I am encountering this issue locally with the AEM SDK as well as in dev/stage/prod instances on AEMaaCS. If I attempt to add a configuration using a fresh archetype project instead of my official project, no issues. I realize that means something in my official project code is the culprit, but I am unclear what that could be. It seems odd that a configuration elsewhere in a project would have this effect, but stranger things happen...

dporter-moveworks avatar Oct 26 '22 17:10 dporter-moveworks

@klcodanr I ensured that the local AEM admin user was added to the administrators group, and that the administrators group has jcr:all on path /apps/acs-commons/templates/utilities/marketocloudconfig.

The issues persist. Further, after logging out I am unable to log back in, and have to clear the crx-quickstart directory for an empty AEM instance... Related?

dporter-moveworks avatar Oct 26 '22 17:10 dporter-moveworks

I wouldn't think it's related. The strange thing is that wizard isn't "custom" code, it's just using common Granite UI components.

Do you have overlays or custom clientlib extensions? Any console errors in the browser when the wizard loads?

klcodanr avatar Oct 26 '22 18:10 klcodanr

No sir. No errors in the browser console, but there are backend errors citing "Parameter template must not be blank"

No custom clientlibs, only component JS/SCSS.

dporter-moveworks avatar Oct 26 '22 19:10 dporter-moveworks

@klcodanr @krishnaselvaraj Good news! With assistance from our Adobe Support team, the issue is caused by stripping the HTML extension from URLs via the LinkCheckerTransformerFactory service linkcheckertransformer.stripHtmltExtension setting being set to true.

When set to false (default) the configuration form loads as expected.

Hope this helps!

dporter-moveworks avatar Dec 02 '22 13:12 dporter-moveworks