Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1980

Add relationship instance validation to check end point type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • atlas-core
    • None

    Description

      Using a model RelationshipDef that is defines
      {
      "name": "CategoryAnchor",
      "typeVersion": "1.0",

      "endDef1":

      { "name": "categories", "type": "Glossary", "cardinality":"SET", "isContainer":true }

      ,
      "endDef2":

      { "name": "anchor", "type": "GlossaryCategory", "cardinality":"SINGLE" }

      ,
      "relationshipCategory":"COMPOSITION",
      "propagateTags":"NONE"
      },

      • it does not check that the guid of the relationship is actually of the right type. If I create an instance of the above relationships passing 2 GlossaryCategory guids ; it works. This should be rejected.

      Attachments

        1. ATLAS-1980.patch
          8 kB
          David Radley

        Issue Links

          Activity

            People

              davidrad David Radley
              davidrad David Radley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: