[jira] [Commented] (SYNCOPE-1217) Using the JAVA API is possible to create a Realm with the same name in the same parent realm

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (SYNCOPE-1217) Using the JAVA API is possible to create a Realm with the same name in the same parent realm

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SYNCOPE-1217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16191177#comment-16191177 ]

ASF subversion and git services commented on SYNCOPE-1217:
----------------------------------------------------------

Commit 36f1edef9f6abb3363763eac148e0dde581009b3 in syncope's branch refs/heads/2_0_X from [~ilgrosso]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=36f1ede ]

[SYNCOPE-1217] Adjusting the @UniqueConstraint


> Using the JAVA API is possible to create a Realm with the same name in the same parent realm
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNCOPE-1217
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1217
>             Project: Syncope
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.5
>            Reporter: Filipe Silva
>            Assignee: Francesco Chicchiriccò
>            Priority: Trivial
>             Fix For: 2.0.6, 2.1.0
>
>
> Using a code similar to this
> {code:java}
> ...
>                testRealm = entityFactory.newEntity(Realm.class);
>                 testRealm.setName('Test');
>                 orgUnitComputadoresRealm.setParent(realmDAO.getRoot();
>                 realmDAO.save(testRealm);
> ..
> {code}
> is possible to create a Realm with the same name in the same parent realm
> I think an exception should be triggered in the realmDAO.save call
> (Or the Database is missing a Unique key)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)