JUJU_CHARMSTORE does not follow redirects
rogpeppe opened this issue · comments
Roger Peppe commented
From @jrwren on August 20, 2015 18:35
e.g.
$ JUJU_CHARMSTORE=http://api.staging.jujucharms.com/charmstore juju store upload ...
ERROR cannot post archive: no matching charm or bundle for "cs:~yellow/trusty/charmstore"
but
$ JUJU_CHARMSTORE=https://api.staging.jujucharms.com/charmstore juju-store upload ...
ERROR cannot post archive: unauthorized: access denied for user "evarlast"
because the endpoint of the first command redirects to the second command, I expect the response to be identical.
Copied from original issue: CanonicalLtd/charmstore-client#112
Roger Peppe commented
Verified that this is still an issue:
% JUJU_CHARMSTORE=http://api.staging.jujucharms.com/charmstore charm push withresource
Opening an authorization web page in your browser.
If it does not open, please open this URL:
https://api.staging.jujucharms.com/identity/login?did=2cdc5ad851ece180c734042c53a04e434a735c919a560bc9f7ce51d19c8aa81e
[24366:24386:1114/105604.999414:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
Created new window in existing browser session.
ERROR cannot post archive: no matching charm or bundle for cs:~rogpeppe/withresource