Details
-
Bug
-
Resolution: Duplicate
-
High
-
5.1.0beta1
-
None
-
rhel, mysql
Description
Either I do something wrong or it is not possible to create a contenttype with ezimage field type. However, I am pretty sure the same requests worked on 15th of April and that there is a regression somewhere
#################### - Client request BEGIN - ######################### POST /api/ezp/v2/content/typegroups/1/types?publish=true HTTP/1.1 Host: ezpublish5.rhel61.qa.ez.local:8080 User-Agent: eZ REST QA Tester Content-Length: 2222 Authorization: Basic YWRtaW46cHVibGlzaA== Accept: application/vnd.ez.api.ContentType+json Content-type: application/vnd.ez.api.ContentTypeCreate+json { "ContentTypeCreate": { "identifier": "TContentType", "mainLanguageCode": "eng-GB", "urlAliasSchema": "<name>", "nameSchema": "<name>", "isContainer": "true", "defaultSortField": "PATH", "defaultSortOrder": "ASC", "defaultAlwaysAvailable": "true", "names": { "value": [ { "_languageCode": "eng-GB", "#text": "RESTv2DatatypeTest" } ] }, "descriptions": { "value": [ { "_languageCode": "eng-GB", "#text": "This is a description" } ] }, "FieldDefinitions": { "FieldDefinition": [ { "identifier": "name", "fieldType": "ezstring", "names": { "value": [ { "_languageCode": "eng-GB", "#text": "Name" } ] }, "descriptions": { "value": [ { "_languageCode": "eng-GB", "#text": "This is the name" } ] }, "fieldGroup": "content", "position": "1", "isTranslatable": "true", "isRequired": "true", "isInfoCollector": "false", "isSearchable": "true", "defaultValue": "New Name" } , { "identifier": "image", "fieldType": "ezimage", "names": { "value": [ { "_languageCode": "eng-GB", "#text": "Image" } ] }, "descriptions": { "value": [ { "_languageCode": "eng-GB", "#text": "This is a ezimage test" } ] }, "fieldGroup": "content", "position": "2", "isTranslatable": "true", "isRequired": "false", "isInfoCollector": "false", "isSearchable": "true" } ] } } } ##################### - Client request END - ########################## sending to target...done. Received from Target: ##################### - Target reply BEGIN - ########################## HTTP/1.1 500 Internal Server Error Date: Mon, 22 Apr 2013 08:04:45 GMT Server: Apache/2.2.15 (Red Hat) X-Powered-By: PHP/5.3.3 Status: 500 Internal Server Error Cache-Control: no-cache X-Debug-Token: 402cf0cadcb8a451ab78d2eb9fb57927a01b696b Connection: close Transfer-Encoding: chunked Content-Type: application/vnd.ez.api.ErrorMessage+json 9ba {"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":500,"errorMessage":"Internal Server Error","errorDescription":"ContentType FieldDefinitions did not validate","trace":"#0 \/var\/www\/apache2php53\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/ContentTypeService.php(509): eZ\\Publish\\Core\\Repository\\ContentTypeService->buildSPIFieldDefinitionCreate(Object(eZ\\Publish\\API\\Repository\\Values\\ContentType\\FieldDefinitionCreateStruct))\n#1 \/var\/www\/apache2php53\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/SignalSlot\/ContentTypeService.php(199): eZ\\Publish\\Core\\Repository\\ContentTypeService->createContentType(Object(eZ\\Publish\\Core\\Repository\\Values\\ContentType\\ContentTypeCreateStruct), Array)\n#2 \/var\/www\/apache2php53\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Controller\/ContentType.php(288): eZ\\Publish\\Core\\SignalSlot\\ContentTypeService->createContentType(Object(eZ\\Publish\\Core\\Repository\\Values\\ContentType\\ContentTypeCreateStruct), Array)\n#3 [internal function]: eZ\\Publish\\Core\\REST\\Server\\Controller\\ContentType->createContentType()\n#4 \/var\/www\/apache2php53\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(129): call_user_func_array(Array, Array)\n#5 \/var\/www\/apache2php53\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(73): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#6 \/var\/www\/apache2php53\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/DependencyInjection\/ContainerAwareHttpKernel.php(57): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#7 \/var\/www\/apache2php53\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/Kernel.php(197): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#8 \/var\/www\/apache2php53\/ezpublish5\/web\/index_dev.php(14): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#9 {main}","file":"\/var\/www\/apache2php53\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/ContentTypeService.php","line":584}} ###################### - Target reply END - ###########################