Commit Graph

599 Commits

Author SHA1 Message Date
Spring Operator
b410ff0824 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: #333
2019-03-22 10:25:50 +01:00
Oliver Drotbohm
42db4db742 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:33:10 +01:00
Spring Operator
83c00f24b7 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: #310
2019-03-18 11:47:47 -05:00
Mark Paluch
8d4eb84a21 DATAREST-1307 - Prepare next development iteration. 2019-01-10 10:46:19 +01:00
Mark Paluch
4fb53514a7 DATAREST-1307 - Release version 2.6.18 (Ingalls SR18). 2019-01-10 09:52:56 +01:00
Oliver Drotbohm
1813f10f45 DATAREST-1321 - Polishing. 2019-01-08 12:13:10 +01:00
Oliver Drotbohm
3fb9ad51d6 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 12:12:38 +01:00
Mark Paluch
a8aa12e97d DATAREST-1330 - Update copyright years to 2019. 2019-01-02 12:19:17 +01:00
Mark Paluch
b5ccdad709 DATAREST-1293 - Prepare next development iteration. 2018-11-27 11:10:57 +01:00
Mark Paluch
066d73b896 DATAREST-1293 - Release version 2.6.17 (Ingalls SR17). 2018-11-27 10:15:45 +01:00
Mark Paluch
599a8f61be DATAREST-1283 - Prepare next development iteration. 2018-10-15 13:55:49 +02:00
Mark Paluch
a51a9f3a62 DATAREST-1283 - Release version 2.6.16 (Ingalls SR16). 2018-10-15 12:56:31 +02:00
Mark Paluch
8c742c502b DATAREST-1270 - Prepare next development iteration. 2018-09-10 10:01:43 +02:00
Mark Paluch
1121c4f938 DATAREST-1270 - Release version 2.6.15 (Ingalls SR15). 2018-09-10 09:30:36 +02:00
Oliver Gierke
3eb0e1551a DATAREST-1274 - JsonPatch paths now properly verify multi-digit indexes. 2018-08-08 08:53:01 +02:00
Oliver Gierke
8c2aecce6c 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 16:25:23 +02:00
Oliver Gierke
8e7665ce6a 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 11:05:49 +02:00
Mark Paluch
f883943741 DATAREST-1252 - Prepare next development iteration. 2018-07-27 11:09:39 +02:00
Mark Paluch
dbb3d45bfb DATAREST-1252 - Release version 2.6.14 (Ingalls SR14). 2018-07-27 09:21:39 +02:00
Oliver Gierke
94275e6b84 DATAREST-1259 - Removed obsolete bean definition for HttpRequestHandlerAdapter. 2018-07-10 12:33:43 +02:00
Florian Lüdiger
be4e028667 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:35:22 +02:00
Mark Paluch
347e9e5e60 DATAREST-1243 - Prepare next development iteration. 2018-06-13 14:42:33 +02:00
Mark Paluch
cd3ff4df26 DATAREST-1243 - Release version 2.6.13 (Ingalls SR13). 2018-06-13 10:48:53 +02:00
Oliver Gierke
1a5bca7152 DATAREST-1250 - Polishing.
Added unit test to verify new behavior and prevent regressions. Fixed author capitalization.
2018-06-05 10:14:41 +02:00
tigger
f6a7da871e 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:33 +02:00
Oliver Gierke
d377237181 DATAREST-1249 - Polishing. 2018-05-30 10:48:36 +02:00
Oliver Gierke
c404e79365 DATAREST-1249 - Backport of tests.
The issue doesn't seem to need a fix in this branch as DomainObjectReader already contains the guard we apparently had lost when moving to 3.0.
2018-05-30 10:48:26 +02:00
Mark Paluch
e5052ed1c8 DATAREST-1226 - Prepare next development iteration. 2018-05-08 11:56:07 +02:00
Mark Paluch
4580619d87 DATAREST-1226 - Release version 2.6.12 (Ingalls SR12). 2018-05-08 10:50:35 +02:00
Mark Paluch
ec157294f8 DATAREST-1185 - Prepare next development iteration. 2018-04-04 14:58:03 +02:00
Mark Paluch
70d6bb241a DATAREST-1185 - Release version 2.6.11 (Ingalls SR11). 2018-04-04 14:21:29 +02:00
Oliver Gierke
83eba22a36 DATAREST-1222 - Switched to SimpleEvaluationContext for SpEL-based PATCH handling. 2018-03-28 09:56:22 +02:00
Oliver Gierke
4c71f818b6 DATAREST-1219 - Removed explicit declaration of Jackson library versions. 2018-03-27 19:54:28 +02:00
Oliver Gierke
9063881f14 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:07:30 +01:00
Mark Paluch
a219c1a297 DATAREST-1161 - Prepare next development iteration. 2018-01-24 11:40:28 +01:00
Mark Paluch
f916233f41 DATAREST-1161 - Release version 2.6.10 (Ingalls SR10). 2018-01-24 11:19:08 +01:00
Tobias Weiß
f3a0e111e6 DATAREST-1176 - RepositoryRestConfiguration now allows to disable the default exposure.
The default exposure of repository methods is now controlled via RepositoryRestConfiguration.setExposeRepositoryMethodsByDefault(…). If set to true (the default), a repository that is detected for exposure (which in turn can be controlled via RepositoryDetectionStrategy) will have default resources exposed in case of the mere presence of CRUD methods. Setting this to false will require you to explicitly annotated those methods with @RestResource.

Added RepositoryRestConfiguration.disableDefaultExposure() to set the RepositoryDetectionStategy to ANNOTATED and disables default method exposure in one go. That can be exposed via a Spring Boot configuration property downstream.
2018-01-24 09:14:15 +01:00
Simon Allegraud
ce17416e16 DATAREST-1181 - Prevent NullPointerException during JsonLateObjectEvaluator.evaluate(…).
Original pull request: #287.
2018-01-18 13:49:46 +01:00
Oliver Gierke
9b0f0c7101 DATAREST-1174 - Enable constructor properties to make sure WrappedPropertiesUnitTests continue to work.
Removed Lombok constructor and accessor generation to avoid having to deal with the changed default in Lombok 1.16.20 not generating @ConstructorProperties by default anymore.
2018-01-10 12:53:57 +01:00
Mark Paluch
c07fc27f63 DATAREST-1150 - Prepare next development iteration. 2017-11-27 15:56:38 +01:00
Mark Paluch
6f83d86552 DATAREST-1150 - Release version 2.6.9 (Ingalls SR9). 2017-11-27 15:17:06 +01:00
Oliver Gierke
1bc7982d52 DATAREST-1152 - Overhaul of patch expression handling.
Significantly refactored the way that patch path expressions are handled and evaluated. The new design is centered around SpelPath that is aware of the original path as well as the derived SpEL expression. That SpelPath then requires clients to bind it to a type so that the original path can be validated (and rejected if invalid) and provide API to read, set, copy and move values backed by the original path. Both SpelPath and TypedSpelPath instances are cached to avoid repeated creation.

PatchOperation implementations now provide more fluent factory methods, in some cases via intermediate builders. Removed a lot of obsolete code that created JsonNodes from a list of PatchOperations as we don't actually use that functionality anywhere. Removed obsolete generics where possible.
2017-10-25 17:35:29 +02:00
Simmo Saan
28bb6abfea DATAREST-1148 - Fix eager toString() call on domain object in ResourceStatus.
Originl pull request: #282.
2017-10-12 23:12:50 +02:00
Oliver Gierke
9cf10c6a7f DATAREST-1128 - Prepare next development iteration. 2017-10-11 19:00:12 +02:00
Oliver Gierke
0eab5ea1a2 DATAREST-1128 - Release version 2.6.8 (Ingalls SR8). 2017-10-11 16:42:43 +02:00
Oliver Gierke
d47e87aee0 DATAREST-1006 - Polishing.
Fixed assertions to use Hamcrest instead of AssertJ.
2017-10-10 09:28:08 +02:00
Oliver Gierke
dde3d18f41 DATAREST-1006 - Polishing.
Added unit test on MappingProperties directly.

Original pull request: #258.
2017-10-04 11:35:11 +02:00
Mathias Düsterhöft
7704a435d9 DATAREST-1006 - MappedProperties now skips all ignored properties.
Original pull request: #258.
2017-10-04 11:35:08 +02:00
Oliver Gierke
d330455e53 DATAREST-1137 - All patch operations now verify path expressions.
We now make sure that all patch operations now get the path they're supposed to be applied to verified before execution.
2017-09-25 19:11:22 +02:00
Oliver Gierke
1b959bd8f4 DATAREST-1132 - Fixed @BasePathAwareController annotation lookup from CGLib proxies.
We now inspect the user class of the given bean type in BasePathAwareHandlerMapping.isHandler(…). We can't use AnnotationUtils as @RepositoryRestController is also annotated with @BasePathAwareController but must not be handled by this mapping.
2017-09-25 12:02:55 +02:00