Version 1.1.0.M3
Backward incompatible changes
Make fully-qualified links are now the default links behavior
With this release Spring Content REST now produces fully-qualified links for content associated with an entity, rather than shortcut links. User found prior behavior confusing. Linkrels and links were difficult to differentiate from entity linkrels and links. Links will now be fully-qualified URIs to the content property and their owning linkrel will be named after the content property name, as the follows examples shows:
Given the following entity:
@Entity
public class Dvd {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@ContentId
private UUID contentId;
@ContentLength
private Long contentLength;
@MimeType
private String mimeType;
}
Spring Content REST will generate the following fully-qualified linkrel/link:
"_links" : {
"self" : {
...
},
"dvd" : {
...
},
"content" : {
"href" : "http://localhost:8080/dvds/1/content"
}
}
If you have client's that follow linkrels to content you may configure your application to behave as it has done in prior to releases by setting the property spring.content.rest.fullyQualifiedLinks=false
. However, this functionality is now deprecated and will be removed in a future release.
Issues Fixed
- 272; JPA data source connection leak #
- 258; InputStream has bean copy too many times in main memery
- 252; Failed to covert StoreFragments type
Other commits
Clarify StoreResolver docs
Update build badge to show build status of the default branch
Bumps
Bump aws-java-sdk from 1.11.811 to 1.11.836
Bump mockito-core from 3.3.3 to 3.4.6
Bump spring-cloud-dependencies from Hoxton.SR6 to Hoxton.SR7
Bump spring-boot-dependencies from 2.3.1.RELEASE to 2.3.2.RELEASE
Bump commons-text from 1.8 to 1.9
Bump docx4j-export-fo from 8.2.0 to 8.2.1
Bump docx4j-core from 8.2.0 to 8.2.1
Bump docx4j-JAXB-ReferenceImpl from 8.2.0 to 8.2.1
The maven coordinates for this release are as follows:-
<dependency>
<groupId>com.github.paulcwarren</groupId>
<artifactId>spring-content-XXX-boot-starter</artifactId>
<version>1.1.0.M3</version>
</dependency>
where XXX can be:-
Storage Modules
-
fs
for the Spring Content Filesystem Module -
s3
for the Spring Content S3 Module -
jpa
for the Spring Content JPA Module -
mongo
for the Spring Content Mongo ModuleAdditional Modules
-
renditions
for the Spring Content Renditions Module -
rest
for Spring Content REST Module -
cmis
for Spring Content CMIS Module -
solr
for the Spring Content Solr Module -
elasticsearch
for the Spring Content Elasticsearch Moduleand:-
-
spring-versions-jpa
for the Locking and Versioning Module