Details
-
Bug
-
Resolution: Fixed
-
High
-
2015.09, 2015.09.1
-
Operating System: CentOS 7.0 x64
PHP Version: 5.4.16
Database and version: Mariadb 5.5
Browser (and version): Chrome 45
Description
When I use an object that has an email attribute, the use of email@domain passes field validation, but raises an error when publishing the object.
field validation | publishing action | |
test@domain | Pass | fails |
test@domain.com | pass | pass |
Steps to reproduce
- Create a content type with an email attribute
- Create an object from previous content type
- on the email field, use "test@domain"
- Publish the object
We have an error "An error occurred while publishing the draft"
The request/response I had
Remote Address:127.0.0.1:80 Request URL:http://ezp5.paulo/api/ezp/v2/content/objects/153/versions/2 Request Method:PATCH Status Code:400 Bad Request
{"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":400,"errorMessage":"Bad Request","errorDescription":"Content fields did not validate"}}