core icon indicating copy to clipboard operation
core copied to clipboard

Unable to neither View nor Add Content Type Relationships

Open oarrietadotcms opened this issue 10 years ago • 2 comments

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

  1. Go To the Content Types Portlet
  2. Click over the View Content Type Relationships

Add Relationships

  1. Go To the Content Types Portlet
  2. Click over the View Content Type Relationships
  3. 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

oarrietadotcms avatar Dec 02 '16 16:12 oarrietadotcms

PR: https://github.com/dotCMS/core/pull/10253

dsilvam avatar Dec 02 '16 17:12 dsilvam

Passed QA. No errors are showing when viewing or adding content type relationships. Tested on latest master-3.8 / Postgres and MySQL

shaydotcms avatar Dec 12 '16 15:12 shaydotcms