Closed Bug 759899 Opened 14 years ago Closed 14 years ago

Use 415 Unsupported Media Type in AITC Server

Categories

(Cloud Services Graveyard :: Server: Sync, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gps, Assigned: rfkelly)

Details

(Whiteboard: [qa?])

Attachments

(1 file)

I'm not sure if bug 747494 didn't get ported over to AITC, but in test_that_uploading_invalid_json_gives_a_400_response in the functional test suite, the first test uploads with Content-Type application/x-www-form-urlencoded by default. It expects a 400. I would expect the server to return a 415 per the spec.
Ah, the AITC server parses the request before it gets to the underlying SyncStorage controller, so the 415 handling wasn't being applied. Patch copies it over. As part of a larger refactoring I am going to be moving this logic into a cornice validator, but that's not ready yet.
Assignee: nobody → rfkelly
Attachment #628540 - Flags: review?(telliott)
Attachment #628540 - Flags: review?(telliott) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [qa?]
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: