Bug 474177 - Opening BPMN file with extensions from a specific namespace causes Validator to hang/Eclipse to crash
Summary: Opening BPMN file with extensions from a specific namespace causes Validator ...
Status: UNCONFIRMED
Alias: None
Product: MDT.BPMN2
Classification: Modeling
Component: Core (show other bugs)
Version: 1.2.0   Edit
Hardware: Macintosh Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-03 15:20 EDT by Lee Surprenant CLA
Modified: 2015-08-03 15:36 EDT (History)
0 users

See Also:


Attachments
simple bpmn to recreate the issue (745 bytes, application/xml)
2015-08-03 15:24 EDT, Lee Surprenant CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lee Surprenant CLA 2015-08-03 15:20:13 EDT
When I try to open a simple BPMN with extensions from the http://nccn.org namespace, the validator hangs (usually on 0%).
Sometimes it completes much later, but sometimes I need to force kill eclipse in order to recover.

Attached is a single bpmn file to reproduce the issue.
When I change the xmlns:fake from http://nccn.org to anything else like http://fake.com, then the validator seems to work fine.
I'm guessing the tool is making some kind of web request to this endpoint, and that something is going wrong on that end, but I'm not sure why that would be causing the entire tool to freeze.  I assume it should be more resilient to namespaces like that.

-- Configuration Details --
Product: Eclipse 4.5.0.20150621-1200 (org.eclipse.epp.package.jee.product)
BPMN2 Modeler - Diagram Editor	1.2.0.201506101742

I've seen similar behavior with previous versions as well.
Comment 1 Lee Surprenant CLA 2015-08-03 15:24:10 EDT
Created attachment 255601 [details]
simple bpmn to recreate the issue
Comment 2 Lee Surprenant CLA 2015-08-03 15:34:25 EDT
Comment on attachment 255601 [details]
simple bpmn to recreate the issue

<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:fake="https://fake.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 targetNamespace="https://fake.com" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
  <process id="bpmn_65f0e673_475e_4776_a685_42be7e93cc8f" name="simple-1" processType="Private">
    <startEvent id="start" name="Start" />
    <sequenceFlow id="edge1" name="Edge" sourceRef="start" targetRef="act1" />
    <task id="act1" name="Action">
      <extensionElements>
        <fake:properties xsi:type="fake:MyProps" />
      </extensionElements>
    </task>
    <sequenceFlow id="toEnd" sourceRef="act1" targetRef="end" />
    <endEvent id="end" name="End" />
  </process>
</definitions>
Comment 3 Lee Surprenant CLA 2015-08-03 15:36:21 EDT
Sorry, was trying to update the attachment, but it looks like I can't.  Basically I found that other namespaces like "https://fake.com" can create the same issue.