vcd-cli icon indicating copy to clipboard operation
vcd-cli copied to clipboard

vcd-cli and org case sensitivity

Open tsugliani opened this issue 8 years ago • 1 comments

Small issue we found out:

root@cse [ ~ ]# vcd login vcd.fqdn.com DEMO admin --password 'secretpassword' -i -w
admin logged in, org: 'DEMO', vdc: 'OvDC-PAYG-01'
root@cse [ ~ ]# vcd vdc list
in_use    name          org
--------  ------------  -----
True      OvDC-PAYG-01  DEMO
root@cse [ ~ ]# vcd login vcd.fqdn.com demo admin --password 'secretpassword' -i -w
admin logged in, org: 'demo', vdc: 'OvDC-PAYG-01'
root@cse [ ~ ]# vcd vdc list

root@cse [ ~ ]# vcd login vcd.fqdn.com DEMO admin --password 'secretpassword' -i -w
admin logged in, org: 'DEMO', vdc: 'OvDC-PAYG-01'
root@cse [ ~ ]# vcd vdc list
in_use    name          org
--------  ------------  -----
True      OvDC-PAYG-01  DEMO

That's because I suspect when you create the authentication token case sensitivity has no impact as you just POST to /api/sessions with credentials, to generate the auth token, but not the rest ?

tsugliani avatar Nov 30 '17 16:11 tsugliani

vCD is case insensitive when it comes to org names. However the cli isn't. We will look into this. Thanks

rocknes avatar Dec 03 '17 07:12 rocknes