Closed Bug 966096 Opened 10 years ago Closed 10 years ago

[zippy] Can't PUT a GET

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P4)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: andy+bugzilla, Unassigned)

Details

If you GET an app, you can't just PUT it back.

Calling url: GET http://localhost:8001/provider/reference/sellers/28986eed-beac-4458-a706-cfb162ea8003
Request data:
{}
Status code: 200
Response data:
{u'agreement': u'',
 u'email': u'jdoe@example.org',
 u'id': u'28986eed-beac-4458-a706-cfb162ea8003',
 u'name': u'John',
 u'resource_name': u'sellers',
 u'resource_uri': u'/provider/reference/sellers/28986eed-beac-4458-a706-cfb162ea8003/',
 u'status': u'ACTIVE',
 u'uuid': u'28986eed-beac-4458-a706-cfb162ea8003'}

Calling url: PUT http://localhost:8001/provider/reference/sellers/28986eed-beac-4458-a706-cfb162ea8003/
Request data:
{u'agreement': u'',
 u'email': u'jdoe@example.org',
 u'id': u'28986eed-beac-4458-a706-cfb162ea8003',
 u'name': u'John',
 u'resource_name': u'sellers',
 u'resource_uri': u'/provider/reference/sellers/28986eed-beac-4458-a706-cfb162ea8003/',
 u'status': u'ACTIVE',
 u'uuid': u'28986eed-beac-4458-a706-cfb162ea8003'}
Status code: 409
Error: {"error_message": "Unrecognized fields: resource_name,id,resource_uri"}

It would be nice to ignore resource_name, id, resource_uri in zippy.
Isn't it the aim of solitude to serve as a proxy and deal with extra fields?
Priority: -- → P4
I've got this in some later zippy fixes to make it work with the new public_id field added for Boku.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.