Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7183

DMN editor doesn't validate DRD names creating invalid DMNs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.73.0.Final
    • DMN Editor
    • None
    • Hide

      Steps to reproduce:

      1. Create a new DMN file
      2. Create DMN decision "Decision-1"
      3. Create DRD with the name "new-diagram" (DRD Actions -> Create)
      4. Rename "new-diagram" to "new/diagram" (Decision Navigator -> DRDs -> Pencil icon)
      5. Execute `mvn kie:validateDMN` in the project root

      What happens:

       

      [ERROR] One of the supplied DMN Models has failed validation; cannot proceed to validation of the remaining DMN Models.
      [ERROR] DMN: Failed XML validation of DMN file: cvc-datatype-valid.1.2.1: 'dmnshape-new/diagram-_BA38A888-E918-416E-8BF7-AE219116F843' is not a valid value for 'NCName'. (DMN model failed XML schema validation) 
      [ERROR] DMN: One of the supplied DMN Models has failed validation; cannot proceed to validation of the remaining DMN Models. (DMN Validation stopped on failed validation for some DMN Model)  

      What I expect:

       

      The validation should pass.

      Note:

      If I change the name to "new-diagram" validation check pass. It looks like "/" and "," are invalid characters for DRD names.

      Show
      Steps to reproduce: Create a new DMN file Create DMN decision "Decision-1" Create DRD with the name "new-diagram" (DRD Actions -> Create) Rename "new-diagram" to "new/diagram" (Decision Navigator -> DRDs -> Pencil icon) Execute `mvn kie:validateDMN` in the project root What happens:   [ERROR] One of the supplied DMN Models has failed validation; cannot proceed to validation of the remaining DMN Models. [ERROR] DMN: Failed XML validation of DMN file: cvc-datatype-valid.1.2.1: 'dmnshape- new /diagram-_BA38A888-E918-416E-8BF7-AE219116F843' is not a valid value for 'NCName' . (DMN model failed XML schema validation)  [ERROR] DMN: One of the supplied DMN Models has failed validation; cannot proceed to validation of the remaining DMN Models. (DMN Validation stopped on failed validation for some DMN Model)  What I expect:   The validation should pass. Note: If I change the name to "new-diagram" validation check pass. It looks like "/" and "," are invalid characters for DRD names.
    • NEW
    • NEW
    • ---
    • ---

      1. test.dmn
        2 kB
        Martin Mareš

            yamer@redhat.com Yeser Amer
            maresmar Martin Mareš (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: