629 Commits

Author SHA1 Message Date
Oliver Drotbohm
b5e239208e DATAREST-1383 - Polishing.
Avoid repeated lookups of PersistentPropertyAccessor in DomainObjectReader for PATCH requests. Formatting.
2019-05-28 17:33:17 +02:00
Oliver Drotbohm
28ff3bd738 DATAREST-1383 - PATCH requests now skip application of values for backend read-only properties.
MappedProperties now immediately drops non-writable properties when created for deserialization. Previously those properties would have to be annotated with @JsonProperty(access = Access.READ_ONLY) explicitly to avoid them being considered.
2019-05-28 17:29:52 +02:00
Oliver Drotbohm
277e71f007 DATAREST-1335 - Prepare next development iteration. 2019-04-01 19:35:51 +02:00
Oliver Drotbohm
ba40be39d6 DATAREST-1335 - Release version 3.0.14 (Kay SR14). 2019-04-01 19:05:43 +02:00
Spring Operator
eb99ce0141 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 392 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: #334
2019-03-22 10:26:15 +01:00
Oliver Drotbohm
23c7020913 DATAREST-1354 - Polishing. 2019-03-20 17:25:26 +01:00
Oliver Drotbohm
a1e69d7ccc DATAREST-1354 - Avoid exceptions for missing enum value translations.
We now use a dedicated implementation of MessageSourceResolvable to avoid missing enum value translations actually causing exceptions. That also allows us to defer the calculation of the default (potentially translated in a default way).
2019-03-20 17:25:24 +01:00
Spring Operator
b63c737b63 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: #311
2019-03-18 11:47:27 -05:00
Oliver Drotbohm
e849e385cf DATAREST-1332 - Polishing. 2019-02-07 21:01:10 +01:00
Oliver Drotbohm
e4fc7ae65a DATAREST-1332 - Fixed regression in CORS request handling.
The lookup of the RequestMappingInfo in exposeEffectiveLookupPathKey(…) yields null for CORS preflight requests to resources that do not support OPTIONAL explicitly. We now guard against that to avoid a subsequent NullPointerException.
2019-02-07 21:00:51 +01:00
Mark Paluch
8f17a5bd23 DATAREST-1308 - Prepare next development iteration. 2019-01-10 12:03:25 +01:00
Mark Paluch
0e3c520a7e DATAREST-1308 - Release version 3.0.13 (Kay SR13). 2019-01-10 11:10:23 +01:00
Oliver Drotbohm
cde9196f54 DATAREST-1321 - Lookup types can now produce non-String reference values.
Previously we assumed lookup types to always result in String based values. We now loosen that constraint to also allow other scalar types, mostly targeting numeric types like long and integer.
2019-01-08 11:50:49 +01:00
Mark Paluch
93d3d506dd DATAREST-1330 - Update copyright years to 2019. 2019-01-02 12:18:12 +01:00
Oliver Drotbohm
747a949fb6 DATAREST-1322 - Fix proxy detection for Hibernate 5+ compatibility.
Switched to Spring Data Commons' ProxyUtils for a proxy detection mechanism that supports Hibernate 5 proxies.
2018-12-20 17:19:24 +01:00
Mark Paluch
a4e5f3535f DATAREST-1292 - Prepare next development iteration. 2018-11-27 12:16:33 +01:00
Mark Paluch
76fc7db532 DATAREST-1292 - Release version 3.0.12 (Kay SR12). 2018-11-27 11:45:50 +01:00
Oliver Gierke
64334bab00 DATAREST-1294 - Polishing.
Aligned with general request attribute naming conventions and prefixed the one we now use with the class' name. Altered the local attribute name to EFFECTIVE_REPOSITORY_RESOURCE_LOOKUP_PATH.

Renamed the constant holding the name from …_KEY to …_ATTRIBUTE.
2018-10-18 15:59:00 +02:00
Oliver Gierke
48f5fb956c DATAREST-1294 - Expose effective repository lookup path as request attribute.
We now expose a partially resolved PathPattern to contain the explicit repository base path so that the subpaths can be grouped around the individual repositories exposed.

Related ticket: spring-projects/spring-boot#14872
2018-10-18 12:43:56 +02:00
Mark Paluch
b4972dd6fb DATAREST-1284 - Prepare next development iteration. 2018-10-15 12:28:12 +02:00
Mark Paluch
fa14f5e0d8 DATAREST-1284 - Release version 3.0.11 (Kay SR11). 2018-10-15 12:00:39 +02:00
Mark Paluch
844dca47d9 DATAREST-1269 - Prepare next development iteration. 2018-09-10 13:52:26 +02:00
Mark Paluch
d6b3e306d5 DATAREST-1269 - Release version 3.0.10 (Kay SR10). 2018-09-10 12:52:18 +02:00
Oliver Gierke
ad2c635791 DATAREST-1274 - JsonPatch paths now properly verify multi-digit indexes. 2018-08-08 08:44:50 +02:00
Oliver Gierke
2c8fb45881 DATAREST-1248 - SortTranslator now considers read-only properties sortable.
MappedProperties now exposes a factory method that uses the Jackson introspector for serialization (instead of deserialization) which now also includes read-only properties. Previously, read-only ones were not considered as they are excluded from the metadata if it is looked up for deserialization.
2018-08-07 15:44:33 +02:00
Oliver Gierke
994eed6e27 DATAREST-1273 - Properly support adding to collections via indexes in JsonPatch expressions.
We now support adding a to a collection via JsonPatch expressions by using the collection's size as target index. Contrary to paths pointing to existing collection elements we cannot determine the type of the object to be created. Thus, we fall back to the common element type of all existing collection elements. We also reject indexes pointing to elements with an index greater than the current collection's size.
2018-08-07 10:50:15 +02:00
Mark Paluch
d5e09b7243 DATAREST-1254 - Prepare next development iteration. 2018-07-26 15:23:23 +02:00
Mark Paluch
9cb5531ac6 DATAREST-1254 - Release version 3.0.9 (Kay SR9). 2018-07-26 14:44:01 +02:00
Oliver Gierke
4532a79f41 DATAREST-1259 - Removed obsolete bean definition for HttpRequestHandlerAdapter. 2018-07-10 12:33:36 +02:00
Florian Lüdiger
c3b1da730f DATAREST-810 - Fix minor typo in Javadoc.
Original pull request: #295.

$ Conflicts:
$	spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryEntityController.java
2018-07-04 16:32:58 +02:00
Oliver Gierke
954416a2b9 DATAREST-1256 - Upgraded to Spring HATEOAS 0.25.0.BUILD-SNAPSHOT.
Adapted RepositoryRestMvcConfiguration to now create a shared fallback ObjectMapper and avoid to register it as Spring Bean. Adapted test cases that previously were relying on such a bean being present.

Adapted test cases to verify on the correct ALPS document structure (see spring-projects/spring-hateoas#665).
2018-07-02 15:19:00 +02:00
Mark Paluch
4ca86fc746 DATAREST-1244 - Prepare next development iteration. 2018-06-13 21:24:34 +02:00
Mark Paluch
3cf81df693 DATAREST-1244 - Release version 3.0.8 (Kay SR8). 2018-06-13 15:13:01 +02:00
Oliver Gierke
ac2d50dc90 DATAREST-1251 - PersistentEntityProjector now uses lambdas instead of anonymous inner classes. 2018-06-13 14:43:59 +02:00
Oliver Gierke
70eafa5fd1 DATAREST-1198 - Polishing.
Fixed @since tag in new converter implementation as we're going to backport the fix to Kay. Simplified converter setup in RepositoryRestMvcConfiguration to expose less API until someone actually requests access.

Original pull request: #290.
2018-06-13 10:20:37 +02:00
Mark Paluch
dc22044445 DATAREST-1198 - Add Converter to convert String to javax.naming.ldap.LdapName.
We now provide and configure a converter for String to LdapName conversion so Spring Data LDAP can be used with Spring Data REST without further configuration.

Original pull request: #290.
2018-06-13 10:20:37 +02:00
Oliver Gierke
8966907ea0 DATAREST-1250 - Polishing.
Added unit test to verify new behavior and prevent regressions. Fixed author capitalization.
2018-06-05 10:13:21 +02:00
tigger
d0283bf177 DATAREST-296 - ResourceMetadataHandlerMethodArgumentResolver now properly implements ….supports(…).
ResourceMetadataHandlerMethodArgumentResolver.supports(…) now properly checks for ResourceMetadata. It previously checked for RepositoryInformation which is probably a left-over from a previous state of the codebase and has been unnoticed so far as the class is only used as a direct dependency of other HandlerMethodArgumentResolvers.
2018-06-05 10:13:21 +02:00
Oliver Gierke
9db9bc3425 DATAREST-1249 - Polishing. 2018-05-30 11:04:47 +02:00
Oliver Gierke
778fdf48f0 DATAREST-1249 - DomainObjectMerger now properly binds to uninitialized target collections. 2018-05-30 10:25:02 +02:00
Mark Paluch
e6a0652482 DATAREST-1227 - Prepare next development iteration. 2018-05-08 15:04:27 +02:00
Mark Paluch
07b056d8fa DATAREST-1227 - Release version 3.0.7 (Kay SR7). 2018-05-08 14:15:28 +02:00
Mark Paluch
66f2a31ca9 DATAREST-1206 - Prepare next development iteration. 2018-04-04 16:42:31 +02:00
Mark Paluch
164bc5c697 DATAREST-1206 - Release version 3.0.6 (Kay SR6). 2018-04-04 15:53:22 +02:00
Oliver Gierke
cba8b3bcf9 DATAREST-1222 - Switched to SimpleEvaluationContext for SpEL-based PATCH handling. 2018-03-28 09:57:05 +02:00
Oliver Gierke
dfd7f11edf DATAREST-1219 - Removed explicit declaration of Jackson library versions. 2018-03-27 19:54:23 +02:00
Oliver Gierke
1b69df0f80 DATAREST-1215 - Added project.root configuration to make JavaDoc generation work again.
Related ticket: https://github.com/spring-projects/spring-data-build/issues/527.
2018-03-14 10:06:15 +01:00
Mark Paluch
5f1fb948ce DATAREST-1200 - Prepare next development iteration. 2018-02-28 10:43:34 +01:00
Mark Paluch
9c57b4c8a1 DATAREST-1200 - Release version 3.0.5 (Kay SR5). 2018-02-28 10:14:58 +01:00
Mark Paluch
cde73a530b DATAREST-1187 - Prepare next development iteration. 2018-02-19 20:29:07 +01:00