S3 storage bucket not being automatically created

Bug #1476019 reported by abeverley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Hi,

Duplicity version: 0.6.26 (and seemingly trunk)
Python version: 2.7.9
OS: Debian Jessie
Target storage: S3

Duplicity is not automatically creating S3 buckets, whereas I think it should be (from the documentation and the code).

Buckets are created automatically from put() in _boto_single.py. However, the first time an attempt is made to access a bucket is in resetConnection(), which does not have the exception handling (and bucket creation) that put() does.

Fix: I think the bucket creation exception handling should be in resetConnection() instead of put(). If for some reason put() can be called without resetConnection(), then it should be in both.

Thanks,

Andy

Revision history for this message
abeverley (l-andy) wrote :

This patch fixes the bug (tested successfully).

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.05
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.