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

Subscribers

People subscribed via source and target branches

to all changes: