list resources will not work correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Unassigned |
Bug Description
This bug is in the gopkg.in/
juju-core directly.
In Client.
resmap, err := c.csWrapper.
if err != nil {
return nil, errors.Trace(err)
}
resources, ok := resmap[
if !ok {
// no resources for that url, that's ok.
return nil, nil
}
The csWrapper.
method. This code is if there are some resources, the map returned by that
method will contain a single entry with the key ch.URL.String().
Unfortunately that's not the case, because the Client.
method removes the revision number from the URL before
making the actual HTTP API call, and the keys in the result map
will never contain the revision numbers.
So if ch.URL contains a revision number (which it will), Client.
return any resources, which will mean the juju-core code won't
work correctly.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.0-rc1 |
tags: | added: juju-release-support resources |
Changed in juju-core: | |
status: | Triaged → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0-beta5 → none |
milestone: | none → 2.0-beta5 |
Fixes:
https:/ /github. com/juju/ charmrepo/ pull/86 (merged) /github. com/juju/ charmrepo/ pull/87 (merged) reviews. vapour. ws/r/4549/ (pending merge))
https:/
http://