Commit Graph

750 Commits

Author SHA1 Message Date
Spring Operator
bbb30ddec6 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 5 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 10 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 5 occurrences

Original pull request: #308
2019-03-18 11:48:50 -05:00
Oliver Gierke
b775fa705d DATAREST-932 - Updated changelog. 2016-12-21 19:35:34 +01:00
Oliver Gierke
66f1b8b18d DATAREST-862 - Updated changelog. 2016-12-21 18:46:38 +01:00
Oliver Gierke
7ac44276a3 DATAREST-937 - Polishing.
Moved the newly added test case to the end of the list. Formatting.

Original pull request: #240.
2016-12-06 09:38:12 +01:00
Craig Andrews
c45181d797 DATAREST-937 - Transient properties in JSON are now included in merge.
We now don't prematurely drop fields that don't have a persistent property exposed in DomainObjectReader. Doing so dropped values for transient fields as the latter are not exposed as persistent property in the first place. We still skip any nested merging though.

Original pull request: #240.
2016-12-06 09:38:12 +01:00
Ken Dombeck
2fe1b59e82 DATAREST-951 - Fixed example in sample in reference documentation.
Original pull request: #244.
2016-12-06 08:32:40 +01:00
Lukasz Kryger
96ae9d803f DATAREST-960 - Fixed typos in reference documentation.
Fix typo "returnBodyOnupdate" -> "returnBodyOnUpdate".

Original pull request: #242.
2016-12-02 19:41:31 +01:00
Oliver Gierke
3aa120b4d9 DATAREST-934 - Updated changelog. 2016-11-23 13:52:49 +01:00
Oliver Gierke
2f4c285b37 DATAREST-915 - Updated changelog. 2016-11-03 18:56:48 +01:00
Oliver Gierke
c729adabd7 DATAREST-919 - Merging of nested maps for PUT/PATCH requests now handles nested arrays and simple types. 2016-11-03 16:20:02 +01:00
Oliver Gierke
4391e24b36 DATAREST-931 - DomainObjectMerger now handles arrays with complex objects correctly.
We now explicitly manually merge array nodes that contain complex objects. Previously arrays would've been skipped and the subsequent Jackson update would wipe out all properties not contained in the original document even on PATCH requests.
2016-11-03 09:10:50 +01:00
Oliver Gierke
27e0e74fbf DATAREST-929 - Polishing.
Some formatting.
2016-10-26 12:11:33 +02:00
Oliver Gierke
e204a0a00e DATAREST-929 - EnumTranslatingDeserializers now handles container types correctly.
When translating enumerations, we now inspect the property and use a container type's value type as translation target.
2016-10-26 12:11:33 +02:00
Oliver Gierke
c5948e6690 DATAREST-575 - Fixed property lookup in MappedProperties.
Previously, MappedProperties didn't handle Jackson properties correctly, that do not expose a PersistentProperty, e.g. transient ones. That led to potential nullPointerExceptions in clients as the guarding hasPersistentPropertyForField(…) still answered true, as the backing cache contained an entry with a null value. We now skip those properties completely.
2016-10-23 20:43:46 +02:00
Oliver Gierke
e855f73af1 DATAREST-903 - Updated changelog. 2016-09-29 14:42:10 +02:00
Oliver Gierke
c5de60ee2d DATAREST-913 - After release cleanups. 2016-09-29 10:41:07 +02:00
Spring Buildmaster
dbb9c00c56 DATAREST-913 - Prepare next development iteration. 2016-09-29 08:32:38 +00:00
Spring Buildmaster
e902b09fe9 DATAREST-913 - Release version 2.4.6 (Gosling SR6). 2016-09-29 08:32:38 +00:00
Oliver Gierke
90b396daf4 DATAREST-913 - Prepare 2.4.6 (Gosling SR6). 2016-09-29 09:33:54 +02:00
Oliver Gierke
4d131e478f DATAREST-913 - Updated changelog. 2016-09-29 09:33:51 +02:00
Oliver Gierke
2abbcd0cd9 DATAREST-901 - After release cleanups. 2016-09-29 09:13:36 +02:00
Mark Paluch
6cf4e50e98 DATAREST-909 - Revert Jackson-aware Sort and Pageable translation.
Revert changes introduced by DATAREST-883 - Jackson-aware field translation in Sort and DATAREST-906 - Consider default pageable if Sort is null. The way how Sort translation was implemented breaks Sort and Pageable argument resolution for custom controllers as a domain type is always required. Argument resolution fails if the related domain type cannot be resolved.

 Related pull requests: #231, #222.
2016-09-27 09:12:05 +02:00
Mark Paluch
b4210049d6 DATAREST-906 - Consider default Pageable even if Sort is empty.
We now resolve default configured Pageable without dropping them if their Sort is empty. Previously, any default Pageable was dropped if its Sort was empty which caused null being handed to controller methods of @RepositoryRestController instances.

Original pull request: #231.
2016-09-23 15:31:46 +02:00
Spring Buildmaster
1f89fc8fd1 DATAREST-901 - Prepare next development iteration. 2016-09-20 15:03:11 +00:00
Spring Buildmaster
3ada6c8823 DATAREST-901 - Release version 2.4.5.RELEASE. 2016-09-20 15:03:11 +00:00
Oliver Gierke
57172af59f DATAREST-901 - Prepare 2.4.5 (Gosling SR5). 2016-09-20 15:29:21 +02:00
Oliver Gierke
cb9d227576 DATAREST-901 - Updated changelog. 2016-09-20 15:29:13 +02:00
Oliver Gierke
99a78a00e9 DATAREST-842 - Updated changelog. 2016-09-20 11:50:44 +02:00
Oliver Gierke
2bed28842d DATAREST-902 - Fixed order depending DuplicateLinkListingTest.
We now use the explicit identifier of the person just created, not a fixed 1 as other tests might have used that identifier already and that entity is not available anymore as a transaction rollback occured in those tests.
2016-09-20 07:46:34 +02:00
Oliver Gierke
ec95f9e14f DATAREST-883 - Polishing.
Switched to use @RequiredArgsConstructor where possible. Slightly rearranged test cases. Inlined JacksonMappingAwareSortTranslator to not expose it as bean unless necessary. Use static Jackson BeanClassIntrospector to avoid unnecessary recreation.

Original pull request: #222.
2016-09-19 08:29:43 +02:00
Mark Paluch
c48050bfa1 DATAREST-883 - Consider Jackson field names in Sort mapping.
We now consider Jackson field names when resolving Sort arguments. Domain model properties annotated with @JsonProperty("sales") can be specified by their Jackson-mapped field name in sort arguments. Field names are mapped to their according persistent property names to be used in repository query method sorting. Unknown field names are silently dropped.

Original pull request: #222.
2016-09-19 08:15:38 +02:00
Oliver Gierke
129ea2a5e3 DATAREST-837 - DomainObjectMerger doesn't nullify read-only properties on PUT.
PUT requests are supposed to replace the state of the resource with the request payload. However, Spring Data REST already handles a couple of domain object propoerties in a special way as theri values map to dedicated HTTP features: identifiers (URIs), last-modified dates (header) etc.

For users, it might be worthwhile to exclude other properties from being set by applying the payload, like properties that are completely under the control of the server, e.g. creation user and date, last modifying user etc. So far, users didn't have any means to exclude those properties as the handling of PUT requests treated every missing property of the payload as null value.

DomainObjectMerger now checks whether a property is actually writable before applying the implicit null value. The application can be disabled by annotation a property with @ReadOnlyProperty.
2016-08-18 13:11:47 +02:00
Oliver Gierke
0cae0e5e70 DATAREST-863 - Adapt to changes in Accept header lookup in Spring 4.3.
Spring 4.3's HeaderContentNegotiationStrategy switched from looking up the Accept header via the method returning a single (potentially comma separated) one to the method returning multiple headers in the first place. We now added an override of HttpServletRequestWrapper.getHeaders(…) to out custom adapter defaulting the media type to make sure the defaulting is visible and thus the right handler methods are looked up.

That previously missing caused the DelegatingHandlerMapping selecting the redirect to the HAL browser in case a request to the API root was sent without an accept header as the defaulting of the header to application/hal+json wasn't properly exposed anymore and the redirect to the browser — declaring a produces clause of text/html — was not causing any media type mismatch anymore.
2016-08-04 21:15:33 -07:00
Oliver Gierke
f8806cc43a DATAREST-803 - Updated changelog. 2016-07-28 09:03:21 +02:00
Oliver Gierke
dbedcfff8c DATAREST-804 - Updated changelog. 2016-07-28 09:03:13 +02:00
Oliver Gierke
10436a0df7 DATAREST-847 - RepositoryEntityCotroller.saveAndReturn(…) now uses save result.
Previously we handed the original entity to the AfterSaveEvent. This should work in most cases but actually repositories are allowed to return a completely different instance so that we now hand over the instance returned by the repository interaction to avoid potentially occurring issues.
2016-07-01 14:45:24 +02:00
Oliver Gierke
954c49be89 DATAREST-815 - Tweaked HalBrowser controller implementation to consider proxied requests.
We now use the APIs in place in Spring MVC to make sure we create proper redirects for requests that carry proxy headers so that the redirect target is still going through the proxy.
2016-04-27 15:34:34 +02:00
Oliver Gierke
8d249b4b9c DATAREST-802 - Updated changelog. 2016-04-06 23:14:27 +02:00
Oliver Gierke
e8ad9b1541 DATAREST-790 - Updated changelog. 2016-04-06 18:44:38 +02:00
Massimo Mangoni
4d1d07f3e5 DATAREST-790 - Fixed typos in the reference documentation.
Original pull request: #203.
2016-04-06 13:26:31 +02:00
Oliver Gierke
29783fe23e DATAREST-720 - HAL Browser fragment now considers the context path if set.
Removed some obsolete Maven dependency versions along the way.
2016-04-01 13:00:09 +02:00
Oliver Gierke
877070a56f DATAREST-782 - Updated changelog. 2016-03-18 13:19:28 +01:00
Oliver Gierke
2557a2401a DATAREST-766 - After release cleanups. 2016-02-23 14:18:16 +01:00
Spring Buildmaster
8bb2143919 DATAREST-766 - Prepare next development iteration. 2016-02-23 05:26:21 -08:00
Spring Buildmaster
01661f9763 DATAREST-766 - Release version 2.4.4 (Gosling SR4). 2016-02-23 05:26:20 -08:00
Oliver Gierke
62ebf7ae72 DATAREST-766 - Prepare 2.4.4 (Gosling SR4). 2016-02-23 12:56:55 +01:00
Oliver Gierke
648d9cd8d5 DATAREST-766 - Updated changelog. 2016-02-23 12:56:47 +01:00
Oliver Gierke
685da6d4eb DATAREST-756 - Updated changelog. 2016-02-12 22:11:09 +01:00
Oliver Gierke
0995aea18b DATAREST-766 - Tweaked version properties for Gosling SR4. 2016-02-11 19:49:15 +01:00
Oliver Gierke
12d08bf159 DATAREST-754 - Polishing.
Upgraded to Groovy 2.4.4. Polished sample domain types and repositories. Removed obsolete format registration in test cases for schema creation. Keep inlined null checks to make sure the IDE doesn't create unnecessary can-be-null warnings.

Original pull request: #206.
2016-01-25 17:51:10 +01:00