wttech / CQ-Unix-Toolkit

CQ Unix Toolkit
46 stars 23 forks source link

cqcfg doesn't work correctly on AEM 6.1 #41

Open jwadolowski opened 8 years ago

jwadolowski commented 8 years ago

Here's an output of cqcfg command executed on my AEM 6.1 instance:

$ ~/projects/CQ-Unix-Toolkit/cqcfg -u admin -p admin -i http://localhost:4502 com.day.cq.dam.s7dam.common.S7damDamChangeEventListener  
PID          com.day.cq.dam.s7dam.common.S7damDamChangeEventListener
TITLE        Adobe CQ s7dam Dam Listener
DESCRIPTION  CQ s7dam Dam Listener for changes to Dam assets and responds with related S7 service operations
BUNDLE       Day Communique 5.6 DAM s7 Dam Integration (com.day.cq.dam.cq-dam-s7dam), Version 5.8.50

ID                                                                                                                                                                                                                            VALUE  NAME  VALUES  DESCRIPTION
"cq.dam.s7dam.damchangeeventlistener.enabled":{"name":"Enabled","optional":false,"is_set":true,"type":11,"value":false,"description":"Enable the Adobe CQ s7dam Dam Listener (cq.dam.s7dam.damchangeeventlistener.enabled)"}

To make debugging easier please find raw JSON output below:

$ ~/projects/CQ-Unix-Toolkit/cqcfg -u admin -p admin -i http://localhost:4502 -j com.day.cq.dam.s7dam.common.S7damDamChangeEventListener | python -mjson.tool
{
    "bundleLocation": "Day Communique 5.6 DAM s7 Dam Integration (com.day.cq.dam.cq-dam-s7dam), Version 5.8.50",
    "bundle_location": "jcrinstall:/libs/dam/install/cq-dam-s7dam-5.8.50.jar",
    "description": "CQ s7dam Dam Listener for changes to Dam assets and responds with related S7 service operations",
    "pid": "com.day.cq.dam.s7dam.common.S7damDamChangeEventListener",
    "properties": {
        "cq.dam.s7dam.damchangeeventlistener.enabled": {
            "description": "Enable the Adobe CQ s7dam Dam Listener (cq.dam.s7dam.damchangeeventlistener.enabled)",
            "is_set": true,
            "name": "Enabled",
            "optional": false,
            "type": 11,
            "value": false
        }
    },
    "service_location": "",
    "title": "Adobe CQ s7dam Dam Listener"
}

This is how the same config looks like on 6.0:

$ ~/projects/CQ-Unix-Toolkit/cqcfg -u admin -p admin -i http://localhost:6002 com.day.cq.dam.s7dam.common.S7damDamChangeEventListener                      
PID          com.day.cq.dam.s7dam.common.S7damDamChangeEventListener
TITLE        Adobe CQ s7dam Dam Listener
DESCRIPTION  CQ s7dam Dam Listener for changes to Dam assets and responds with related S7 service operations
BUNDLE

ID                                           VALUE  NAME     VALUES  DESCRIPTION
cq.dam.s7dam.damchangeeventlistener.enabled  true   Enabled

$ ~/projects/CQ-Unix-Toolkit/cqcfg -u admin -p admin -i http://localhost:6002 -j com.day.cq.dam.s7dam.common.S7damDamChangeEventListener | python -mjson.tool
{
    "description": "CQ s7dam Dam Listener for changes to Dam assets and responds with related S7 service operations",
    "pid": "com.day.cq.dam.s7dam.common.S7damDamChangeEventListener",
    "properties": {
        "cq.dam.s7dam.damchangeeventlistener.enabled": {
            "description": "Enable the Adobe CQ s7dam Dam Listener (cq.dam.s7dam.damchangeeventlistener.enabled)",
            "name": "Enabled",
            "type": 11,
            "value": "true"
        }
    },
    "title": "Adobe CQ s7dam Dam Listener"
}
kitarek commented 8 years ago

Hello,

The initial fix is in issue41 branch. However I haven't tested it yet against different instances.

Thanks for submitting this issue.