You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "rajalakshmys-27 (via GitHub)" <gi...@apache.org> on 2026/05/31 16:17:53 UTC

[PR] NO-ISSUE: Fix SCESIM story book due to stricter xml-parser-ts validation [incubator-kie-tools]

rajalakshmys-27 opened a new pull request, #3610:
URL: https://github.com/apache/incubator-kie-tools/pull/3610

   After the `xml-parser-ts` fix (#3570) that filters `<parsererror>` elements and throws on malformed XML was merged (as part of the broader BPMN/DMN/SCESIM parser error fix), the SCESIM editor Storybook stories broke in local development.
   
   **Root Cause**
   
   The Storybook stories for the SCESIM editor had two latent bugs that were always present but previously silent:
   
   1. **Malformed XML in the SIMPLE model** — a tag like `<text>Input &gt; 18<text>` was missing the `/` in its closing tag, making it invalid XML.
   2. **DevWebApp story passing a filename string instead of XML content** — the story was calling `getMarshaller(emptyFileName).parser.parse()` where `emptyFileName` is `"Untitled.scesim"`, a filename string, instead of actual XML content. `getMarshaller()` expects XML, so the DOMParser tried to parse the filename as XML and silently failed.
   
   These bugs never surfaced before because the browser's `DOMParser` was producing empty `<parsererror>` elements for these inputs, and the old code only threw when `hasRealError` was true (i.e., the parsererror element had non-empty text content). The stricter error handling introduced in the parser fix now correctly detects and throws on these malformed inputs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] NO-ISSUE: Fix SCESIM story book due to stricter xml-parser-ts validation [incubator-kie-tools]

Posted by "thiagoelg (via GitHub)" <gi...@apache.org>.
thiagoelg commented on code in PR #3610:
URL: https://github.com/apache/incubator-kie-tools/pull/3610#discussion_r3330958389


##########
packages/scesim-editor/stories/examples/ExternalDmnModels.ts:
##########
@@ -1012,7 +1012,7 @@ export const SIMPLE = `<?xml version="1.0" encoding="UTF-8" ?>
       <requiredInput href="#_926B9E31-3CEA-4A0E-8A66-97F875EFB428" />
     </informationRequirement>
     <literalExpression id="_1E199E0A-2CC3-4EEE-AA8C-B4F5320EE1DE">
-      <text>Input &gt; 18<text>

Review Comment:
   Was this XML originally generated by the SCESIM Editor? If it was, then the editor will always generate malformed XML 😕 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] NO-ISSUE: Fix SCESIM story book due to stricter xml-parser-ts validation [incubator-kie-tools]

Posted by "thiagoelg (via GitHub)" <gi...@apache.org>.
thiagoelg merged PR #3610:
URL: https://github.com/apache/incubator-kie-tools/pull/3610


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [PR] NO-ISSUE: Fix SCESIM story book due to stricter xml-parser-ts validation [incubator-kie-tools]

Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer commented on code in PR #3610:
URL: https://github.com/apache/incubator-kie-tools/pull/3610#discussion_r3332024972


##########
packages/scesim-editor/stories/examples/ExternalDmnModels.ts:
##########
@@ -1012,7 +1012,7 @@ export const SIMPLE = `<?xml version="1.0" encoding="UTF-8" ?>
       <requiredInput href="#_926B9E31-3CEA-4A0E-8A66-97F875EFB428" />
     </informationRequirement>
     <literalExpression id="_1E199E0A-2CC3-4EEE-AA8C-B4F5320EE1DE">
-      <text>Input &gt; 18<text>

Review Comment:
   @thiagoelg This is a DMN file not generated by scesim, I guess this is a typo



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org