Merge lp:~smoser/ubuntu/maverick/s3cmd/bug-602317 into lp:ubuntu/maverick/s3cmd

Proposed by Scott Moser
Status: Merged
Merged at revision: 10
Proposed branch: lp:~smoser/ubuntu/maverick/s3cmd/bug-602317
Merge into: lp:ubuntu/maverick/s3cmd
Diff against target: 66 lines (+36/-1)
4 files modified
debian/changelog (+6/-0)
debian/control (+2/-1)
debian/patches/fix-setacl-public.patch (+27/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~smoser/ubuntu/maverick/s3cmd/bug-602317
Reviewer Review Type Date Requested Status
Stefano Rivera Approve
Registry Administrators Pending
Review via email: mp+29325@code.launchpad.net

Description of the change

This fixes bug 602317.

To post a comment you must log in.
Revision history for this message
Stefano Rivera (stefanor) wrote :

I wish every patch were this well documented :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-10-20 01:53:35 +0000
3+++ debian/changelog 2010-07-06 18:31:27 +0000
4@@ -1,3 +1,9 @@
5+s3cmd (0.9.9.91-1ubuntu1) maverick; urgency=low
6+
7+ * fix setacl --acl-public when public (LP: #602317)
8+
9+ -- Scott Moser <smoser@ubuntu.com> Tue, 06 Jul 2010 11:48:45 -0400
10+
11 s3cmd (0.9.9.91-1) unstable; urgency=low
12
13 * New upstream release.
14
15=== modified file 'debian/control'
16--- debian/control 2009-10-20 01:53:35 +0000
17+++ debian/control 2010-07-06 18:31:27 +0000
18@@ -1,7 +1,8 @@
19 Source: s3cmd
20 Section: utils
21 Priority: optional
22-Maintainer: Mikhail Gusarov <dottedmag@dottedmag.net>
23+XSBC-Original-Mainteiner: Mikhail Gusarov <dottedmag@dottedmag.net>
24+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
25 Uploaders: Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>
26 Build-Depends: debhelper (>= 7), quilt (>= 0.40), python
27 Build-Depends-Indep: python-support (>= 0.6.4)
28
29=== added file 'debian/patches/fix-setacl-public.patch'
30--- debian/patches/fix-setacl-public.patch 1970-01-01 00:00:00 +0000
31+++ debian/patches/fix-setacl-public.patch 2010-07-06 18:31:27 +0000
32@@ -0,0 +1,27 @@
33+Description: setacl --add-public does nothing if any grantee has READ
34+ The 'isAnonRead' in method if the Grantee class S3/ACL.py is broken.
35+ Instead of checking if 'self' "isAllUsers" , it checks if the
36+ 'isAllUsers' method is defined in self.
37+ .
38+ Thus, if you have any explicit grant that has 'READ', then 's3cmd
39+ setacl --acl-public s3://mybucket/myfile.txt' will decide that the file
40+ is already public and do nothing.
41+ .
42+ The fix is simple, and was also found during the adding of the feature
43+ request for issue 28833177 [1] (see [2] to view that patch).
44+Author: Scott Moser <smoser@ubuntu.com>
45+Bug-Ubuntu: https://launchpad.net/bugs/602317
46+Forwarded: https://sourceforge.net/tracker/index.php?func=detail&aid=3025892&group_id=178907&atid=887015
47+Last-Update: 2010-07-06
48+=== modified file 'S3/ACL.py'
49+--- a/S3/ACL.py
50++++ b/S3/ACL.py
51+@@ -31,7 +31,7 @@
52+ return self.tag == "URI" and self.name == Grantee.ALL_USERS_URI
53+
54+ def isAnonRead(self):
55+- return self.isAllUsers and self.permission == "READ"
56++ return self.isAllUsers() and self.permission == "READ"
57+
58+ def getElement(self):
59+ el = ET.Element("Grant")
60
61=== modified file 'debian/patches/series'
62--- debian/patches/series 2007-08-24 23:17:27 +0000
63+++ debian/patches/series 2010-07-06 18:31:27 +0000
64@@ -1,1 +1,2 @@
65 do-not-check-elementtree-at-build-time.patch
66+fix-setacl-public.patch

Subscribers

People subscribed via source and target branches

to all changes: