Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25023

Can't translate folder on PlatformUI

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      Assure you have at least two languages, by creating them, for instance, from legacy admin interface, from legacy-bridge.

      1. Go to PlatformUI -> Content -> Content structure;

      2. On "Home", create a folder "Folder" and publish it;

      3. Now while viewing "Folder", on the rightside menu, click on "Translations", then on "+ New Translation", and choose another language from the dialogue box that shows up;

      4. Click on "Confirm";

      5. While on editing context now, open up firebug or a similar network analysing tool, and go to Console or Network tab or wherever you can see the http requests / responses;

      6. Now click on publish for the translation.
      You will see an error "400 PATCH" on the console:
      Request headers:

      Host: ezp5.rui
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
      Accept: application/vnd.ez.api.Version+json
      Accept-Language: en-US,en;q=0.5
      Accept-Encoding: gzip, deflate
      Content-Type: application/vnd.ez.api.VersionUpdate+json; charset=UTF-8
      X-CSRF-Token: ev2nHdQKBFVoZSCY3X9Yy1Z3ZjA3Jq3AC4vFYQNR4AI
      Referer: http://ezp5.rui/ez
      Content-Length: 750
      Cookie: eZSESSID59b88f37a0cd75e7c15e6bd7175f7672=75tl0llvua98sana1vv0896ub7; adminNavigationTab=translations; eZSESSID=890mlunqloe2qu6vf0rsjh88a1; is_logged_in=true
      Connection: keep-alive
      

      Response headers:

      Cache-Control: private
      Connection: close
      Content-Length: 234
      Content-Type: application/vnd.ez.api.ErrorMessage+json
      Date: Thu, 22 Oct 2015 13:28:56 GMT
      Server: Apache/2.2.22 (Debian)
      Vary: Cookie,Authorization
      x-powered-by: PHP/5.4.39-0+deb7u2
      

      Params:

      {"VersionUpdate":{"modificationDate":"2015-10-22T13:28:50.751Z","initialLanguageCode":"eng-GB","fields":{"field":[{"fieldDefinitionIdentifier":"name","fieldValue":"Folder","languageCode":"eng-GB"},{"fieldDefinitionIdentifier":"short_name","fieldValue":"","languageCode":"eng-GB"},{"fieldDefinitionIdentifier":"short_description","fieldValue":{"xml":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<section/>\n"},"languageCode":"eng-GB"},{"fieldDefinitionIdentifier":"description","fieldValue":{"xml":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<section/>\n"},"languageCode":"eng-GB"},{"fieldDefinitionIdentifier":"show_children","fieldValue":true,"languageCode":"eng-GB"},{"fieldDefinitionIdentifier":"tags","fieldValue":[],"languageCode":"eng-GB"}]}}}
      

      Response body:

      {"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":400,"errorMessage":"Bad Request","errorDescription":"A value is set for non translatable field definition 'show_children' with language 'eng-GB'"}}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rui.silva-obsolete@ez.no Rui Silva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: