Ubuntu One backend should check for 402 error for out-of-space messages

Bug #997691 reported by Roman Yepishev
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

At the moment here's what is in precise package:

        if status == 400:
            code = log.ErrorCode.backend_permission_denied
        elif status == 404:
            code = log.ErrorCode.backend_not_found
        elif status == 507:
            code = log.ErrorCode.backend_no_space
        else:
            code = log.ErrorCode.backend_error
        return code

Ubuntu One was never using WebDAV-specific 507 code and recently we decided that 402 (Payment Required, as in purchasing more space is required for operation to complete) will be a better fit.

Please update the source to check for 402 error as out-of-space event.

Related branches

Michael Terry (mterry)
affects: deja-dup → duplicity
Changed in duplicity:
status: New → Fix Committed
milestone: none → 0.6.20
Changed in duplicity:
importance: Undecided → Medium
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.