Commit Graph

1119 Commits

Author SHA1 Message Date
Oliver Drotbohm
a506520c80 DATAREST-1388 - RepositoryRestMvcConfiguration now reuses RepresentationModelProcessorInvoker from Spring HATEOAS. 2019-06-05 23:47:36 +02:00
Oliver Drotbohm
ac72c8c91e DATAREST-1387 - DelegatingHandlerMapping now handles HttpMediaTypeNotSupportedException. 2019-06-05 23:38:35 +02:00
Oliver Drotbohm
0401a5924d DATAREST-1386 - Tweak redirect setup for HAL explorer.
We now prepare the redirect to the HAL explorer as it expects it.
2019-06-05 23:34:06 +02:00
Oliver Drotbohm
71728be3ba DATAREST-1386 - Polishing.
Disable Javadoc generation for HAL Browser and Explorer modules as otherwise the build fails for those modules. HTTPS URIs where possible.
2019-06-05 12:33:18 +02:00
Oliver Drotbohm
e744c1c94f DATAREST-1386 - Add HAL Explorer module
We now ship a module containing the HAL Explorer [0] as an alternative to the HAL Browser which seems to be mostly out of maintenance and the WebJar refers to a jQuery version with a CVE. The new module still contains some customization code that we had in place for the browser to customize the POST/PUT forms to use the JSON Schema exposed for the aggregates.

The HAL Browser extension is now deprecated in the form that its inclusion causes a warn log to recommend switching to the explorer. A couple of general coding improvements: package scope for controllers and handler methods. Better use of constants and newer request mapping annotations.

Tweaked the configuration of static resource handlers to resolve the implicit cyclic dependency between the browser/explorer and the WebMVC module by introducing a Spring Factories backed extension SPI.

[0] https://github.com/toedter/hal-explorer
2019-06-05 11:54:19 +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
Oliver Drotbohm
3c635c3c81 DATAREST-1382 - Avoid to call BackendIdConverter if no id used for the request mapping.
Contrary to what's stated in the Javadoc of BackendIdConverter, BackendIdConverterHandlerMethodArgumentResolver now skips the invocation of ….fromRequestId(…) if no identifier path variable is found for the mapping of the method invoked.
2019-06-04 23:51:31 +02:00
Oliver Drotbohm
8b9ed0ca07 DATAREST-1381 - Polishing. 2019-06-04 23:51:31 +02:00
Oliver Drotbohm
d80070acb9 DATAREST-1381 - Improve documentation around @RepositoryRestController. 2019-06-04 23:51:31 +02:00
Mark Paluch
0d9a253e2d DATAREST-1384 - Create security policy readme. 2019-05-31 15:51:48 +02:00
Greg Turnquist
4ced1e9e43 DATAREST-1380 - Add Solr to upstream list. 2019-05-30 10:42:25 -05:00
Greg Turnquist
a2c9d5b9fe DATAREST-1380 - Introduce Jenkins. 2019-05-29 10:05:53 -05:00
Oliver Drotbohm
928faa7f9a DATAREST-1383 - Polishing.
Avoid repeated lookups of PersistentPropertyAccessor in DomainObjectReader for PATCH requests. Formatting.
2019-05-28 17:37:33 +02:00
Oliver Drotbohm
28787116a6 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:37:33 +02:00
Mark Paluch
339c3d26d0 DATAREST-1375 - Updated changelog. 2019-05-13 18:19:10 +02:00
Mark Paluch
c27f46c7b5 DATAREST-1374 - Updated changelog. 2019-05-13 14:59:28 +02:00
Mark Paluch
7014b22464 DATAREST-1366 - After release cleanups. 2019-05-13 12:17:54 +02:00
Mark Paluch
03c2ae02aa DATAREST-1366 - Prepare next development iteration. 2019-05-13 12:17:53 +02:00
Mark Paluch
d2abf3ccde DATAREST-1366 - Release version 3.2 M4 (Moore). 2019-05-13 11:59:50 +02:00
Mark Paluch
3782c3edcd DATAREST-1366 - Prepare 3.2 M4 (Moore). 2019-05-13 11:59:04 +02:00
Mark Paluch
293f93f7a0 DATAREST-1366 - Updated changelog. 2019-05-13 11:59:01 +02:00
Oliver Drotbohm
c31d5a5ee1 DATAREST-1358 - Updated changelog. 2019-05-10 14:18:14 +02:00
Oliver Drotbohm
5aa41e6023 DATAREST-1360 - Updated changelog. 2019-05-10 12:57:27 +02:00
Oliver Drotbohm
82b928848b DATAREST-1373 - Upgrade to API changes in Spring HATEOAS 1.0 M2. 2019-05-08 19:49:58 +02:00
Christoph Strobl
a00e21698e DATAREST-1349 - After release cleanups. 2019-04-11 12:00:21 +02:00
Christoph Strobl
b470f5239a DATAREST-1349 - Prepare next development iteration. 2019-04-11 12:00:20 +02:00
Christoph Strobl
d4659f1015 DATAREST-1349 - Release version 3.2 M3 (Moore). 2019-04-11 11:24:31 +02:00
Christoph Strobl
8e05cfb28d DATAREST-1349 - Prepare 3.2 M3 (Moore). 2019-04-11 11:23:56 +02:00
Christoph Strobl
6be42dd89d DATAREST-1349 - Updated changelog. 2019-04-11 11:23:54 +02:00
Mark Paluch
1b15634759 DATAREST-1362 - Exclude outdated transient ByteBuddy dependency.
With the upgrade to a newer Mockito version we also require an upgrade to a newer ByteBuddy version. Out Hibernate version pulls an older version of ByteBuddy and so we need to exclude the transient dependency to use the newer ByteBuddy version.
2019-04-10 08:57:37 +02:00
Oliver Drotbohm
4d16115a97 DATAREST-1344 - Updated changelog. 2019-04-01 20:56:32 +02:00
Oliver Drotbohm
207333fdd5 DATAREST-1335 - Updated changelog. 2019-04-01 19:37:03 +02:00
Oliver Drotbohm
7416d99bf8 DATAREST-1357 - Updated changelog. 2019-04-01 18:52:20 +02:00
Oliver Drotbohm
cba56c689c DATAREST-1334 - Updated changelog. 2019-04-01 18:49:24 +02:00
Spring Operator
3a0cba94a2 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 395 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: #352
2019-03-22 10:51:57 +01:00
Spring Operator
c40dab98a1 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.springframework.org/schema/beans/spring-beans.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* http://www.springframework.org/schema/gemfire/spring-gemfire.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/gemfire/spring-gemfire.xsd ([https](https://www.springframework.org/schema/gemfire/spring-gemfire.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 26 occurrences
* http://www.springframework.org/schema/beans with 2 occurrences
* http://www.springframework.org/schema/gemfire with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 14 occurrences

Original Pull Request: #329
2019-03-21 09:49:23 +01:00
Oliver Drotbohm
5f41d6664e DATAREST-1354 - Polishing. 2019-03-20 17:28:00 +01:00
Oliver Drotbohm
0900517e04 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:28:00 +01:00
Christoph Strobl
3122c8be59 DATAREST-1353 - Update test dependency for Apache Solr.
Related issue: DATASOLR-515
2019-03-20 15:25:51 +01:00
Spring Operator
4ac1659e0f 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 fixed successfully.

* http://www.apache.org/licenses/LICENSE-2.0 migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
* http://www.pivotal.io 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
* http://maven.apache.org/xsd/maven-4.0.0.xsd
* http://www.w3.org/2001/XMLSchema-instance

Original pull request: #307
2019-03-18 11:49:14 -05:00
Christoph Strobl
81fb3a2405 DATAREST-1318 - After release cleanups. 2019-03-07 10:07:30 +01:00
Christoph Strobl
40bfd50b5d DATAREST-1318 - Prepare next development iteration. 2019-03-07 10:07:29 +01:00
Christoph Strobl
185566a54c DATAREST-1318 - Release version 3.2 M2 (Moore). 2019-03-07 09:42:22 +01:00
Christoph Strobl
dfcd29ea6d DATAREST-1318 - Prepare 3.2 M2 (Moore). 2019-03-07 09:41:17 +01:00
Christoph Strobl
650958bf1d DATAREST-1318 - Updated changelog. 2019-03-07 09:41:15 +01:00
Oliver Drotbohm
dc10166679 DATAREST-1304 - EntityLookupConfiguration is now used in PUT for creation.
Previously the backend identifier derived from the URI was set as identifier on the object to be created in a PUT request. However, in case a custom entity lookup is used, this is not the identifier but an arbitrary property pointed to through user defined code, mostly a method reference.

We now use the newly introduced MethodInvocationRecorder API in Spring Data Commons to be able to obtain the property that is supposed to be used and set that to the value calculated. This requires the entity type for which the custom lookup is configured to be non-final as the invocation recording is build on top of proxies.

Related tickets: DATACMNS-1449.
2019-03-06 14:34:58 +01:00
Jeroen Reijn
6d0acfd997 DATAREST-1143 - Prefer ResourceNotFoundException over ResponseEntity.notFound().
This is to allow users to plug in custom exception handling to control these situations.

Original pull request: #284.
2019-03-05 15:46:05 +01:00
Oliver Drotbohm
017b69c4e1 DATAREST-1338 - JsonPatch handling is now able to traverse maps.
We're now able to correctly identify Map keys within JsonPatch paths so that e.g. people/Dave/name properly translates into a people['Dave'].name SpEL expression.

Streamlined the design of SpelPath to avoid duplicate parsing and properly express the difference between typed and untyped paths in the type hierarchy. Slightly refactored the type hierarchy so that only methods that make sense in either untyped or typed state appear on the instance returned (getLeafType(Class) was exposed on TypedSpelPath before, which was confusing).
2019-03-05 13:54:58 +01:00
Oliver Drotbohm
e6c816faad DATAREST-1348 - Upgrade to Spring Plugin 2.0 M1. 2019-03-04 17:02:27 +01:00