Project

General

Profile

Bug #6651

Error when forwards destination has > 128 char

Added by Fran├žois Blackburn 9 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Category:
REST API
Target version:
Security issue:
No
In versions:
<= 17.06
Read documentation?:
No

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 9 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF