Bug #6651

Error when forwards destination has > 128 char

Added by Fran├žois Blackburn about 2 months ago. Updated about 2 months ago.

Status:Resolved
Priority:Normal
Assignee:Fran├žois Blackburn
Category:REST API
Target version:17.07
Security issue:No Read documentation?:No
In versions:<= 17.06

Description

Given a user
When PUT /user/id/forwards/busy with:

{"enabled": true,
 "destination": "0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-"}

Result: error 500
  "Unexpected error: (DataError) value too long for type character varying(128)\n 'UPDATE userfeatures SET enablebusy=%(enablebusy)s, destbusy=%(destbusy)s WHERE userfeatures.id = %(userfeatures_id)s' {'destbusy': u'0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-', 'enablebusy': 1, 'userfeatures_id': 275}" 

Expected error 400

History

#1 Updated by Pascal Cadotte-Michaud about 2 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF