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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6, 2.1.0
    • core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: