If you put a field in the fields listing in an index method call, Services throws a 500 error. I haven't tracked down where this happens but I assume it is in the query builder. For instance this URI fails

/user/?parameters[uid]=2&fields=uid,name,email

because the proper field is 'mail' not 'email'. It would be nice if we could handle this more gracefully. I don't think it is a showstopper for release but I wanted to make sure the issue gets tracked.

CommentFileSizeAuthor
#1 services-index-500.patch3.56 KBmarcingy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcingy’s picture

Status: Active » Needs review
FileSize
3.56 KB

Initial patch to implement a try/catch structure, patch likely needs some work in relation to the message sent back etc.

kylebrowning’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.