-
Type:
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: Master
-
Fix Version/s: None
-
Component/s: Objects
-
Labels:
- 7.4-known-issues
- liferay-ga11-ce-743
- liferay-ga12-ce-743
- liferay-ga13-ce-743-known-issue
- liferay-ga14-ce-743-known-issues
- liferay-ga15-ce-743-known-issues
- liferay-ga16-ce-743-known-issues
- liferay-ga17-ce-743-known-issues
- liferay-ga18-ce-743-known-issues
- liferay-ga19-ce-743-known-issues
- liferay-ga20-ce-743-known-issues
- liferay-ga21-ce-743-known-issues
-
Fix Priority:4
Description
No validation when creating a relationship via API
Steps to Reproduce
- Log in to the Portal as an admin
- Go to http://localhost:8080/o/api?endpoint=http://localhost:8080/o/object-admin/v1.0/openapi.json
- Go to postObjectDefinitionObjectRelationship
- Set the value of objectDefinitionId to a custom object definition ID
- Set the Request body to (change the objectDefinitionId1 and objectDefinitionId2):
{ "deletionType": "cascade", "label": { "en_US": "Relationship Test" }, "name": "relationshipTest", "objectDefinitionId1": same ID from above, "objectDefinitionId2": native object definition ID, "type": "oneToMany" }
Expected Result
The relationship is not created
Actual Result
The relationship is created even though it is not possible to create a OneToMany relationship with a native object (N-side) via UI
Obs.: Same happens when trying to create a One to One relationship.
Reproduced In:
master: 29e67c44d338be860c2c25a0715ec37b6a2436df
- Discovered while testing
-
LPS-145393 As a power user, I want to create an one-to-many relationship between Native (System) and Custom Objects
-
- Closed
-
- mentioned in
-
Page Loading...