-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, Master
-
Fix Version/s: 7.0.0 DXP FP64, 7.0.X, 7.1.10 DXP FP5, 7.1.10.1 SP1, 7.1.2 CE GA3, 7.1.X, Master
-
Component/s: Frontend Infrastructure, Portal Services > Templates Engine
-
Branch Version/s:7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Fix Priority:4
-
Sprint:S02E03 - L.A. Confidential, S02E04 - Home alone
-
Git Pull Request:
When an enum is added to a SoyContext or template the rendering fails with an exception.
Steps to reproduce in master:
- Start portal
- Deploy com.liferay.hello.soy.web.jar (overwriting portal's provided hello soy bundle)
- Navigate to http://localhost:8080
- Add a Hello Soy Portlet to the page
Expected results:
- Portlet should be rendered
Actual results:
- Rendering fails with a server exception
Steps to reproduce in 7.0:
- Start portal
- Expand soy-params-7-0.zip
- Deploy the JAR file inside the build/lib subfolder of the expanded ZIP
- Navigate to http://localhost:8080
- Add a Sample Portlet to the page
Expected results:
- Portlet should render the strings:
Enum: VALUE
HTML: bold
Actual results:
- Portlet renders a Java object dump instead of VALUE
Steps to reproduce in 7.1:
- Start portal
- Expand soy-params-7-1.zip
- Deploy the JAR file inside the build/lib subfolder of the expanded ZIP
- Navigate to http://localhost:8080
- Add a Sample Portlet to the page
Expected results:
- Portlet should render the strings:
Enum: VALUE
HTML: bold
Actual results:
- Portlet renders a Java object dump instead of VALUE