wttech / CQ-Unix-Toolkit

CQ Unix Toolkit
46 stars 23 forks source link

cqcfgls doesn't list all configurations on AEM 6.1 #42

Open jwadolowski opened 8 years ago

jwadolowski commented 8 years ago

Just noticed that cqcfgls doesn't list all available configurations. For instance on AEM 6.1 there's a config called "Adobe CQ Media DPS Pages Update Handler" with PID com.adobe.cq.media.publishing.dps.impl.contentsync.DPSPagesUpdateHandler, but

$ /opt/scripts/CQ-Unix-Toolkit/cqcfgls -u admin -p admin -i http://localhost:4502 | grep com.adobe.cq.media.publishing.dps.impl.contentsync

returns 0 results.

To make sure I didn't miss anything I've double checked /system/console/components.json and /system/console/config/Configurations.nfo outputs, but didn't find this particular configuration.

Please find 2 screenshots below that proves that such config really exists:

osgi_list dps_config

jwadolowski commented 8 years ago

It's worth to mention that HTML markup of /system/console/configMgr contains configData JS variable that stores JSON object with all the configurations. Here's a shortened version:

{
    "fpids": [
        {
            "id": "com.adobe.cq.audit.purge.Scheduler", 
            "name": "Audit Log Purge Scheduler"
        }, 
        {
            "id": "com.adobe.cq.hc.ContentPackagesHealthCheck", 
            "name": "Content Packages Health Check "
        }, 
        {
            "id": "com.adobe.cq.social.activitystreams.listener.impl.ResourceActivityStreamProviderFactory", 
            "name": "AEM Communities Resource ActivityStreamProvider Factory"
        }, 
        {
            "id": "com.adobe.cq.social.datastore.as.impl.UGCCResourceProviderFactory", 
            "name": "AEM Communities Cloud Storage Resource Provider"
        }, 
        ...
       {
            "id": "org.apache.sling.startupfilter.impl.StartupFilterImpl", 
            "name": "Sling Startup Filter"
        }, 
        {
            "id": "org.apache.sling.tenant.internal.TenantProviderImpl", 
            "name": "Apache Sling Tenant Provider"
        }
    ], 
    "status": true
}