Invalid X-Copy-From value and Container Quotas results in 500

Bug #1255049 reported by Fabien Boucher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Fabien Boucher

Bug Description

A X-Copy-From value that doesn't follow the container/object format will lead to
an Internal Error 500.
This is the same problem as in account quota middleware reported here :
https://bugs.launchpad.net/swift/+bug/1254626

Changed in swift:
assignee: nobody → Fabien Boucher (fabien-boucher)
Changed in swift:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (feature/ec)

Fix proposed to branch: feature/ec
Review: https://review.openstack.org/73471

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (feature/ec)
Download full text (18.8 KiB)

Reviewed: https://review.openstack.org/73471
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=aa0b0cf702cbaec1ee2711da15d89d3fedebbd76
Submitter: Jenkins
Branch: feature/ec

commit 39d22ccec726ec8a56ef2771c1315b4a7aee5922
Author: Christian Schwede <email address hidden>
Date: Wed Feb 12 20:26:29 2014 +0000

    Don't create bin/* files magically

    Just use import to make scripts available in bin/ instead of
    creating these during setup.py install.

    Change-Id: I7318bbb77f6564ed58736887e711e1c497873471

commit b1742169e163b46583dba38447b0c12a51ca324e
Author: anc <email address hidden>
Date: Wed Feb 12 11:18:19 2014 +0000

    Remove duplicate doc entry for swob

    Fixes swob module being referenced twice in misc.rst
    resulting in duplicate sections in the doc.

    Also fixes build_sphinx warning for section underline
    too short in middleware.rst.

    Change-Id: Ibe44895f933a6503ca04ccd3a084bc0cfd913213

commit 5fca0d07a873106b2175bcb3b5bfbee1cbd04a31
Author: Samuel Merritt <email address hidden>
Date: Wed Feb 5 11:57:20 2014 -0800

    Ensure swift.source is set for DLO/SLO requests

    SLO was setting it sometimes (the PUT path), but not others (the GET
    path), and DLO just wasn't doing it at all. One could already
    distinguish DLO/SLO internal requests by the user agent, but we should
    set swift.source too.

    Change-Id: I5d5b7dd49bd1522a9c830d0abd21fff92ae79a39

commit 8b4876f32a2e66bb2e1606a75dcc9a09ced43ab2
Author: Greg Lange <email address hidden>
Date: Mon Feb 10 14:31:14 2014 +0000

    Fix recon docs

    Change-Id: Icaa0f61e5796253dcc57b8c005577890de8aa537

commit 4a970ab5a6d2345670899ae082f26ff6a870e5de
Author: Greg Lange <email address hidden>
Date: Thu Feb 6 23:14:45 2014 +0000

    Fix a comment in SLO middleware

    Change-Id: I6ef435db55eb6cac5a92d9ef0f7ac3eaf271761d

commit 0f17c185c1bd9dd59796fc0ff5e66f821f0bd3b3
Author: Greg Lange <email address hidden>
Date: Thu Feb 6 17:10:19 2014 +0000

    Fix a comment in bulk middleware.

    Change-Id: I3a65d090c5c6ce42639e0af0fcac738a12e52252

commit aad81528d4a0b443eb7bfccbcd3c1e523ed8efa9
Author: Prashanth Pai <email address hidden>
Date: Tue Feb 4 16:31:47 2014 +0530

    Make .expiring_objects account name configurable

    The account which tracks objects scheduled for deletion had its name
    hard-coded to 'expiring_objects'. This is made configurable via
    expiring_objects_account_name option. Backend file-systems
    integration efforts may want to treat these "special" accounts in a
    different way.

    This would still go undocumented, hence 'pseudo-hidden'.

    UpgradeImpact: None as the default value would continue to be the same
                   which is '.expiring_objects'.

    Change-Id: I1a093b0d0e2bdd0c3d723090af03fc0adf2ad7e3
    Signed-off-by: Prashanth Pai <email address hidden>

commit 1f3ae6d8dadef838f1ea7fa571339932074fbe38
Author: Christian Schwede <email address hidden>
Date: Thu Jan 9 10:15:50 2014 +0000

    Remove swiftclient dependency

    Removes the requirement for swiftclient in swift-dispersion-report
   ...

Revision history for this message
Daisuke Morita (morita-daisuke) wrote :
Revision history for this message
Daisuke Morita (morita-daisuke) wrote :

typo: this bus -> this bug

Revision history for this message
Tim Burke (1-tim-z) wrote :

Addressed in https://github.com/openstack/swift/commit/8e1e67c (so, swift 1.13.0). Even better, with COPY pulled out to middleware in https://github.com/openstack/swift/commit/46d61a4 (swift 2.8.0), quotas no longer need to know about COPY at all!

Changed in swift:
status: In Progress → 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.