Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
9ed6b92e
Commit
9ed6b92e
authored
Sep 02, 2019
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
parents
a4b8d240
b8070a83
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
4 deletions
+22
-4
ApplicationBuilder.java
...ngframework/boot/context/embedded/ApplicationBuilder.java
+10
-4
EmbeddedServletContainerJarDevelopmentIntegrationTests.java
...beddedServletContainerJarDevelopmentIntegrationTests.java
+3
-0
EmbeddedServletContainerJarPackagingIntegrationTests.java
...EmbeddedServletContainerJarPackagingIntegrationTests.java
+3
-0
EmbeddedServletContainerWarDevelopmentIntegrationTests.java
...beddedServletContainerWarDevelopmentIntegrationTests.java
+3
-0
EmbeddedServletContainerWarPackagingIntegrationTests.java
...EmbeddedServletContainerWarPackagingIntegrationTests.java
+3
-0
No files found.
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/ApplicationBuilder.java
View file @
9ed6b92e
...
...
@@ -98,10 +98,12 @@ class ApplicationBuilder {
resourcesJarStream
.
putNextEntry
(
new
ZipEntry
(
"META-INF/resources/nested-meta-inf-resource.txt"
));
resourcesJarStream
.
write
(
"nested"
.
getBytes
());
resourcesJarStream
.
closeEntry
();
resourcesJarStream
.
putNextEntry
(
new
ZipEntry
(
"META-INF/resources/nested-reserved-!#$%&()*+,:=?@[]-meta-inf-resource.txt"
));
resourcesJarStream
.
write
(
"encoded-name"
.
getBytes
());
resourcesJarStream
.
closeEntry
();
if
(!
isWindows
())
{
resourcesJarStream
.
putNextEntry
(
new
ZipEntry
(
"META-INF/resources/nested-reserved-!#$%&()*+,:=?@[]-meta-inf-resource.txt"
));
resourcesJarStream
.
write
(
"encoded-name"
.
getBytes
());
resourcesJarStream
.
closeEntry
();
}
return
resourcesJar
;
}
}
...
...
@@ -162,4 +164,8 @@ class ApplicationBuilder {
assertThat
(
execute
.
getExitCode
()).
isEqualTo
(
0
);
}
private
boolean
isWindows
()
{
return
File
.
separatorChar
==
'\\'
;
}
}
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerJarDevelopmentIntegrationTests.java
View file @
9ed6b92e
...
...
@@ -17,6 +17,8 @@
package
org
.
springframework
.
boot
.
context
.
embedded
;
import
org.junit.jupiter.api.TestTemplate
;
import
org.junit.jupiter.api.condition.DisabledOnOs
;
import
org.junit.jupiter.api.condition.OS
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
...
...
@@ -41,6 +43,7 @@ public class EmbeddedServletContainerJarDevelopmentIntegrationTests {
}
@TestTemplate
@DisabledOnOs
(
OS
.
WINDOWS
)
public
void
metaInfResourceFromDependencyWithNameThatContainsReservedCharactersIsAvailableViaHttp
(
RestTemplate
rest
)
{
ResponseEntity
<
String
>
entity
=
rest
.
getForEntity
(
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerJarPackagingIntegrationTests.java
View file @
9ed6b92e
...
...
@@ -17,6 +17,8 @@
package
org
.
springframework
.
boot
.
context
.
embedded
;
import
org.junit.jupiter.api.TestTemplate
;
import
org.junit.jupiter.api.condition.DisabledOnOs
;
import
org.junit.jupiter.api.condition.OS
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
...
...
@@ -41,6 +43,7 @@ public class EmbeddedServletContainerJarPackagingIntegrationTests {
}
@TestTemplate
@DisabledOnOs
(
OS
.
WINDOWS
)
public
void
nestedMetaInfResourceWithNameThatContainsReservedCharactersIsAvailableViaHttp
(
RestTemplate
rest
)
{
ResponseEntity
<
String
>
entity
=
rest
.
getForEntity
(
"/nested-reserved-%21%23%24%25%26%28%29%2A%2B%2C%3A%3D%3F%40%5B%5D-meta-inf-resource.txt"
,
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerWarDevelopmentIntegrationTests.java
View file @
9ed6b92e
...
...
@@ -24,6 +24,8 @@ import java.util.List;
import
java.util.stream.Collectors
;
import
org.junit.jupiter.api.TestTemplate
;
import
org.junit.jupiter.api.condition.DisabledOnOs
;
import
org.junit.jupiter.api.condition.OS
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
...
...
@@ -48,6 +50,7 @@ public class EmbeddedServletContainerWarDevelopmentIntegrationTests {
}
@TestTemplate
@DisabledOnOs
(
OS
.
WINDOWS
)
public
void
metaInfResourceFromDependencyWithNameThatContainsReservedCharactersIsAvailableViaHttp
(
RestTemplate
rest
)
{
ResponseEntity
<
String
>
entity
=
rest
.
getForEntity
(
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerWarPackagingIntegrationTests.java
View file @
9ed6b92e
...
...
@@ -24,6 +24,8 @@ import java.util.List;
import
java.util.stream.Collectors
;
import
org.junit.jupiter.api.TestTemplate
;
import
org.junit.jupiter.api.condition.DisabledOnOs
;
import
org.junit.jupiter.api.condition.OS
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
...
...
@@ -48,6 +50,7 @@ public class EmbeddedServletContainerWarPackagingIntegrationTests {
}
@TestTemplate
@DisabledOnOs
(
OS
.
WINDOWS
)
public
void
nestedMetaInfResourceWithNameThatContainsReservedCharactersIsAvailableViaHttp
(
RestTemplate
rest
)
{
ResponseEntity
<
String
>
entity
=
rest
.
getForEntity
(
"/nested-reserved-%21%23%24%25%26%28%29%2A%2B%2C%3A%3D%3F%40%5B%5D-meta-inf-resource.txt"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment