Skip to content

Commit 0ab8f4e

Browse files
committed
And making web build too
1 parent dd099ad commit 0ab8f4e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

geowebcache/web/src/main/webapp/WEB-INF/geowebcache-security.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
<security:http>
4141
<security:intercept-url method="GET" pattern="/rest/web/**" access="permitAll"/>
42+
<security:intercept-url pattern="/service/**" access="permitAll"/>
4243
<security:intercept-url method="GET" pattern="/rest/wmts/WMTSCapabilities.xml" access="permitAll"/>
4344
<security:intercept-url pattern="/rest/**" access="hasRole('ROLE_ADMINISTRATOR')"/>
4445

geowebcache/web/src/main/webapp/WEB-INF/geowebcache-sqlite-context.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
1212
<context:annotation-config/>
1313
<context:component-scan base-package="org.geowebcache.sqlite"/>
14-
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"/>
1514
<bean id="MbtilesConfigurationProvider" class="org.geowebcache.sqlite.MbtilesConfigurationProvider"/>
1615
</beans>

geowebcache/web/src/test/java/org/geowebcache/jetty/RestIntegrationTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.io.StringWriter;
3131
import java.net.URI;
3232
import java.nio.charset.Charset;
33+
import java.nio.charset.StandardCharsets;
3334
import java.util.Arrays;
3435
import org.apache.commons.io.IOUtils;
3536
import org.apache.hc.client5.http.classic.methods.HttpDelete;
@@ -131,6 +132,7 @@ public void setUp() throws Exception {
131132

132133
try (CloseableHttpResponse response =
133134
handlePut(URI.create("/geowebcache/rest/global"), admin.getClient(), globalUpdate)) {
135+
System.out.println(response.getEntity().toString());
134136
assertEquals(200, response.getCode());
135137
}
136138
}
@@ -498,7 +500,7 @@ public void testCreateUpdateDelete() throws Exception {
498500
final HttpGet request2 =
499501
new HttpGet(jetty.getUri().resolve("rest/layers/").resolve(layerName + ".xml"));
500502
try (CloseableHttpResponse response = admin.getClient().execute(request2)) {
501-
assertThat(new StatusLine(response), hasProperty("statusCode", equalTo(404)));
503+
assertEquals(404, response.getCode());
502504
}
503505
}
504506
// GetCap
@@ -1146,7 +1148,8 @@ public void testNewFileBlobstoreDontDeleteExistingContent() throws Exception {
11461148
// Make it sure the blobstore doesn't exist already as that would invalidate the test
11471149
try (CloseableHttpResponse response =
11481150
handleGet(URI.create("/geowebcache/rest/blobstores/maliciousCache.xml"), admin.getClient())) {
1149-
assertThat(response, hasProperty("statusLine", hasProperty("statusCode", equalTo(404))));
1151+
System.out.println(response);
1152+
assertEquals(404, response.getCode());
11501153
}
11511154

11521155
// Create a store
@@ -1260,6 +1263,8 @@ void doGetXML(URI uri, CloseableHttpClient client, Matcher<Integer> statusMatche
12601263
if (response.getCode() != 401) {
12611264
doc = XMLUnit.buildTestDocument(new InputSource(in));
12621265
body.accept(doc);
1266+
} else {
1267+
System.out.println(IOUtils.toString(in, StandardCharsets.UTF_8));
12631268
}
12641269
assertThat(new StatusLine(response), hasProperty("statusCode", statusMatcher));
12651270
}

0 commit comments

Comments
 (0)