Unable to neither View nor Add Content Type Relationships
Expected Behavior
-
[ ] Viewing Content Type Relationships should be successful.
-
[ ] Adding Content Type Relationships should be successful.
Current Behavior
When you try to view Content Type Relationships an error is thrown.
ERROR util.SQLUtil: Invalid or pernicious sql parameter passed in : relationtypevalue com.dotmarketing.business.DotStateException: Invalid or pernicious sql parameter passed in : relationtypevalue at com.dotmarketing.common.util.SQLUtil.sanitizeSortBy(SQLUtil.java:209) [dotcms3.8.00873b8c.jar:?] at com.dotcms.contenttype.business.RelationshipFactoryImpl.byContentType(RelationshipFactoryImpl.java:203) [dotcms3.8.00873b8c.jar:?] at com.dotmarketing.portlets.structure.action.ViewRelationshipsAction.loadRelationships(ViewRelationshipsAction.java:50) [dotcms3.8.00873b8c.jar:?] at com.dotmarketing.portlets.structure.action.ViewRelationshipsAction.render(ViewRelationshipsAction.java:34) [dotcms3.8.0_0873b8c.jar:?]
When adding a new relationship this is the error: https://gist.github.com/dsilvam/d40884113f37a9e4968fa86ca60864c3
Steps to Reproduce (for bugs)
View Relationships
- Go To the Content Types Portlet
- Click over the View Content Type Relationships
Add Relationships
- Go To the Content Types Portlet
- Click over the View Content Type Relationships
- Click on "Add New Relationship"
Your Environment
- dotCMS version used: master-3.8
- Browser Name and version: FF and Chrome
- Operating System and version: Mac OS
- Database and version: MySQL and Postgres
PR: https://github.com/dotCMS/core/pull/10253
Passed QA. No errors are showing when viewing or adding content type relationships. Tested on latest master-3.8 / Postgres and MySQL