1. 11 May, 2015 5 commits
  2. 06 May, 2015 2 commits
    • Craig Walls's avatar
      Upgrade to Spring Social Facebook 2.0.1.RELEASE · 88d72e05
      Craig Walls authored
      While this is a breaking change, continuing with Spring Social
      Facebook 1.1.x is also broken as it is no longer compatible with
      Facebook's API. Upgrading to 2.0.1.RELEASE may require some changes
      to be made to users' applications, but it will allow their
      applications to use the Facebook API once again.
      
      Closes gh-2837
      88d72e05
    • pasali's avatar
      Upgrade to Dropwizard Metrics 3.1.2 · 1cc0b19f
      pasali authored
      Closes gh-2920
      1cc0b19f
  3. 05 May, 2015 1 commit
  4. 30 Apr, 2015 2 commits
  5. 28 Apr, 2015 1 commit
  6. 27 Apr, 2015 1 commit
    • Rob Winch's avatar
      Management Security uses Spring Realm · b54960f0
      Rob Winch authored
      Previously ManagementSecurityAutoConfiguration used Spring Security's
      default realm of "Realm" when authentication failed. This was confusing
      because when prompted for authentication (i.e. no credentials provided)
      the realm "Spring" was requested.
      
      This commit ensures the Realm that is used is consistent for all of of the
      security auto configuration.
      
      Fixes #2466
      b54960f0
  7. 22 Apr, 2015 1 commit
  8. 21 Apr, 2015 7 commits
  9. 16 Apr, 2015 1 commit
    • Andy Wilkinson's avatar
      Support String values for factoryBeanObjectType attribute on bean def · 337673b3
      Andy Wilkinson authored
      To allow us to determine the type that Spring Integration’s
      GatewayProxyFactoryBean will create, the bean definition created by
      MessagingGatewayRegistrar needs to set the factoryBeanObjectType
      attribute. The current implementation of BeanTypeRegistry requires the
      attribute’s value to be a Class, however this would require Spring
      Integration’s namespace handler to load the class and class loading
      should be avoided in namespace handlers.
      
      This commit updates BeanTypeRegistry so that it supports both Class and
      String values for the factoryBeanObjectType. If the value is a String
      it will interpret it as a class name and attempt to load it.
      
      See gh-2811
      337673b3
  10. 15 Apr, 2015 2 commits
    • Andy Wilkinson's avatar
      Read the time of a JarEntryData using MSDOS Date Time format · ebb8d0c5
      Andy Wilkinson authored
      The format is rather unusual.
      
      The time is 16 bits: 5 bits for the hour, 6 bits for the minutes, and 5
      bits for the seconds. 5 bits only allows 32 values (0-31) so the number
      must be doubled, meaning that the time is only accurate to the nearest
      two seconds. Also, the JDK rounds this down by subtracting one. The
      doubling and rounding is performed by shifting one place to the left
      and masking off the right-most bit respectively.
      
      The date is 16 bits: 7 bits for the year, 4 bits for the month, and 5
      bits for the day. The year is from 1980, i.e. the earliest date that
      can be represented is 1980-01-01.
      
      See http://mindprod.com/jgloss/zip.html for more details of the format.
      
      Fixes gh-2826
      ebb8d0c5
    • Andy Wilkinson's avatar
      Don’t start child context for actuator endpoints when not embedded · 764e34b9
      Andy Wilkinson authored
      Prior to this commit, EndpointWebMvcAutoConfiguration would start a
      child context if the management port was different to the server port
      and the application context was a web application context. This caused
      two problems:
      
      If a user built an executable war and configured the management port so
      that it was different to the server port, their application would run
      successfully when launched with java -jar, but it would fail when
      deployed to Tomcat as an attempt would be made to start embedded Tomcat.
      
      Secondly, if a user ran a test annotated with @WebAppConfiguration the
      main embedded Tomcat instance would not be started, but the child
      context would trigger the creation of a Tomcat instance listening on the
      configured management port. This is unexpected as @WebIntegrationTest
      or @IntegrationTest and @WebAppConfiguration should be required to have
      the test trigger full startup of the application and listen on the
      configured ports.
      
      This commit updates EndpointWebMvcAutoConfiguration so that it will only
      start a child context when the management port is different to the
      server port and the EmbeddedWebApplicationContext has an embedded
      servlet container. This resolves the two problems described above as
      there will be no embedded servlet container when deployed to a
      standalone container or when a test is run without @IntegrationTest.
      
      Fixes gh-2798
      764e34b9
  11. 14 Apr, 2015 4 commits
    • Andy Wilkinson's avatar
      Update MetricFilter to treat an unsuccessful call to doFilter as a 500 · 0c7708bf
      Andy Wilkinson authored
      Previously, if a call to doFilter in MetricFilter failed (i.e. it threw
      an exception), it would be handled as if it had a response status of
      200. This is because the servlet container was yet to handle the
      exception and set the response status to 500.
      
      This commit updates MetricFilter to assume that an exception thrown from
      doFilter will result in a response with a status of 500. Strictly
      speaking, even though the filter has highest precedence and will
      therefore run last on the way back out, this may not always be the case.
      For example, a custom Tomcat Valve could handle the exception and result
      in a 200 response but that’s an edge case that’s into shooting yourself
      in the foot territory.
      
      Closes gh-2818
      0c7708bf
    • Andy Wilkinson's avatar
    • Andy Wilkinson's avatar
      Provide dependency management for Antlr 2 · 2d7c0c2f
      Andy Wilkinson authored
      Hibernate depends on antlr:antlr:2.7.7 (the latest version on Antlr 2)
      and fails with earlier 2.7.x versions due to a missing method. This
      can cause problems for Maven users if they also depend on something that
      pulls in an earlier version of Antlr, such as
      spring-boot-starter-velocity. Gradle users are unaffected as, when
      multiple versions of a dependency are found in the graph, Gradle will
      choose the latest version.
      
      This commit adds dependency management for antlr:antlr:2.7.7 to ensure
      that the latest, and Hibernate compatible, version of Antlr 2 is used.
      
      Closes gh-2814
      2d7c0c2f
    • Stephane Nicoll's avatar
      Polish documentation · 0f142109
      Stephane Nicoll authored
      0f142109
  12. 13 Apr, 2015 2 commits
  13. 09 Apr, 2015 3 commits
  14. 08 Apr, 2015 4 commits
  15. 07 Apr, 2015 4 commits
    • izeye's avatar
      Document MultipartProperties · d8f45ab6
      izeye authored
      Closes gh-2779
      d8f45ab6
    • Andy Wilkinson's avatar
      Polishing: spaces -> tabs · fa4562f4
      Andy Wilkinson authored
      fa4562f4
    • Andy Wilkinson's avatar
      Honour endpoint.enabled:false for nested paths · a8bf9d34
      Andy Wilkinson authored
      Previously, only invocations of /metricName/ would honour the enabled
      property and return a not found (404) response. For endpoints which
      support nested paths, access to /metricName/foo would ignore the enabled
      flag and return an OK (200) response. Furthermore, there was a comment
      in EndpointMvcAdapter that suggested that an endpoint shouldn’t be
      called when it is disabled, however this was not the case.
      
      This commit updates EndpointWebMvcAutoConfiguration and
      JolokiaAutoConfiguration to only register their MvcEndpoint beans if
      the underlying endpoint is enabled. This means that an
      EndpointMvcAdapter should not be called if its delegate is disabled,
      making the comment described above accurate.
      
      The check for the delegate being enabled has been retained so as not to
      rely upon the auto-configurations’ behaviour. The methods which handle
      nested paths (MetricsMvcEndpoint.value() and
      EnvironmentMvcEndpoint.value()) have been updated to add the same check
      for the enablement of their delegate.
      
      Fixes gh-2767
      a8bf9d34
    • Andy Wilkinson's avatar
      d4ffab2f