Commit Graph

152 Commits

Author SHA1 Message Date
Oliver Drotbohm
b17fed5fa6 DATAREST-1523 - Delombok production sources.
Hacking.
2020-08-11 16:53:15 +02:00
Oliver Drotbohm
9f62237dd3 DATAREST-1543 - Deprecate RepositoryRestConfiguration.getCorsRegistry().
Slightly tweaked the configuration model to rather handle the CorsRegistry via RepositoryRestConfigurer.configureRepositoryRestConfiguration(…) rather than RepositoryRestConfiguration itself. That allows moving of Spring WebMVC as a dependency in the core module.

The original methods exposing access to the CorsRegistry are now still available in deprecated form to not break existing clients.

Follow-up ticket: DATAREST-1542.
2020-07-03 15:06:41 +02:00
Oliver Drotbohm
d7f36b1180 DATAREST-1540 - Improvements in HandlerMapping implementation for Spring 5.3.
We now use Spring's path prefix capabilities to apply Spring Data REST's base path to its mappings. This was previously implemented by tweaking the matching conditions.

We now also pick up Spring 5.3's PathPatternParser and apply that to the custom HandlerMapping implementations we register.

Moved DelegatingHandlerMapping into the configuration package to be able to keep it around in package scope.

Deprecated RepositoryRestConfiguration.getBaseUri() as we have only supported paths for quite a while now. Moved all client code to ….getBasePath() instead.
2020-07-01 18:55:11 +02:00
Mark Paluch
1f28937389 DATAREST-1522 - Prepare next development iteration. 2020-06-25 11:58:20 +02:00
Mark Paluch
05c43601ca DATAREST-1522 - Release version 3.4 M1 (2020.0.0). 2020-06-25 11:48:51 +02:00
Oliver Drotbohm
48a312bb45 DATAREST-1537 - Upgrade security tests to Spring Security 5.3.3. 2020-06-24 23:59:33 +02:00
Oliver Drotbohm
a9576991fe DATAREST-1535 - Adapt to changes in Spring Framework 5.3.
We now implement getPatternParser() in DelegatingHandlerMapping introduced in Spring 5.3. Adapt to changes in CORS handling.
2020-06-24 23:52:45 +02:00
Oliver Drotbohm
46f2171b49 DATAREST-1536 - Fix automatic module names for tests. 2020-06-24 23:52:45 +02:00
Mark Paluch
5368d5d5c8 DATAREST-1516 - Prepare next development iteration. 2020-05-12 12:40:28 +02:00
Mark Paluch
a9592c98f5 DATAREST-1516 - Release version 3.3 GA (Neumann). 2020-05-12 12:28:23 +02:00
Mark Paluch
9835b36c0a DATAREST-1501 - Prepare next development iteration. 2020-04-28 15:11:42 +02:00
Mark Paluch
7c20c0daa0 DATAREST-1501 - Release version 3.3 RC2 (Neumann). 2020-04-28 15:03:53 +02:00
Mark Paluch
0f81b110fc DATAREST-1492 - Prepare next development iteration. 2020-03-31 15:08:04 +02:00
Mark Paluch
638e3f875f DATAREST-1492 - Release version 3.3 RC1 (Neumann). 2020-03-31 14:59:41 +02:00
Oliver Drotbohm
db5995eee0 DATAREST-762 - Collection resource's base link now forwards parameters.
We now use the current request's URI as base link for all links created for a collection resource. This especially has effect in the creation of pagination links as we now carry potentially applied critierias (induced by our Querydsl based filtering support) forward to the navigation links generated.
2020-03-30 22:50:21 +02:00
Oliver Drotbohm
4c17d54e9a DATAREST-1499, DATAREST-1500 - Cleanups.
Moved off Spring Framework deprecations for HttpMessageNotReadableException. This required some rearrangements of method signatures for types (hopefully) exclusively used by internal abstractions (some public, but not very friendly for user extension in the first place).

Switched to consistent use of Pageable.unpaged() instead of null. Switched to the use of new factory methods in Spring HATEOAS. Some Java 8 based improvements in request handling to simplify the implementation code. Deprecation of code that got obsolete due to the use of the factory methods.

Moved off some deprecations in Jackson APIs.

Removed a couple of unused imports. General avoidance of common warnings. Suppression where needed. Removed dead code in configuration.
2020-03-27 14:16:47 +01:00
Jens Schauder
cd11f47fc0 DATAREST-1482 - Prepare next development iteration. 2020-03-11 09:57:41 +01:00
Jens Schauder
d31ecc7503 DATAREST-1482 - Release version 3.3 M4 (Neumann). 2020-03-11 09:47:07 +01:00
Mark Paluch
7fb881fa23 DATAREST-1478 - Prepare next development iteration. 2020-02-12 15:04:21 +01:00
Mark Paluch
b09744fe31 DATAREST-1478 - Release version 3.3 M3 (Neumann). 2020-02-12 14:47:16 +01:00
Oliver Drotbohm
3775989ba6 DATAREST-1481 - Explicitly declare MongoDB driver dependency in integration tests. 2020-02-11 23:58:26 +01:00
Mark Paluch
7e2b0d4b9f DATAREST-1476 - Prepare next development iteration. 2020-01-17 09:47:49 +01:00
Mark Paluch
2e31e3c33d DATAREST-1476 - Release version 3.3 M2 (Neumann). 2020-01-17 09:39:03 +01:00
Mark Paluch
589b37eb8a DATAREST-1432 - Prepare next development iteration. 2020-01-16 16:11:54 +01:00
Mark Paluch
5c1d92ab95 DATAREST-1432 - Release version 3.3 M1 (Neumann). 2020-01-16 16:05:23 +01:00
Mark Paluch
52104eb662 DATAREST-1475 - Migrate GemFire tests to Geode.
The GemFire module is now a submodule of Spring Data for Apache Geode so we're now testing against the Geode toplevel module.
2020-01-16 10:47:22 +01:00
Christoph Strobl
bccd89b512 DATAREST-1471 - Upgrade to Apache Solr 8.4. 2020-01-15 07:53:39 +01:00
Christoph Strobl
62b89c4c9a DATAREST-1472 - Switch to com.mongodb.client.MongoClient. 2020-01-15 07:38:44 +01:00
Oliver Drotbohm
d8c3394cd7 DATAREST-1470 - Switched to use factory methods of RepresentationModel types. 2020-01-14 14:51:18 +01:00
Mark Paluch
88f49da22f DATAREST-1467 - Update copyright years to 2020. 2020-01-07 09:02:59 +01:00
Oliver Drotbohm
9010a9d132 DATAREST-1458 - Fixed rendering of compact view to association resources.
The usage of text/uri-list as media type was entirely broken and not even advertised in the reference docs anymore. It's now again supported for both to-one and to-many associations via Collections. Maps are rejected as they cannot be rendered as list of URIs correctly. Updated reference documentation accordingly.

Added a custom MapModel implementation of RepresentationModel as apparently using Maps with EntityModel does not unwrap the content properly due to [0].

[0] https://github.com/FasterXML/jackson-databind/issues/171
2019-11-29 17:17:35 +01:00
Greg Turnquist
b016c0b125 DATAREST-1356 - Polishing. 2019-10-21 13:03:04 -05:00
Ľubomír Varga
202a8aa302 DATAREST-1356 - Fix updating single associations.
Correct a regression regarding association links. Introduce several test cases to prove this situation is fixed regarding PUTs for association links.

Source of the bug: 554d6cb27b (diff-1d7c16fe1992fef13a47fa8ab8599718L317) flips the criteria from "not single" to "single" without checking for related impacts.
2019-10-21 13:02:45 -05:00
Mark Paluch
7e7767464c DATAREST-1419 - Prepare next development iteration. 2019-09-30 16:17:28 +02:00
Mark Paluch
ee6c55bcc1 DATAREST-1419 - Release version 3.2 GA (Moore). 2019-09-30 15:51:07 +02:00
Mark Paluch
e510640619 DATAREST-1420 - Prepare next development iteration. 2019-09-06 10:21:54 +02:00
Mark Paluch
ffa93761c9 DATAREST-1420 - Release version 3.2 RC3 (Moore). 2019-09-06 10:10:42 +02:00
Greg Turnquist
0b0ffab46b DATAREST-1421 - Polishing. 2019-08-08 10:54:53 -05:00
Greg Turnquist
9c56c3f217 DATAREST-1421 - Deprecate ALPS_JSON and ALPS_JSON_VALUE.
Instead, use Spring HATEAOS's MediaTypes.ALPS_JSON and ALPS_JSON_VALUE.
2019-08-08 10:54:45 -05:00
Mark Paluch
d936712cce DATAREST-1396 - Prepare next development iteration. 2019-08-05 15:53:01 +02:00
Mark Paluch
9704937ed8 DATAREST-1396 - Release version 3.2 RC2 (Moore). 2019-08-05 15:35:35 +02:00
Mark Paluch
c376051c24 DATAREST-1416 - Upgrade to Solr 8.2.0. 2019-08-02 10:18:07 +02:00
Oliver Drotbohm
244c57f712 DATAREST-1414 - Use I18N facilities of Spring HATEOAS more intensively.
We now rely on the MessageResolver capabilities of Spring HATEOAS to benefit of the optimizations in resource bundle resolution. Tweaked a couple of tests to make sure they properly use the resolver resorting to the default message the MessageResourceResolvable exposes.
2019-07-31 18:19:00 +02:00
Mark Paluch
19c261d7d0 DATAREST-1410 - Migrate remaining tests to AssertJ. 2019-07-31 10:06:03 +02:00
Mark Paluch
5eba301d62 DATAREST-1397 - Adapt to CORS changes in AbstractHandlerMapping.
We now enable CORS handling for all requests by overriding the newly introduced hasCorsConfigurationSource method. We cannot detect CORS configuration handling solely on the handler but require path headers to resolve repository interface mappings.
2019-06-21 15:40:07 +02:00
Christoph Strobl
532cfd53f4 DATAREST-1364 - Prepare next development iteration. 2019-06-14 15:12:51 +02:00
Christoph Strobl
0c0df55e89 DATAREST-1364 - Release version 3.2 RC1 (Moore). 2019-06-14 14:44:26 +02:00
Mark Paluch
49605b2b1a DATAREST-1351 - URL Cleanup. 2019-06-05 11:30:39 +02:00
Oliver Drotbohm
b0c0dfa517 DATAREST-1385 - Upgrade to latest Spring Security for tests. 2019-06-05 08:22:46 +02:00
Mark Paluch
03c2ae02aa DATAREST-1366 - Prepare next development iteration. 2019-05-13 12:17:53 +02:00