core icon indicating copy to clipboard operation
core copied to clipboard

Adding a comma (,) in Translate Field Types throws "null" error

Open shaydotcms opened this issue 10 years ago • 2 comments

Related to #9037 When testing Translation Workflow Action, it looks like when you add a comma (,) in Translate Field Types it throws a "null" error in the logs.

Steps to reproduce:

  1. Login to Dotcms
  2. Generate and upload the jar "plugin-dotcms-actionlet-google-translate-0.1.jar"
8cc03584-b89c-4a6c-a19a-f12c0c1dc55a
  1. Now navigate to Content Types> Workflow Schemes
  2. Click on Default Scheme
  3. Inside Initial State, create a new Workflow Action “Translation_test" and hit Save
  4. Now Add the Sub-action “Translate Content" such as below and hit Save
986dc94a-e319-425b-8b79-2ecdfdfb4556
  1. Click Translate Content sub-action and add a comma (,) in Translate Field Types
f3a09bb8-d763-46b6-b23b-b8fa2414208c
  1. Click Save
  2. Now add Generic Content in English and hit “Translation_test”
0a465b18-e72d-46e4-a1ee-c51cd16cc5b1
  1. You will see this error:

https://gist.github.com/shaydotcms/664ead7915165c37e7580e55d7924a3d 4b402fee-c6f5-4b0f-9879-39120479bfe8

Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox

shaydotcms avatar Jun 23 '16 19:06 shaydotcms

Fixed here: https://github.com/dotCMS/core/issues/9262

dsilvam avatar Jun 29 '16 20:06 dsilvam

Passed QA. Translation Workflow is not allowing comma (,) in Translate Field Types. Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox

shaydotcms avatar Jul 06 '16 15:07 shaydotcms