Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1217

Using the JAVA API is possible to create a Realm with the same name in the same parent realm

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.5
    • Fix Version/s: 2.0.6, 2.1.0
    • Component/s: core
    • Labels:
      None

      Description

      Using a code similar to this

      ...
                     testRealm = entityFactory.newEntity(Realm.class);
                      testRealm.setName('Test');
                      orgUnitComputadoresRealm.setParent(realmDAO.getRoot();
                      realmDAO.save(testRealm);
      ..
      

      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)

        Attachments

          Activity

            People

            • Assignee:
              ilgrosso Francesco Chicchiriccò
              Reporter:
              filipe.silva Filipe Silva
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: