Ask - Test
Insertion of “{}” in a structured content value
Óscar Sánchez, modified 5 Months ago.
Insertion of “{}” in a structured content value
New Member Post: 1 Join Date: 3/14/25 Recent PostsHello!
A possible error has been detected in which when editing a structured content, “{}” is inserted inside the Upload even though no content has been inserted in that field.
Step to reproduce:
- Create a structure with 3 fields
- Content & Data -> Web Content -> Structures ->
New Structure
- Rich Text
- Text
- Upload
- Content & Data -> Web Content -> Structures ->
New Structure
- Create a content using the structure just created without inserting any value in the "Upload" field
- Modify the content, without inserting any value in the "Upload" field again
Expected Results:
<?xml version="1.0"?> <root available-locales="es_ES" default-locale="es_ES" version="1.0"> <dynamic-element field-reference="descripcion" index-type="text" instance-id="G03sngQ9" name="descripcion" type="rich_text"> <dynamic-content language-id="es_ES"><![CDATA[<p>Hello World</p>]]></dynamic-content> </dynamic-element> <dynamic-element field-reference="url_externa" index-type="keyword" instance-id="JnQilYZz" name="url_externa" type="text"> <dynamic-content language-id="es_ES"><![CDATA[]]></dynamic-content> </dynamic-element> <dynamic-element field-reference="fichero_adjunto" index-type="keyword" instance-id="PxvIxa1x" name="fichero_adjunto" type="document_library"> <dynamic-content language-id="es_ES"><![CDATA[]]></dynamic-content> </dynamic-element> </root>
Actual Results:
<?xml version="1.0"?> <root available-locales="es_ES" default-locale="es_ES" version="1.0"> <dynamic-element field-reference="descripcion" index-type="text" instance-id="G03sngQ9" name="descripcion" type="rich_text"> <dynamic-content language-id="es_ES"><![CDATA[<p>Hello World</p>]]></dynamic-content> </dynamic-element> <dynamic-element field-reference="url_externa" index-type="keyword" instance-id="JnQilYZz" name="url_externa" type="text"> <dynamic-content language-id="es_ES"><![CDATA[]]></dynamic-content> </dynamic-element> <dynamic-element field-reference="fichero_adjunto" index-type="keyword" instance-id="PxvIxa1x" name="fichero_adjunto" type="document_library"> <dynamic-content language-id="es_ES"><![CDATA[{}]]></dynamic-content> </dynamic-element> </root>
Reproduced on: 7.4.3.120
Jamie Sammons, modified 5 Months ago.
RE: Insertion of “{}” in a structured content value
Expert Posts: 367 Join Date: 9/5/14 Recent PostsBug Report Created: https://liferay.atlassian.net/browse/LPD-51402
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™