Bug 60641 - warn about empty dtd in xmlvalidate
Summary: warn about empty dtd in xmlvalidate
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2017-01-25 13:29 UTC by Ralf Hauser
Modified: 2017-01-25 13:29 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Hauser 2017-01-25 13:29:38 UTC
inadvertently, location="${WEBINF.dir}/lib/struts-config_1_2.dtd" became an empty file of 0 bytes length.


<dtd publicId="-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"

produced lots of kind of misleading errors.

Please warn and abort if the dtd location 
a) is missing altogether
b) unreadable
c) 0 == String.trim().length()