Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4131)

Issue 54680045: apiserver: Charm upload takes archives w/ subdirs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by dimitern
Modified:
10 years, 2 months ago
Reviewers:
mp+204043, natefinch
Visibility:
Public.

Description

apiserver: Charm upload takes archives w/ subdirs Fixed bug #1273464: HTTPS based API to upload local charms fails for compressed charms with nested dirs inside, instead of having metadata.yaml, etc. in the zip root dir. Changes only how uploads are handled: charms with nested dirs are detected after uploading and then repackaged to remove the nesting, before uploading them to the provider storage. Some code for handling zipped archives for charms is copied from the charm package, but as fwereade requested, the changes do not affect the charm package itself. https://code.launchpad.net/~dimitern/juju-core/280-lp-1273464-putcharm-archives-with-root-dir/+merge/204043 Requires: https://code.launchpad.net/~dimitern/juju-core/270-lp-1257649-ssh-timeout-bootstrap/+merge/203832 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : apiserver: Charm upload takes archives w/ subdirs #

Patch Set 3 : apiserver: Charm upload takes archives w/ subdirs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -1 line) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/apiserver/charms.go View 1 2 3 chunks +195 lines, -0 lines 0 comments Download
M state/apiserver/charms_test.go View 3 chunks +60 lines, -1 line 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
10 years, 3 months ago (2014-01-30 17:01:13 UTC) #1
natefinch
Pretty good, but can you look at the use of strings.suffix instead of filepath.base? I'm ...
10 years, 3 months ago (2014-01-30 18:56:35 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/54680045/diff/1/state/apiserver/charms.go File state/apiserver/charms.go (right): https://codereview.appspot.com/54680045/diff/1/state/apiserver/charms.go#newcode214 state/apiserver/charms.go:214: // findArchiveRootDir takes a *zip.Reader ...
10 years, 3 months ago (2014-01-31 11:52:41 UTC) #3
natefinch
LGTM, though I don't like the copy & paste of the charm code, it sounds ...
10 years, 3 months ago (2014-01-31 13:58:35 UTC) #4
dimitern
10 years, 3 months ago (2014-01-31 15:17:14 UTC) #5
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b