1. 30 Dec, 2014 5 commits
  2. 29 Dec, 2014 1 commit
  3. 28 Dec, 2014 8 commits
  4. 27 Dec, 2014 4 commits
  5. 26 Dec, 2014 5 commits
  6. 25 Dec, 2014 2 commits
    • Phillip Webb's avatar
      Remove Principal handler logic from security · 98135c96
      Phillip Webb authored
      Update ManagementSecurityAutoConfiguration so that MVC Endpoints that
      have Principal arguments are not treated in any special way. This
      restores Spring Boot 1.1.x behavior where the 'sensitive' flag is used
      to determine access rules.
      
      The HealthMvcEndpoint still uses the Principal (when available) to
      determine if full status information can be displayed. It now also
      explicitly checks the environment for `endpoints.health.sensitive`
      to determine if the user has opted-out and requires complete health
      details.
      
      The health MVC endpoint should now work as follows:
      
      * Default configuration - No login is required, full information is only
        displayed if a Principal is available.
      * endpoints.health.sensitive=true - Login is required, full information
        is displayed.
      * endpoints.health.sensitive=false - Login is not required, full
        information is displayed.
      
      Fixes gh-2211
      98135c96
    • Phillip Webb's avatar
      Fix accidental fork logic change · 22bb6f75
      Phillip Webb authored
      Fix accidental change from commit b42c7fca.
      22bb6f75
  7. 24 Dec, 2014 3 commits
  8. 23 Dec, 2014 10 commits
  9. 22 Dec, 2014 2 commits
    • Andy Wilkinson's avatar
      Use ServletContainerInitializers to start servers · e57b0e00
      Andy Wilkinson authored
      The Servlet spec prohibits ServletContextListeners from being registered
      programatically other than from with a call to
      `ServletContainerInitializer.onStartup`. This restriction is not
      consistently enforced by the various embedded servlet containers that
      Boot supports:
      
      - Jetty 8 does not enforce the restriction.
      - Jetty 9 enforces the restriction. We were working around it be calling
        setExendedListenerTypes(true) on the context.
      - Tomcat somewhat enforces the restriction: it doesn't allow a
        ServletContextListener to be added once the first
        ServletContextListener has been called. We were using a
        LifecycleListener to drive the ServletContextListeners.
      - Undertow enforces the restriction and we were not working around it.
        This resulted in gh-2192 being raised.
      
      ServletListenerRegistrationBean is a ServletContextListener and is used
      to register listeners, including ServletContextListeners, with the
      servlet context. To adhere to the letter of the servlet spec this means
      that ServletListenerRegistrationBeans need to be called from with
      ServletContainerInitializer.onStartup. This commit updates all of the
      embedded servlet container implementations to use a
      ServletContainerInitializer to drive any ServletContextInitializers.
      
      This makes the lifecycle more consistent across the supported containers
      and allows ServletListenerRegistrationBeans to be able to register
      ServletContextListeners on all supported embedded containers.
      
      Fixes gh-2192
      e57b0e00
    • Phillip Webb's avatar
      Polish POM artifact order · d4fb8ad6
      Phillip Webb authored
      d4fb8ad6