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 87455

Summary: XML files in tasklist module cannot be validated
Product: contrib Reporter: _ rkubacki <rkubacki>
Component: TasklistAssignee: tasklist-issues@contrib <tasklist-issues>
Status: REOPENED ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ rkubacki 2006-10-18 18:37:01 UTC
XML files describing filter and columns defined in tasklist modules cannot be
validated - they refer to DTD that do not exists on specified URLs.

http://tasklist.netbeans.org/dtd/filters-1_0.dtd
http://tasklist.netbeans.org/dtd/columns-1_0.dtd

This makes it imposiible to parse and validate this files in tests without
entity resolver provided by IDE internal.
 
We usualy put DTDd on www.netbeans.org but if these files cannot be descrideb by
DTD why do we specify it?
Comment 1 Tim Lebedkov 2006-10-18 20:51:03 UTC
Here is the answer:
tasklist/core/src/org/netbeans/modules/tasklist/core/filter/filters-1_0.dtd

<?xml version="1.0" encoding="UTF-8"?>

<!-- The contents of this file is unimportant. The format of the -->
<!-- settings file is determined by the code and not checked against -->
<!-- this DTD. Moreover, because of the possibility to extend filters by -->
<!-- other modules, the final grammar cannot be expressed in a DTD -->
<!-- without knowing the extensions. Therefore, we leave the DTD -->
<!-- unspecified -->

The DTD is only necessary because of usage of 
org.netbeans.spi.settings.DOMConvertor
Comment 2 _ rkubacki 2006-10-18 21:01:52 UTC
I know about this file and know that in context of IDE our entity resolver can
use it. But generaly all the document written with these DTDs are not valid
because they refer to non-existing URLs.

Probably the simplest way to avoid these problems is to publish these DTDs on
website.
Comment 3 Tim Lebedkov 2006-10-19 07:55:24 UTC
in this case somebody else should take care of this issue
Comment 4 Antonin Nebuzelsky 2007-11-02 15:53:07 UTC
Not valid for the general tasklist after the rewrite in 6.0. Reassigning to usertasks. Can be closed as invalid if it
does not apply there at all.