API 'PUT' should return a 400 - Bad Request when an ForbiddenAttribute is encountered

Bug #267888 reported by Brad Crittenden
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Leonard Richardson

Bug Description

When trying to PUT to a read-only attribute the following occurs:
    >>> url = '/firefox/trunk/0.9.2/+file/firefox-0.9.2.orig.tar.gz/file'
    >>> response = webservice.put(url, 'application/x-tar-gz', 'fakefiledata')
    >>> print response
    HTTP/1.1 500 Internal Server Error
    ...
    ForbiddenAttribute: ('libraryfile', <ProductReleaseFile...

The response should be 400 - Bad Request.

Related OOPSes: OOPS-982EA99, OOPS-982ED80, OOPS-982ED82, OOPS-982ED85

Brad Crittenden (bac)
Changed in launchpad-foundations:
assignee: nobody → leonardr
importance: Undecided → High
milestone: none → 2.1.9
status: New → Triaged
Ursula Junque (ursinha)
description: updated
Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Fixed in RF 6988.

Changed in launchpad-foundations:
status: Triaged → Fix Committed
Changed in launchpad-foundations:
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.