Skip to content

Commit 534a832

Browse files
authored
Merge pull request #115 from kit-data-manager/development
PR for v1.4.0
2 parents 7e1380c + 978e3cd commit 534a832

14 files changed

+1135
-163
lines changed

CHANGELOG.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,37 @@ Changed
1515

1616
Fixed
1717

18+
## [1.4.0] - 2023-03-17
19+
20+
Added
21+
- Creating resources from Zenodo JSON metadata has been added and is triggered by providing Content-Type 'application/vnd.zenodo.org+json' at POST /api/v1/dataresources/.
22+
- Added support for using PIDs (prefix/suffix) as resource id without escaping while accessing them, e.g., GET /api/v1/dataresources/<prefix>/<suffix>
23+
24+
Changed
25+
26+
- ContentInformation metadata now returns own ETags different from the ETag of the parent resource.
27+
- Creating resources from DataCite JSON metadata is now triggered by providing Content-Type 'application/vnd.datacite.org+json' at POST /api/v1/dataresources/.
28+
- The allowed size of description content has been changed from 255 to 10240 characters (see 'Migration Remarks').
29+
30+
Fixed
31+
32+
- Creating resource from DataCite JSON metadata has been fixed.
33+
- MediaType detection and providing mediaType by user now finally works for ContentInformation.
34+
35+
Security
36+
37+
* Bump service-base from 1.1.0 to 1.1.1
38+
* Bump repo-core from 1.1.1 to 1.1.2
39+
40+
### Migration Remarks
41+
42+
For existing databases, a manual update is required to adjust the column size.
43+
The query may depend on the used database system, for PostgreSQL this would be:
44+
45+
```
46+
alter table description alter column description type character varying(10240);
47+
```
48+
1849
## [1.3.0] - 2023-02-03
1950

2051
Security
@@ -118,7 +149,8 @@ Added
118149

119150
- First public version
120151

121-
[Unreleased]: https://github.com/kit-data-manager/base-repo/compare/v1.3.0...HEAD
152+
[Unreleased]: https://github.com/kit-data-manager/base-repo/compare/v1.4.0...HEAD
153+
[1.4.0]: https://github.com/kit-data-manager/base-repo/compare/v1.3.0...v1.4.0
122154
[1.3.0]: https://github.com/kit-data-manager/base-repo/compare/v1.2.0...v1.3.0
123155
[1.2.0]: https://github.com/kit-data-manager/base-repo/compare/v1.1.0...v1.2.0
124156
[1.1.0]: https://github.com/kit-data-manager/base-repo/compare/v1.0...v1.1.0

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/kitdm/base-repo)](https://hub.docker.com/r/kitdm/base-repo/tags)
77
![Docker Image Version (latest semver)](https://img.shields.io/docker/v/kitdm/base-repo)
88
[![SQAaaS badge shields.io](https://img.shields.io/badge/sqaaas%20software-silver-lightgrey)](https://api.eu.badgr.io/public/assertions/onNKx_lhTn68bPKnMAg-eQ "SQAaaS silver badge achieved")
9+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7660036.svg)](https://doi.org/10.5281/zenodo.7660036)
910

1011
This project contains the repository service microservice for the KIT DM infrastructure. The service provides
1112
data resource management, e.g. register DataCite-oriented metadata and upload/download content to data resources.
@@ -14,7 +15,7 @@ data resource management, e.g. register DataCite-oriented metadata and upload/do
1415

1516
In order to build this microservice you'll need:
1617

17-
* Java SE Development Kit 8 or higher
18+
* Java SE Development Kit 11 or higher
1819

1920
After obtaining the sources change to the folder where the sources are located perform the following steps:
2021

@@ -57,7 +58,7 @@ user@localhost:/home/user/base-repo$ ./build/libs/base-repo.jar
5758
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
5859
' |____| .__|_| |_|_| |_\__, | / / / /
5960
=========|_|==============|___/=/_/_/_/
60-
:: Spring Boot :: (v2.0.5.RELEASE)
61+
:: Spring Boot :: (v2.7.5)
6162
[...]
6263
1970-01-01 00:00:00.000 INFO 56918 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
6364

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ dependencies {
7878
implementation "org.springdoc:springdoc-openapi-data-rest:${springDocVersion}"
7979
implementation "org.springdoc:springdoc-openapi-webmvc-core:${springDocVersion}"
8080

81-
implementation "edu.kit.datamanager:repo-core:1.1.1"
82-
implementation "edu.kit.datamanager:service-base:1.1.0"
81+
implementation "edu.kit.datamanager:repo-core:1.1.2"
82+
implementation "edu.kit.datamanager:service-base:1.1.1"
8383

8484
//implementation "com.github.victools:jsonschema-generator:4.23.0"
8585

src/main/java/edu/kit/datamanager/repo/configuration/WebSecurityConfig.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@
2828
import org.springframework.context.annotation.Bean;
2929
import org.springframework.context.annotation.Configuration;
3030
import org.springframework.http.HttpMethod;
31-
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
3231
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
3332
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
3433
import org.springframework.security.config.annotation.web.builders.WebSecurity;
3534
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
3635
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
3736
import org.springframework.security.config.http.SessionCreationPolicy;
38-
import org.springframework.security.core.authority.mapping.SimpleAuthorityMapper;
3937
import org.springframework.security.web.authentication.www.BasicAuthenticationFilter;
4038
import org.springframework.security.web.firewall.DefaultHttpFirewall;
4139
import org.springframework.security.web.firewall.HttpFirewall;
@@ -113,7 +111,7 @@ public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
113111
public void configure(WebSecurity web) throws Exception {
114112
web.httpFirewall(allowUrlEncodedSlashHttpFirewall());
115113
}
116-
114+
117115
// @Bean
118116
// CorsConfigurationSource corsConfigurationSource(){
119117
// final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();

src/main/java/edu/kit/datamanager/repo/domain/TabulatorLocalPagination.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import lombok.Getter;
2222

2323
/**
24-
* Helper object for local pagination using the Tabulator.js library.
24+
* Helper object for local pagination using the Tabulator library.
2525
*
2626
* @author jejkal
2727
*/

src/main/java/edu/kit/datamanager/repo/elastic/DataResourceRepository.java

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.springframework.stereotype.Repository;
2323

2424
/**
25+
* Elastic repository for indexing DataResources.
2526
*
2627
* @author jejkal
2728
*/

0 commit comments

Comments
 (0)