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.
Summary: | XML validation of generated AU catalogs | ||
---|---|---|---|
Product: | www | Reporter: | Jesse Glick <jglick> |
Component: | Builds & Repositories | Assignee: | Michal Zlamal <mzlamal> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | issues, jrechtacek, mzlamal, rbalada, rnovak |
Priority: | P2 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 31962 | ||
Bug Blocks: | 33098, 33519 |
Description
Jesse Glick
2003-03-12 19:00:08 UTC
Even more ridiculous: note that the public and system ID do not match at all: <!DOCTYPE module_updates PUBLIC "-//NetBeans//DTD Autoupdate Module Info 1.0//EN" "http://www.netbeans.org/dtds/autoupdate-catalog-1_0.dtd" [ ... ]> This is my code. Updated public and system ids of alpha/[dev|35]_1.6_.xml update centres. Checking in www/www/updates/alpha/dev_1.6_.xml; /shared/data/helm/cvs/repository/www/www/updates/alpha/dev_1.6_.xml,v <-- dev_1.6_.xml new revision: 1.4; previous revision: 1.3 done Checking in www/www/updates/alpha/35_1.6_.xml; /shared/data/helm/cvs/repository/www/www/updates/alpha/35_1.6_.xml,v <-- 35_1.6_.xml new revision: 1.2; previous revision: 1.1 done Michal, please implement xml validation in nbbuild/antsrc/org/netbeans/nbbuild/MakeUpdateDesc.java for file desc.getAbsolutePath() just right after the last pw.close() (around line 309). Thanks Did anyone actually correct the DTD validation errors? If not, this is still a DEFECT. Ruda fixed the generation of XML according the DTD. I still consider this a priority. We have fixed a number of validation problems. We have not actually fixed them all (see validation errors in my original comments to this bug), and we could accidentally revert any fixes we made if they are not validated. There are still validation errors. Besides things already reported elsewhere, there are e.g.: Attribute "OpenIDE-Module-Deprecated" must be declared for element type "manifest". [937] Attribute "OpenIDE-Module-Deprecation-Message" must be declared for element type "manifest". [937] Attribute "OpenIDE-Module-Name" is required and must be specified for element type "manifest". [2,616] Probably many more, but Xerces reports: Too many errors, stopping further checking. due to the huge number of errors caused by issue #32437. Here's another error that should have been easily caught during creation of the catalog file. Say the NBM does not include a distribution location, i.e. distribution="http://${dist.base}/archiver.nbm" on <makenbm>. This is natural enough; the NBM itself does not know where it will be kept. But <makeupdatedesc> does not *add* it. The resulting catalog file includes an entry with no distribution location. AU then chokes because it was given an invalid entry (issue #33519). Since the distribution location is #REQUIRED in the DTD, this kind of error would have been caught immediately by validation, rather than waiting for someone to come across it by accident. *** Issue 33519 has been marked as a duplicate of this issue. *** I would say this was already done months ago. Not really; I filed issue #57634. |