Details
-
Bug
-
Resolution: Fixed
-
High
-
1.5.0
-
None
-
Firefox 45.0.1
php 5.6.17
mysql Ver 14.14 Distrib 5.5.47
Description
On trying to embed a content into a richtext field, and trying to use the create content-on-the-fly feature (using content-on-the-fly-prototype bundle) after all the steps taken through the UDW to span the form to create the content-on-the-fly, I click "Publish" on this new content and nothing happens, the UI freezes and won't let me click anywhere at all.
Besides when creating the content-on-the-fly, I have the action bar options "Publish", "Save", "Discard changes" and "Preview", where, according to Damien's comment on the related jira in which this was discovered, should only have the option "Publish". However after clicking it only the option "Publish" will remain as the others will disappear instantly.
These are the resulting HTTP responses I get on the browser when trying to publish the content-on-the-fly:
1st request
POST XHR http://master.rui/api/ezp/v2/content/objects
[HTTP/1.1 201 Created 397ms]
Request Headers:
POST /api/ezp/v2/content/objects HTTP/1.1 Host: master.rui User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 Accept: application/vnd.ez.api.Content+json Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/vnd.ez.api.ContentCreate+json X-CSRF-Token: EBGTvkDkAJgeVrGWbJ_VIkHxuwQQM6hctikz97-icXY Referer: http://master.rui/ez Content-Length: 902 Cookie: eZSESSID98defd6ee70dfb1dea416cecdf391f58=469n3ma9r1r1r6clplpkvd0i00 Connection: keep-alive
Response Headers:
HTTP/1.1 201 Created Date: Tue, 12 Jul 2016 13:31:17 GMT Server: Apache/2.4.10 (Debian) Cache-Control: private Accept-Patch: application/vnd.ez.api.ContentUpdate+json Location: /api/ezp/v2/content/objects/58 Vary: Cookie,Authorization Content-Length: 2969 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/vnd.ez.api.Content+json
Response:
{"Content":{"_media-type":"application\/vnd.ez.api.Content+json","_href":"\/api\/ezp\/v2\/content\/objects\/58","_remoteId":"7d91b518cdc21d4ed1eeb7affe6447be","_id":"58","ContentType":{"_media-type":"application\/vnd.ez.api.ContentType+json","_href":"\/api\/ezp\/v2\/content\/types\/1"},"Name":"Wrapper","Versions":{"_media-type":"application\/vnd.ez.api.VersionList+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/versions"},"CurrentVersion":{"_media-type":"application\/vnd.ez.api.Version+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/currentversion","Version":{"_media-type":"application\/vnd.ez.api.Version+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/versions\/1","VersionInfo":{"id":"516","versionNo":1,"status":"DRAFT","modificationDate":"2016-07-12T14:31:14+01:00","Creator":{"_media-type":"application\/vnd.ez.api.User+json","_href":"\/api\/ezp\/v2\/user\/users\/14"},"creationDate":"2016-07-12T14:31:14+01:00","initialLanguageCode":"eng-GB","languageCodes":"eng-GB","names":{"value":[{"_languageCode":"eng-GB","#text":"Wrapper"}]},"Content":{"_media-type":"application\/vnd.ez.api.ContentInfo+json","_href":"\/api\/ezp\/v2\/content\/objects\/58"}},"Fields":{"field":[{"id":"205","fieldDefinitionIdentifier":"name","languageCode":"eng-GB","fieldValue":"Wrapper"},{"id":"206","fieldDefinitionIdentifier":"short_name","languageCode":"eng-GB","fieldValue":null},{"id":"207","fieldDefinitionIdentifier":"short_description","languageCode":"eng-GB","fieldValue":{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http:\/\/docbook.org\/ns\/docbook\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" version=\"5.0-variant ezpublish-1.0\"\/>\n","xhtml5edit":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http:\/\/ez.no\/namespaces\/ezpublish5\/xhtml5\/edit\"\/>\n"}},{"id":"208","fieldDefinitionIdentifier":"description","languageCode":"eng-GB","fieldValue":{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http:\/\/docbook.org\/ns\/docbook\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" version=\"5.0-variant ezpublish-1.0\"\/>\n","xhtml5edit":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http:\/\/ez.no\/namespaces\/ezpublish5\/xhtml5\/edit\"\/>\n"}}]},"Relations":{"_media-type":"application\/vnd.ez.api.RelationList+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/versions\/1\/relations","Relation":[]}}},"Section":{"_media-type":"application\/vnd.ez.api.Section+json","_href":"\/api\/ezp\/v2\/content\/sections\/1"},"Locations":{"_media-type":"application\/vnd.ez.api.LocationList+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/locations"},"Owner":{"_media-type":"application\/vnd.ez.api.User+json","_href":"\/api\/ezp\/v2\/user\/users\/14"},"mainLanguageCode":"eng-GB","currentVersionNo":1,"alwaysAvailable":true,"ObjectStates":{"_media-type":"application\/vnd.ez.api.ContentObjectStates+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/objectstates"}}}
2nd request:
POST XHR http://master.rui/api/ezp/v2/content/objects/58/versions/1
[HTTP/1.1 204 No Content 347ms]
Request Headers:
POST /api/ezp/v2/content/objects/58/versions/1 HTTP/1.1 Host: master.rui User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate X-HTTP-Method-Override: PUBLISH X-CSRF-Token: EBGTvkDkAJgeVrGWbJ_VIkHxuwQQM6hctikz97-icXY Referer: http://master.rui/ez Content-Length: 0 Content-Type: text/plain;charset=UTF-8 Cookie: eZSESSID98defd6ee70dfb1dea416cecdf391f58=469n3ma9r1r1r6clplpkvd0i00 Connection: keep-alive
Response Headers:
HTTP/1.1 204 No Content Date: Tue, 12 Jul 2016 13:31:17 GMT Server: Apache/2.4.10 (Debian) Cache-Control: private Vary: Cookie,Authorization Content-Length: 0 Keep-Alive: timeout=5, max=99 Connection: Keep-Alive Content-Type: text/html; charset=UTF-8
Response:
No response
3rd request:
GET XHR http://master.rui/api/ezp/v2/content/objects/58
[HTTP/1.1 200 OK 169ms]
Request Headers:
GET /api/ezp/v2/content/objects/58 HTTP/1.1 Host: master.rui User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 Accept: application/vnd.ez.api.Content+json Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://master.rui/ez Cookie: eZSESSID98defd6ee70dfb1dea416cecdf391f58=469n3ma9r1r1r6clplpkvd0i00 Connection: keep-alive
Response Headers:
HTTP/1.1 200 OK Date: Tue, 12 Jul 2016 13:31:18 GMT Server: Apache/2.4.10 (Debian) Cache-Control: public, s-maxage=60 Accept-Patch: application/vnd.ez.api.ContentUpdate+json Vary: Accept,X-User-Hash X-Location-Id: 60 X-Content-Digest: ezlocation/60/en0654efb9528ab097332a17a36da0b3554ae39193107a0d4598442aee0f40adce Content-Length: 3182 Age: 0 Keep-Alive: timeout=5, max=98 Connection: Keep-Alive Content-Type: application/vnd.ez.api.Content+json
Response:
{"Content":{"_media-type":"application\/vnd.ez.api.Content+json","_href":"\/api\/ezp\/v2\/content\/objects\/58","_remoteId":"7d91b518cdc21d4ed1eeb7affe6447be","_id":58,"ContentType":{"_media-type":"application\/vnd.ez.api.ContentType+json","_href":"\/api\/ezp\/v2\/content\/types\/1"},"Name":"Wrapper","Versions":{"_media-type":"application\/vnd.ez.api.VersionList+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/versions"},"CurrentVersion":{"_media-type":"application\/vnd.ez.api.Version+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/currentversion","Version":{"_media-type":"application\/vnd.ez.api.Version+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/versions\/1","VersionInfo":{"id":516,"versionNo":1,"status":"PUBLISHED","modificationDate":"2016-07-12T14:31:17+01:00","Creator":{"_media-type":"application\/vnd.ez.api.User+json","_href":"\/api\/ezp\/v2\/user\/users\/14"},"creationDate":"2016-07-12T14:31:14+01:00","initialLanguageCode":"eng-GB","languageCodes":"eng-GB","names":{"value":[{"_languageCode":"eng-GB","#text":"Wrapper"}]},"Content":{"_media-type":"application\/vnd.ez.api.ContentInfo+json","_href":"\/api\/ezp\/v2\/content\/objects\/58"}},"Fields":{"field":[{"id":205,"fieldDefinitionIdentifier":"name","languageCode":"eng-GB","fieldValue":"Wrapper"},{"id":206,"fieldDefinitionIdentifier":"short_name","languageCode":"eng-GB","fieldValue":null},{"id":207,"fieldDefinitionIdentifier":"short_description","languageCode":"eng-GB","fieldValue":{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http:\/\/docbook.org\/ns\/docbook\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" version=\"5.0-variant ezpublish-1.0\"\/>\n","xhtml5edit":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http:\/\/ez.no\/namespaces\/ezpublish5\/xhtml5\/edit\"\/>\n"}},{"id":208,"fieldDefinitionIdentifier":"description","languageCode":"eng-GB","fieldValue":{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http:\/\/docbook.org\/ns\/docbook\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" version=\"5.0-variant ezpublish-1.0\"\/>\n","xhtml5edit":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http:\/\/ez.no\/namespaces\/ezpublish5\/xhtml5\/edit\"\/>\n"}}]},"Relations":{"_media-type":"application\/vnd.ez.api.RelationList+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/versions\/1\/relations","Relation":[]}}},"Section":{"_media-type":"application\/vnd.ez.api.Section+json","_href":"\/api\/ezp\/v2\/content\/sections\/1"},"MainLocation":{"_media-type":"application\/vnd.ez.api.Location+json","_href":"\/api\/ezp\/v2\/content\/locations\/1\/2\/60"},"Locations":{"_media-type":"application\/vnd.ez.api.LocationList+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/locations"},"Owner":{"_media-type":"application\/vnd.ez.api.User+json","_href":"\/api\/ezp\/v2\/user\/users\/14"},"lastModificationDate":"2016-07-12T14:31:17+01:00","publishedDate":"2016-07-12T14:31:17+01:00","mainLanguageCode":"eng-GB","currentVersionNo":1,"alwaysAvailable":true,"ObjectStates":{"_media-type":"application\/vnd.ez.api.ContentObjectStates+json","_href":"\/api\/ezp\/v2\/content\/objects\/58\/objectstates"}}}