eclipse-modisco / org.eclipse.modisco

Eclipse Public License 2.0
0 stars 0 forks source link

AbstractDeploymentDescriptorDiscoverer.getDescXmlVersion don't work properly with file where dtd url isn't "http://java.sun.com" #846

Open eclipse-modisco-bot opened 4 hours ago

eclipse-modisco-bot commented 4 hours ago

| --- | --- | | Bugzilla Link | 384408 | | Status | NEW | | Importance | P5 normal | | Reported | Jul 05, 2012 15:42 EDT | | Modified | Dec 19, 2012 08:59 EDT | | Reporter | Victor Pavon |

Description

Build Identifier: 0.9.2.v201202151138

When I use the method getDescXmlVersion to determinate the version of dtd file to define schema file version the return version is a empty string. I look the code and I see that the string use to look for name dtd file is "http://java.sun.com". And it only work when the dtd url contain the string "http://java.sun.com" in other case didn't work

Reproducible: Always

eclipse-modisco-bot commented 4 hours ago

By Victor Pavon on Jul 05, 2012 15:47

Created attachment 218351 Class AbstractDeploymentDescriptorDiscoverer with solve error

AbstractDeploymentDescriptorDiscoverer.java

eclipse-modisco-bot commented 4 hours ago

By Victor Pavon on Jul 05, 2012 15:48

I have solve the problem change the line 82 in of file AbstractDeploymentDescriptorDiscoverer.java\ String http = "http://java.sun.com"; //$NON-NLS-1$ for String http = dtdUrl;