Commit Graph

6373 Commits

Author SHA1 Message Date
d10xa 1720941d47 Fix typo in executable jar format appendix
Closes gh-4314
2015-10-27 11:13:08 +00:00
Andy Wilkinson d9d4cc2ef5 Ensure request context is setup before security filter runs
Previously, OrderedRequestContextFilter was ordered such that it
ran after Spring Security's Filter. This meant that the request
context was unavailable to any Filters in Spring Security's Filter
chain. Specifically, this caused a failure when using @EnableOAuth2Sso
as OAuth2ClientAuthenticationProcessingFilter, which is added to
Spring Security's Filter chain would be unable to use the
request-scoped bean upon which it depends.

This commit updates the order of OrderedRequestContextFilter so that
the request context is set up before Spring Security's Filter runs.
The tests for SampleGitHubApplication have been updated to use
TestRestTemplate rather than MockMvc. This is necessary as the latter,
via ServletTestExecutionListener, automatically populates the request
context holder, masking the fact that the request context filter was
setting it up too late.

Closes gh-4270
2015-10-27 10:56:55 +00:00
Stephane Nicoll fdf75d3ede Document Actuator's CORS support
Closes gh-3010
2015-10-27 11:41:30 +01:00
Andy Wilkinson 17f61c1dad Update javadoc of LaunchedURLClassLoader to describe delegation model
Closes gh-3864
2015-10-27 10:09:10 +00:00
Stephane Nicoll b74c10ba3a Document FilterRegistrationBeans specific default
If a filter is registered in `web.xml` with no `dispatcher` element, the
spec states that it should have the `REQUEST` dispatcher type only.

As we are adding more dispatcher types by default, it can be surprising
for users migrating from a `web.xml` based  web app. The documentation
has now an explicit note about this.

Closes gh-2689
2015-10-27 11:05:56 +01:00
Andy Wilkinson 783a59f638 Merge branch 'gh-4311' 2015-10-27 09:57:23 +00:00
Andy Wilkinson 56334b48f6 Improve testing of shutdown handler registration 2015-10-27 09:57:10 +00:00
Johnny Lim 180815445c Fix registration of shutdown handler as a shutdown hook
Closes gh-4311
2015-10-27 09:57:10 +00:00
Stephane Nicoll 04fa7e4d27 Add dependency management section in the doc
Better describe what Spring Boot offers with regards to dependency
management and how it translates in Maven and Gradle.

Closes gh-2580
Closes gh-3695
2015-10-27 10:50:18 +01:00
Stephane Nicoll 9af17555c0 Polish 2015-10-27 09:20:16 +01:00
Stephane Nicoll 0f550dfce7 Merge pull request #4309 from izeye/polish-20151027
* pr/4309:
  Polish contribution
  Polish docs
2015-10-27 08:58:37 +01:00
Stephane Nicoll 0e99ba9004 Polish contribution
I don't think we want to keep this on a single line.

Closes gh-4309
2015-10-27 08:58:24 +01:00
Johnny Lim 396bea22b9 Polish docs
See gh-4309
2015-10-27 08:58:12 +01:00
Stephane Nicoll 2431767c81 Register the LoggingSystem in the ApplicationContext
Closes gh-4159
2015-10-26 15:01:54 +01:00
Andy Wilkinson 05a2b53527 Add information about /liquibase and /flyway to Actuator's docs
Closes gh-3438
2015-10-26 11:38:18 +00:00
Andy Wilkinson 0061e84a59 Document DevTools' requirement for shutdown hook to be registered
Closes gh-4153
2015-10-26 11:04:54 +00:00
Vedran Pavic 59d2ae598b Update documentation to clarify systemd service user
Closes gh-4293
2015-10-26 10:57:45 +00:00
Andy Wilkinson aa3313cfc5 Update NamePatternFilter to detect regular expression character class
Previously, NamePatternFilter looked for “*”, “$”, “^”, or “+” when
trying to identify a string as being a regular expression. This meant
that it missed the use of a character class ([a-z], for example). This
commit adds “[“} to the list of characters that are considered to be
part of a regular expression.

Closes gh-4233
2015-10-26 10:56:16 +00:00
Andy Wilkinson 89df4946f7 Use a context-relative URL for Dev Tools sample’s CSS 2015-10-26 10:09:50 +00:00
Stephane Nicoll 651ab38f18 Add Maven wrapper
Closes gh-4193
2015-10-26 11:00:13 +01:00
Andy Wilkinson 409a485c91 Use the correct version of Spring Security snapshots
See gh-4263
2015-10-26 09:34:11 +00:00
Andy Wilkinson 4ba6b67990 Start building against Spring Security 4.0.3 snapshots
Closes gh-4263
2015-10-26 09:31:07 +00:00
Andy Wilkinson 89bc5754f8 Start building against Spring Framework 4.2.3 snapshots
Closes gh-4257
2015-10-26 09:28:51 +00:00
Stephane Nicoll 40c2c6db08 Clean remote url if necessary
Make sure that the remote URL does not contain a trailing slash.

Closes gh-4297
2015-10-26 10:28:27 +01:00
Phillip Webb edd3f1eade Revert spring-security-oauth upgrade
It doesn't appear to be in Maven Central and it's breaking the eclipse
setup.
2015-10-24 20:11:17 -07:00
Stephane Nicoll 9d9538e558 Fix section of Windows service section
As the Windows service support is not related at all to the executable
jar support it needs to be in a separate location.
2015-10-23 17:22:56 +02:00
Dave Syer 02523799aa Add release repo to default profile 2015-10-23 10:54:27 +01:00
Dave Syer b5f4e7b376 Update to Spring OAuth 2.0.8 2015-10-23 10:19:17 +01:00
Stephane Nicoll ed841ab5f9 Merge pull request #4272 from izeye/broken-links
* pr/4272:
  Fix broken links
2015-10-22 17:46:05 +02:00
Johnny Lim e477598cc6 Fix broken links
Closes gh-4272
2015-10-22 17:45:35 +02:00
Stephane Nicoll c0b8974bc0 Merge branch '1.2.x' 2015-10-22 17:42:22 +02:00
Stephane Nicoll 7c1bf58262 Filter duplicate
Improve the initial PR to include a filtering of the profiles that were
already enabled via the `spring.profiles.active` property.

Also add more tests to prove that each profile is loaded only once
now.

Closes gh-4273
2015-10-22 17:19:56 +02:00
Dave Syer 06bb6bd1e1 Fix logic affecting files loaded
The problem fixed here is that the Loader keeps track of the profiles it
is going to look at for loading files, but ignores any that were already
active in the Environment if the listener is called initially with
spring.profiles.active not empty.

Closes gh-4261
2015-10-22 16:57:06 +02:00
Stephane Nicoll f43817dd27 Fix broken link
Closes gh-4268
2015-10-22 14:11:30 +02:00
Stephane Nicoll e3e28c538f Merge pull request #4265 from izeye/patch-45
* pr/4265:
  Fix error messages
2015-10-22 09:27:05 +02:00
Johnny Lim a1e210f578 Fix error messages
Closes gh-4265
2015-10-22 09:26:32 +02:00
Stephane Nicoll 84728c44c3 Upgrade to Mysql 5.1.37
Closes gh-4262
2015-10-21 21:32:53 +02:00
Stephane Nicoll 601225027f Merge branch '1.2.x' 2015-10-21 13:59:04 +02:00
Stephane Nicoll 2e2ebeb9fa Allow PORTFILE to always override the file to use
Previously, the `PORTFILE` system property was not checked if the
`EmbeddedServerPortFileWriter` was created using the default constructor.

This had the effect to prevent overriding of the port file when this
listener is created without any file or via `META-INF/spring.factories`.

Closes gh-4254
2015-10-21 13:58:48 +02:00
Stephane Nicoll c086a6a7ff Polish doc 2015-10-21 10:36:11 +02:00
Phillip Webb a7a2aa0461 Add "INIT INFO" property substitutions
Update the "INIT INFO section" of `launch.script` to include
`initInfoProvides`, `initInfoShortDescription` and `initInfoDescription`
property substitutions.

The Maven plugin has been updated to populate substitutions with
`${project.artifactId}`, `${project.name}` and `${project.description}`.

Fixes gh-4245
2015-10-20 17:48:22 -07:00
Phillip Webb fe42ced7ab Fix checkstyle 2015-10-20 17:35:49 -07:00
Phillip Webb ce95e08e6f Merge pull request #4189 from izeye/base64
* pr/4189:
  Replace Base64Encoder with Base64Utils
2015-10-20 16:14:37 -07:00
Johnny Lim 300387d995 Replace Base64Encoder with Base64Utils
Replace the custom Base64Encoder class with Spring's Base64Utils which
since 4.2 can encode bytes using Java 8's encoder, commons-digest or
Java 6's JAX-B encoder.

Closes gh-4189
2015-10-20 16:12:56 -07:00
Phillip Webb fb63e887bb Merge pull request #4242 from izeye/trace-response
* pr/4242:
  Make response headers optional in /trace endpoint
2015-10-20 16:07:04 -07:00
Johnny Lim 71c8a114f1 Make response headers optional in /trace endpoint
Update `WebRequestTraceFilter` so that the response respects the
TraceProperties.Include.RESPONSE enum.

See gh-3948
Closes gh-4242
2015-10-20 16:04:51 -07:00
Phillip Webb eeb407881a Restore "exception first" logging
Effectively revert commit b396d0d2 to restore exception first logging
of exceptions for Logback and Log4j2.

This commit also introduces new extended versions of "whitespace"
padding exception loggers so that source jar information is still
included in the stacktrace.

Fixes gh-4247
2015-10-20 15:33:34 -07:00
Phillip Webb 9be0020f7b Fix package tangle in CLI 2015-10-20 15:00:32 -07:00
Phillip Webb 88cc883e94 Refine RequestContextFilter order
Use an order relative to REQUEST_WRAPPER_FILTER_MAX_ORDER.

Closes gh-2637
2015-10-20 14:46:09 -07:00
Phillip Webb 15fbb8ddf9 Polish 2015-10-20 13:57:21 -07:00