Skip to content

Commit 5d59b7e

Browse files
committed
Updating XML dtd refs for jetty.org
1 parent 303061d commit 5d59b7e

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

jetty-deploy/src/test/java/org/eclipse/jetty/deploy/DeploymentTempDirTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void testTmpDirectory() throws Exception
103103
Path warPath = MavenTestingUtils.getTestResourcePath("webapps/foo-webapp-1.war");
104104
String deploymentXml =
105105
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
106-
"<!DOCTYPE Configure PUBLIC \"-//Jetty//Configure//EN\" \"https://eclipse.dev/jetty/configure.dtd\">\n" +
106+
"<!DOCTYPE Configure PUBLIC \"-//Jetty//Configure//EN\" \"https://jetty.org/configure.dtd\">\n" +
107107
"<Configure class=\"org.eclipse.jetty.webapp.WebAppContext\">\n" +
108108
"<Set name=\"war\">" + warPath + "</Set>\n" +
109109
"<Set name=\"tempDirectory\">" + tmpDir + "</Set>\n" +
@@ -146,7 +146,7 @@ public void testPersistentTmpDirectory() throws Exception
146146
Path warPath = MavenTestingUtils.getTestResourcePath("webapps/foo-webapp-1.war");
147147
String deploymentXml =
148148
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
149-
"<!DOCTYPE Configure PUBLIC \"-//Jetty//Configure//EN\" \"https://eclipse.dev/jetty/configure.dtd\">\n" +
149+
"<!DOCTYPE Configure PUBLIC \"-//Jetty//Configure//EN\" \"https://jetty.org/configure.dtd\">\n" +
150150
"<Configure class=\"org.eclipse.jetty.webapp.WebAppContext\">\n" +
151151
"<Set name=\"war\">" + warPath + "</Set>\n" +
152152
"<Set name=\"tempDirectory\">" + tmpDir + "</Set>\n" +

jetty-deploy/src/test/resources/context-binding-test-1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://eclipse.dev/jetty/configure_9_3.dtd">
2+
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd">
33
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
44

55
<Call name="addServerClass">

jetty-maven-plugin/src/it/run-mojo-gwt-it/beer-server/src/config/jetty.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://eclipse.dev/jetty/configure_9_3.dtd">
2+
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd">
33

44
<Configure id="Server" class="org.eclipse.jetty.server.Server">
55
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">

jetty-maven-plugin/src/it/run-mojo-gwt-it/beer-server/src/main/jettyconf/context.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://eclipse.dev/jetty/configure_9_3.dtd">
2+
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd">
33

44
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
55
<Call name="setInitParameter">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?xml version="1.0"?>
2-
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://eclipse.dev/jetty/configure_9_3.dtd">
2+
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd">
33
<Configure />

jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,8 +1970,8 @@ private ConfigurationParser(Pool<ConfigurationParser>.Entry entry)
19701970

19711971
// Register all variations of DOCTYPE entity references for Config 9.3
19721972
String[] schemes = {"http", "https"};
1973-
String[] hosts = {"www.eclipse.org", "eclipse.org", "www.eclipse.dev", "eclipse.dev"};
1974-
String[] paths = {"/jetty/configure.dtd", "/jetty/configure_9_3.dtd"};
1973+
String[] hosts = {"www.eclipse.org/jetty", "eclipse.org/jetty", "www.eclipse.dev/jetty", "eclipse.dev/jetty", "jetty.org"};
1974+
String[] paths = {"/configure.dtd", "/configure_9_3.dtd"};
19751975

19761976
for (String scheme : schemes)
19771977
{

jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlConfigurationTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,16 +1742,16 @@ public static Stream<Arguments> xmlSystemIdSource()
17421742
List<Arguments> ids = new ArrayList<>();
17431743

17441744
String[] schemes = {"http", "https"};
1745-
String[] hosts = {"eclipse.org", "www.eclipse.org", "eclipse.dev", "www.eclipse.dev"};
1746-
String[] paths = {"/jetty/configure.dtd", "/jetty/configure_9_3.dtd"};
1745+
String[] hostAndContexts = {"eclipse.org/jetty", "www.eclipse.org/jetty", "eclipse.dev/jetty", "www.eclipse.dev/jetty", "jetty.org"};
1746+
String[] dtdNames = {"/configure.dtd", "/configure_9_3.dtd"};
17471747

17481748
for (String scheme: schemes)
17491749
{
1750-
for (String host: hosts)
1750+
for (String hostAndContext: hostAndContexts)
17511751
{
1752-
for (String path: paths)
1752+
for (String dtdName: dtdNames)
17531753
{
1754-
ids.add(Arguments.of(String.format("%s://%s%s", scheme, host, path)));
1754+
ids.add(Arguments.of(String.format("%s://%s%s", scheme, hostAndContext, dtdName)));
17551755
}
17561756
}
17571757
}

tests/test-integration/src/test/resources/ssl.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://eclipse.dev/jetty/configure_9_3.dtd">
2+
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd">
33
<Configure id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory$Server">
44
<Set name="KeyStorePath"><Property name="jetty.home" default="." />/<Property name="jetty.sslContext.keyStorePath" default="keystore"/></Set>
55
<Set name="KeyStorePassword"><Property name="jetty.sslContext.keyStorePassword" default="OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4"/></Set>

tests/test-webapps/test-owb-cdi-webapp/src/main/webapp/WEB-INF/jetty-web-owb.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://eclipse.dev/jetty/configure_9_3.dtd">
2+
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd">
33

44
<Configure id="wac" class="org.eclipse.jetty.webapp.WebAppContext">
55
<!-- Rename this file to jetty-web.xml if the cdi-spi module is not used-->

tests/test-webapps/test-proxy-webapp/src/main/webapp/WEB-INF/web.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<servlet-class>org.eclipse.jetty.proxy.ProxyServlet$Transparent</servlet-class>
99
<init-param>
1010
<param-name>proxyTo</param-name>
11-
<param-value>https://eclipse.dev/jetty/javadoc/jetty-9/index.html?overview-summary.html</param-value>
11+
<param-value>https://jetty.org/javadoc/jetty-9/index.html?overview-summary.html</param-value>
1212
</init-param>
1313
<init-param>
1414
<param-name>hostHeader</param-name>

0 commit comments

Comments
 (0)