pat-lego / aem-debugging-cli

2 stars 3 forks source link

Have single location to show versions of all installed add-ons #1

Open johnb4 opened 2 years ago

johnb4 commented 2 years ago

Show versions of all installed add-ons. Add-ons such as Screens, Guides, Forms, etc.

pat-lego commented 2 years ago

One thing we could do parse the http://localhost:4502/crx/packmgr/list.jsp?_dc=1658179361354&_charset_=utf-8&includeVersions=true API and look for a package that name that would match one of the following definitions

And then the main package would have requiresRoot set to false since the main package is the root.

{
            "pid": "day/cq60/fd:adobe-aemfd-osx-pkg:6.0.434",
            "path": "/etc/packages/day/cq60/fd/adobe-aemfd-osx-pkg-6.0.434.zip",
            "name": "adobe-aemfd-osx-pkg",
            "downloadName": "adobe-aemfd-osx-pkg-6.0.434.zip",
            "group": "day/cq60/fd",
            "groupTitle": "day",
            "version": "6.0.434",
            "description": "The AEM Forms add-on package provides additional forms capability to AEM 6.5. Use this package to simplify the creation of adaptive forms and documents that support customer enrollments and other communications, and integrate them into your digital experiences. Transform complex transactions into simple, digital experiences - anytime, anywhere and on any device. This package must only be used with AEM 6.5.9 installation.",
            "thumbnail": "/crx/packmgr/thumbnail.jsp?_charset_=utf-8&path=%2fetc%2fpackages%2fday%2fcq60%2ffd%2fadobe-aemfd-osx-pkg-6.0.434.zip&ck=1658178747144",
            "buildCount": 0,
            "created": 1622006306789,
            "createdBy": "Adobe Systems Inc.",
            "lastUnpacked": 1658178763296,
            "lastUnpackedBy": "admin",
            "lastUnwrapped": 1658178747149,
            "size": 413773829,
            "hasSnapshot": true,
            "needsRewrap": false,
            "requiresRoot": false,
            "requiresRestart": true,
            "acHandling": "merge_preserve",
            "dependencies": [
                {
                    "name": "adobe/cq650/servicepack:aem-service-pkg:6.5.3",
                    "id": "adobe/cq650/servicepack:aem-service-pkg:6.5.9-1.0"
                }
            ],
            "resolved": true,
            "filter": [
                {
                    "root": "/etc/packages/day/cq60/fd/adobe-aemds-common-pkg-6.0.434.zip",
                    "rules": []
                },
                {
                    "root": "/etc/packages/day/cq60/fd/adobe-aemds-native-x86-osx-pkg-6.0.434.zip",
                    "rules": []
                }
            ],
            "screenshots": []
        },
johnb4 commented 2 years ago

Yes, that's a good idea. Until there is a proper solution from Engineering, this will suffice. Guides packages are named "com.adobe.fmdita" (at least as of latest 4.1). Here are the UUID and non-UUID whole package names: "com.adobe.fmdita-6.5-uuid-4.1.159", "com.adobe.fmdita-6.5-4.1.159.zip".