#6279 CLI always sends default command version
Closed: Fixed Opened by dkupka.

Steps to reproduce:

[server] # ipa-server-install
add second version of some command e.g. ping/2
make the new version default
[server] # systemctl restart httpd.service
[server] # ipa -vv ping/1

Actual result:

ipa: INFO: trying https://server.example.com/ipa/json
ipa: INFO: Forwarding 'ping/2' to json server 'https://server.example.com/ipa/json'
ipa: INFO: Request: {
    "id": 0, 
    "method": "ping/2", 
    "params": [
        [], 
        {
            "version": "2.212"
        }
    ]
}
ipa: INFO: Response: {
    "error": null, 
    "id": 0, 
    "principal": "admin@EXAMPLE.COM", 
    "result": {
        "summary": "Ping version 2."
    }, 
    "version": "4.4.0.201608311132GITb30bc93"
}
---------------
Ping version 2.
---------------

Expected result:

ipa: INFO: trying https://server.example.com/ipa/json
ipa: INFO: Forwarding 'ping/1' to json server 'https://server.example.com/ipa/json'
ipa: INFO: Request: {
    "id": 0, 
    "method": "ping/1", 
    "params": [
        [], 
        {
            "version": "2.212"
        }
    ]
}
ipa: INFO: Response: {
    "error": null, 
    "id": 0, 
    "principal": "admin@EXAMPLE.COM", 
    "result": {
        "summary": "IPA server version 4.4.0.201608311055GIT5b9ca10. API version 2.212"
    }, 
    "version": "4.4.0.201608311055GIT5b9ca10"
}
------------------------------------------------------------------
IPA server version 4.4.0.201608311055GIT5b9ca10. API version 2.212
------------------------------------------------------------------

Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1373272

master:

  • a3d178b86ddff9335228d99fe06e8fc89a00235a cli: use full name when executing a command

ipa-4-4:

  • 136a649a9e1da26e28b7151af061f8094b0f1d22 cli: use full name when executing a command

Sorry, wrong ticket

Metadata Update from @dkupka:
- Issue assigned to jcholast
- Issue set to the milestone: FreeIPA 4.4.2

Metadata