43 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
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
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
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
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
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
Mark Paluch
6bbf228bb1 DATAREST-992 - Remove references to Assert single-arg methods.
Replace references to Assert single-arg methods with references to methods accepting the test object and message.

Related ticket: SPR-15196.
2017-02-01 13:24:53 +01:00
Oliver Gierke
1eff4ba0bd DATAREST-966 - Prepare next development iteration. 2017-01-26 12:04:55 +01:00
Oliver Gierke
5a1b58911f DATAREST-966 - Release version 2.5.7 (Hopper SR7). 2017-01-26 11:33:51 +01:00
Oliver Gierke
5a5d6d73ce DATAREST-932 - Prepare next development iteration. 2016-12-21 19:33:41 +01:00
Oliver Gierke
134ef39544 DATAREST-932 - Release version 2.5.6 (Hopper SR6). 2016-12-21 19:04:46 +01:00
Oliver Gierke
4c97011b2d DATAREST-915 - Prepare next development iteration. 2016-11-03 18:20:10 +01:00
Oliver Gierke
6d20ab6df5 DATAREST-915 - Release version 2.5.5 (Hopper SR5). 2016-11-03 17:56:32 +01:00
Oliver Gierke
7b357db535 DATAREST-903 - Prepare next development iteration. 2016-09-29 14:20:09 +02:00
Oliver Gierke
e09b22bf94 DATAREST-903 - Release version 2.5.4 (Hopper SR4). 2016-09-29 13:54:03 +02:00
Mark Paluch
0a49b099bb 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:16 +02:00
Mark Paluch
5e163d1913 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:21:07 +02:00
Oliver Gierke
4e3b12db7d DATAREST-842 - Prepare next development iteration. 2016-09-20 11:19:00 +02:00
Oliver Gierke
dd90d3b32b DATAREST-842 - Release version 2.5.3 (Hopper SR3). 2016-09-20 10:54:50 +02:00
Oliver Gierke
74895680eb DATAREST-872 - Polishing.
Simplified types used for testing. Removed unnecessary repository interface.

Related pull request: #221.
2016-09-19 10:35:48 +02:00
Alex Leigh
3494c5eacc DATAREST-872 - PersistentEntityJackson2Module now serializes JsonTypeInfo correctly.
NestedEntitySerializer now overrides serializeWithType(…) so that @JsonTypeInfo is rendered properly.

Related pull request: #221.
2016-09-19 10:35:48 +02:00
Oliver Gierke
3b2c82da49 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:05:58 +02:00
Mark Paluch
9c14170334 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:05:58 +02:00
Oliver Gierke
95d62fb18c DATAREST-864 - NestedEntitySerializer now handles Maps correctly.
Previously, NestedEntitySerializer failed to handle Maps correctly as the logic to convert the found values to nested resources tried to handle the values as is, not explicitly looking at the values instead.

We now use an explicit code path to turn the values into resources so that links pointing to other resources are rendered correctly.

Original pull request: #219.
2016-09-19 07:15:25 +02:00
Oliver Gierke
7ab5efcf43 DATAREST-880 - Prevent nested-entity-as-resource handling for unwrapped properties.
We now exclude properties that are marked as to be unwrapped from getting the nested-entity-as-resource behavour applied as it doesn't make any sense.
2016-08-29 19:28:22 +02:00
Oliver Gierke
d58d628098 DATAREST-804 - Prepare next development iteration. 2016-06-15 14:17:52 +02:00
Oliver Gierke
c0262db1d3 DATAREST-804 - Release version 2.5.2 (Hopper SR2). 2016-06-15 13:45:52 +02:00
Oliver Gierke
c3bdae7520 DATAREST-802 - Prepare next development iteration. 2016-04-06 22:51:43 +02:00
Oliver Gierke
df7499608b DATAREST-802 - Release version 2.5.1 (Hopper SR1). 2016-04-06 22:32:15 +02:00
Oliver Gierke
69d62019d6 DATAREST-790 - Prepare next development iteration. 2016-04-06 16:38:18 +02:00
Oliver Gierke
c49a29a247 DATAREST-790 - Release version 2.5 GA (Hopper). 2016-04-06 16:35:59 +02:00
Oliver Gierke
e5a1f2d1cf DATAREST-794 - Upgraded to Solr 5.5 to make integration tests work again. 2016-04-01 10:42:18 +02:00
Oliver Gierke
05c723fe50 DATAREST-782 - Prepare next development iteration. 2016-03-18 11:15:51 +01:00
Oliver Gierke
03a720d1c0 DATAREST-782 - Release version 2.5 RC1 (Hopper). 2016-03-18 11:15:00 +01:00
Oliver Gierke
4430e78966 DATAREST-787 - Remove dependency to JSON Patch library.
Switched to own JSON Patch implementation built by Craig Walls for Spring Sync back in the days.
2016-03-18 09:47:27 +01:00
Oliver Gierke
6075f3052a DATAREST-782 - Fixed build after Spring 4.2.5 update.
Upgraded to JSONPath 1.1.0 as 0.9 is not supported with Spring 4.2 anymore. Tweaked integration tests due to changed semantics and internals of JSONPath >= 1.0.
2016-03-17 21:29:20 +01:00
Oliver Gierke
2be6b2b6a9 DATAREST-776, DATAREST-775 - Integration tests for lookup types and nested associations.
Added shop integration test example that shows and tests nested associations and both unique and collection lookup type references.
2016-02-29 19:40:12 +01:00
Oliver Gierke
892409da2c DATAREST-774 - Separated integration tests from core project to avoid classpath overlap.
Extracted store specific tests into separate test modules to prevent classpath overlap between projects. Those tests are now executed in an "it" build profile to prevent the tests being packaged for distribution on release.

Use Map-based repositories and mapping contexts for test in the Core and WebMvc module.

Slightly changed the configuration API for lookup types on RepositoryRestConfiguration.

Related ticket: DATAREST-776.
2016-02-29 19:40:10 +01:00