891 Commits

Author SHA1 Message Date
Spring Operator
e1440b1095 DATAREST-1351 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 374 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0.html with 1 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0.html ([https](https://www.apache.org/licenses/LICENSE-2.0.html) result 200).

Original Pull Request: #332
2019-03-22 10:25:26 +01:00
Spring Operator
fc7c7695f8 DATAREST-1351 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 13 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.pivotal.io with 2 occurrences migrated to:
  https://www.pivotal.io ([https](https://www.pivotal.io) result 301).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 26 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 13 occurrences

Original pull request: #309
2019-03-18 11:48:26 -05:00
Oliver Gierke
007c450f87 DATAREST-1128 - Updated changelog. 2017-10-11 19:01:43 +02:00
Mark Paluch
1ff1bb90d3 DATAREST-1129 - Updated changelog. 2017-10-02 11:41:35 +02:00
Oliver Gierke
955ac74b62 DATAREST-1112 - Updated changelog. 2017-09-11 17:42:47 +02:00
Mark Paluch
75dc92fa64 DATAREST-1114 - Updated changelog. 2017-09-11 12:44:08 +02:00
Oliver Gierke
f5bfe53588 DATAREST-1127 - Patch operations now always verify paths before operation application.
Previously, the SpEL expression created from JSON Patch path expressions were executed without double checking whether these paths actually exist on the target object in the first place. This check is now in place.
2017-09-08 12:00:51 +02:00
Oliver Gierke
e53e961802 DATAREST-1110 - Updated changelog. 2017-07-27 00:49:02 +02:00
Oliver Gierke
abd41ff896 DATAREST-1111 - Updated changelog. 2017-07-25 16:15:48 +02:00
Oliver Gierke
0d7b6b1bc7 DATAREST-1093 - Updated changelog. 2017-07-25 10:04:03 +02:00
Oliver Gierke
6ab181cef4 DATAREST-1090 - Updated changelog. 2017-07-24 22:20:46 +02:00
Oliver Gierke
26927d91a2 DATAREST-1075 - AnnotatedEventHandlerInvoker skips methods introduced by proxy. 2017-07-06 13:11:54 +02:00
Oliver Gierke
291e8210c5 DATAREST-1060 - Improve AssociationOmittingSerializerModifier to not break on Jackson 2.9.
According to this upstream ticket [0] we need to override BeanSerializerModifier.changeProperties(…) rather than ….updateBuilder(…). The commit just does that.

[0] https://github.com/FasterXML/jackson-databind/issues/1664

Related ticket: FasterXML/jackson-databind#1664
2017-06-19 17:39:30 +02:00
Mark Paluch
bfb47d71aa DATAREST-1071 - Updated changelog. 2017-06-14 17:34:59 +02:00
Oliver Gierke
9b4fbcef96 DATAREST-1092 - Improve exception handling in PatchOperation for Spring 5 compatibility.
We now also catch SpelEvaluationException in the attempt to set a null value for an expression as Spring 5 now reports a failed attempt (e.g. if the target type is not nullable) using that type whereas Spring 4.3 threw a NullPointerException.
2017-06-14 11:30:50 +02:00
Oliver Gierke
a0bd7e79f0 DATAREST-1031 - Fixed setup of ExceptionHandlerExceptionResolver.
Fixed the setup of our custom ExceptionHandlerExceptionResolver to conclude with a call to afterPropertiesSet() to make sure it's properly initialized.
2017-06-09 09:58:41 +02:00
Mark Paluch
b04f209126 DATAREST-1059 - Updated changelog. 2017-06-09 09:38:03 +02:00
Mark Paluch
7665264e06 DATAREST-1058 - After release cleanups. 2017-06-07 11:50:58 +02:00
Mark Paluch
f136fd4f31 DATAREST-1058 - Prepare next development iteration. 2017-06-07 11:50:56 +02:00
Mark Paluch
e64f9e944a DATAREST-1058 - Release version 2.5.11 (Hopper SR11). 2017-06-07 11:11:08 +02:00
Mark Paluch
0536b5970a DATAREST-1058 - Prepare 2.5.11 (Hopper SR11). 2017-06-07 11:10:24 +02:00
Mark Paluch
c5ef4b7acc DATAREST-1058 - Updated changelog. 2017-06-07 11:10:21 +02:00
Oliver Gierke
9106a22db3 DATAREST-1079 - Upgraded to EvoInflector 1.2.2. 2017-05-18 14:52:40 +02:00
Oliver Gierke
9ee2d43bae DATAREST-1039 - Fix appending a complex value appended to a collection via JSON Patch.
When a PATCH call using JSON Patch tried to append an item to an empty collection, it previously failed to look up the type to unmarshal the incoming payload to. We now inspect the declared types on the wrapped object's property to determine that type for append operations.

Also, an uninitialized collection is now initialized using Spring's CollectionFactory.
2017-05-12 14:45:55 +02:00
Mark Paluch
f6bad62936 DATAREST-1052 - Updated changelog. 2017-05-09 11:36:17 +02:00
Oliver Gierke
ec50932e99 DATAREST-1057 - After release cleanups. 2017-04-19 21:02:16 +02:00
Oliver Gierke
4ecb007adf DATAREST-1057 - Prepare next development iteration. 2017-04-19 21:02:14 +02:00
Oliver Gierke
f56485d92d DATAREST-1057 - Release version 2.5.10 (Hopper SR10). 2017-04-19 20:36:43 +02:00
Oliver Gierke
4da7619b94 DATAREST-1057 - Prepare 2.5.10 (Hopper SR10). 2017-04-19 20:36:07 +02:00
Oliver Gierke
f77a97cb10 DATAREST-1057 - Updated changelog. 2017-04-19 20:36:03 +02:00
Oliver Gierke
1f0cca6156 DATAREST-1056 - Updated changelog. 2017-04-19 20:01:49 +02:00
Oliver Gierke
6159a748a5 DATAREST-1017 - After release cleanups. 2017-04-19 13:01:05 +02:00
Oliver Gierke
007a1ff582 DATAREST-1017 - Prepare next development iteration. 2017-04-19 13:01:02 +02:00
Oliver Gierke
ebc925804e DATAREST-1017 - Release version 2.5.9 (Hopper SR9). 2017-04-19 12:38:29 +02:00
Oliver Gierke
260799c492 DATAREST-1017 - Prepare 2.5.9 (Hopper SR9). 2017-04-19 12:37:52 +02:00
Oliver Gierke
3020861671 DATAREST-1017 - Updated changelog. 2017-04-19 12:37:48 +02:00
Oliver Gierke
e0ffb34b1c DATAREST-1016 - Updated changelog. 2017-04-19 11:50:51 +02:00
Michael J. Simons
86a5ca5ff0 DATAREST-1046 - Fix instructions how to manually add a validator.
Original pull request: #264.
2017-04-11 10:22:16 +02:00
Oliver Gierke
1abaab5ee8 DATAREST-1050 - PUT for create now makes sure the resource id is set on the instance to create.
So far, we handed the plain instance deserialized from the request body to the repository to persist it. That caused issues in PUT for create scenarios where the URI contains the identifier to be used for the aggregate to create and identifier generation being used in the backend. In that case the identifier submitted was never considered and subsequent requests would've created new instances, effectively breaking the idempotent nature of PUT.

We now make sure the backend identifier derived from the resource is set on the aggregate instance about to be created, so that backend can either accept that situation (new entity + manually defined identifier) or reject it (in case it insists on identifier generation).
2017-04-11 08:26:53 +02:00
Oliver Gierke
80f3c519d7 DATAREST-946 - Updated changelog. 2017-04-10 19:10:30 +02:00
Oliver Gierke
cef2811a32 DATAREST-1030 - Reinstantiate PATCH behaviour for associations.
We now completely opt out of merging values if the property is a linkable association.
2017-04-10 19:10:03 +02:00
Oliver Gierke
9207164c2e DATAREST-1018 - Prevent NullPointerException in UriToEntityConverter.
In case PersistentEntities exposes a managed type whose raw type currently doesn't have a PersistentEntity registered, the constructor of UriToEntityConverter ran into a NullPointerException.

We now explicitly check for null and skip those types.

Filed DATAREST-1021 for further improvements in the 3.0 time frame.
2017-03-07 14:50:34 +01:00
Oliver Gierke
7f8ff8c2a7 DATAREST-1014 - Avoid Java 8 API usage in AnnotatedEventHandlerInvoker.
Dropped the call to Method.getParameterCount() in favor of ….getParameterTypes().length as the former method was introduced in Java 8.
2017-03-03 11:39:35 +01:00
Oliver Gierke
370d7fed1b DATAREST-989 - After release cleanups. 2017-03-02 12:05:58 +01:00
Oliver Gierke
82e2cceecf DATAREST-989 - Prepare next development iteration. 2017-03-02 12:05:55 +01:00
Oliver Gierke
f92169d7fb DATAREST-989 - Release version 2.5.8 (Hopper SR8). 2017-03-02 11:30:05 +01:00
Oliver Gierke
969dac78ea DATAREST-989 - Prepare 2.5.8 (Hopper SR8). 2017-03-02 11:29:34 +01:00
Oliver Gierke
d0aa4cac9a DATAREST-989 - Updated changelog. 2017-03-02 11:29:29 +01:00
Oliver Gierke
ee3267bbe0 DATAREST-990 - Updated changelog. 2017-03-02 11:11:05 +01:00
Oliver Gierke
59b2243864 DATAREST-1003 - Entity resources don't answer arbitrary JSON requests.
Previously, when a request was sending an Accept header of some arbitrary *+json, the request was routed through the controllers and might have ended up producing a PersistentEntityResource that was then mapped using an uncustomized Jackson ObjectMapper. That has caused a huge JSON object to be unfolded which is highly undesirable.

We now only answer JSON requests to repository resources that contain an Accept header with any of the explicit JSON media types we got registered.

We also now make sure MVC is bootstrapped property for integration tests through the inclusion of DelegatingWebMvcConfiguration.
2017-03-01 21:37:00 +01:00