This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243795 - circular dependency through xml catalog causes infinite loop at code completion
Summary: circular dependency through xml catalog causes infinite loop at code completion
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-13 10:05 UTC by kumm
Modified: 2016-07-07 09:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kumm 2014-04-13 10:05:56 UTC
I have two schema files depend each other.
---a.xsd---
<schema version="1.0"
        xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:c="urn:c"
        targetNamespace="urn:a"
        elementFormDefault="qualified">
    <import namespace="urn:c" schemaLocation="http://c.xsd"/>
    <group name="aa">
        <choice>
            <element ref="c:el"/>
        </choice>
    </group>
</schema>
---c.xsd---
<schema version="1.0"
           xmlns="http://www.w3.org/2001/XMLSchema"
           xmlns:a="urn:a"
           targetNamespace="urn:c"
           elementFormDefault="qualified">
    <import namespace="urn:a" schemaLocation="http://a.xsd"/>
    <element name="el">
        <complexType>
            <group maxOccurs="unbounded" minOccurs="0" ref="a:aa"/>
        </complexType>
    </element>
</schema>

I define schema location uris in an oasis xml catalog file:
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
         "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" 
         xml:base="file:///[path_where_you_saved_xsds]">
    <system systemId="http://a.xsd" uri="a.xsd"/>
    <system systemId="http://c.xsd" uri="c.xsd"/>
</catalog>

I define the catalog file in netbeans. An infinite loop occures while editing an xml like this:
<el
    xmlns="urn:c"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:c http://c.xsd ">
[type '<' here]
</el>

When i use direct filename for all schemaLocation instead of url everything works fine.
Comment 1 Martin Balin 2016-07-07 09:56:42 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss