Conversation
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
Commits
|
❌ Test ResultsStatus: Some tests failed! 🔍 Click to view failed testsTest Coverage ReportOverall Coverage Summary
Coverage by File/Directory
Coverage report generated at 2026-03-26T22:30:05.169Z |
…ial creation fetchTemplateEntitlement() fetches the full template including apis with licenseConfigs, but never stored it on templateData. This left templateData.apis undefined, causing the /install endpoint to receive an empty apis array and fail with "Service CJA SDK requires selection of a product". Always call fetchTemplateEntitlement() in all auth flows to ensure apis data is available, and explicitly map only the required licenseConfig fields (id, productId, op) in the install request payload. Made-with: Cursor
5ce69d9 to
f06b91c
Compare
❌ Test ResultsStatus: Some tests failed! 🔍 Click to view failed testsTest Coverage ReportOverall Coverage Summary
Coverage by File/Directory
Coverage report generated at 2026-03-26T22:33:58.859Z |
timkim
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /install/{templateId}was called with an emptyapisarray ([]), causing the Console API to fail with"Service CJA SDK requires selection of a product"templateDatawas initialized with onlyid, sotemplateData.apiswas alwaysundefined.fetchTemplateEntitlement()fetches the full template (includingapiswithlicenseConfigs) but never stored it ontemplateDatafetchTemplateEntitlement()was also only called whenrequestAccessContainerexisted, so templates without Request Access config never had APIs populatedChanges
fetchTemplateEntitlement(): storedata.apisontemplateDataafter parsing the template responsehandleIMSCallback(),checkAlreadySignedIn(),renderPageAfterOrgChange: always callfetchTemplateEntitlement()regardless ofrequestAccessContainer, ensuringtemplateData.apisis populated before credential creationcreateCredential(): explicitly map firstlicenseConfigwithid,productId, andop: 'add'Test plan
apisarray withlicenseConfigs"Service CJA SDK requires selection of a product"errortemplateData.apistemplateData.apisMade with Cursor