Skip to content

Commit c8d3a5b

Browse files
authored
Merge pull request #373 from kit-data-manager/development
PR for v1.5.8
2 parents c0d8d7a + 3af37e1 commit c8d3a5b

File tree

8 files changed

+44
-20
lines changed

8 files changed

+44
-20
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
5757
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
5858
- name: Build and push Docker image
59-
uses: docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d
59+
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991
6060
with:
6161
context: .
6262
push: true

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ Fixed
1414

1515
Security
1616

17+
## [1.5.8] - 2025-01-27
18+
Changed
19+
* ACL information no longer removed for Non-Administrator Users by @github-actions in https://github.com/kit-data-manager/base-repo/pull/381
20+
* Resources with state GONE are now visible to owners and administrators (introduced in repo-core v1.2.5)
21+
22+
Fixed
23+
24+
Security
25+
* Update dependency org.springframework.data:spring-data-elasticsearch to v5.4.2 by @renovate in https://github.com/kit-data-manager/base-repo/pull/372
26+
* Update plugin org.owasp.dependencycheck to v12.0.1 by @renovate in https://github.com/kit-data-manager/base-repo/pull/374
27+
* Update docker/build-push-action digest to ca877d9 by @renovate in https://github.com/kit-data-manager/base-repo/pull/378
28+
* Update plugin io.freefair.maven-publish-java to v8.12 by @renovate in https://github.com/kit-data-manager/base-repo/pull/377
29+
* Update plugin io.freefair.lombok to v8.12 by @renovate in https://github.com/kit-data-manager/base-repo/pull/376
30+
* Update dependency gradle to v8.12.1 by @renovate in https://github.com/kit-data-manager/base-repo/pull/379
31+
* Update plugin org.springframework.boot to v3.4.2 by @renovate in https://github.com/kit-data-manager/base-repo/pull/375
32+
* Update springDocVersion to v2.8.4 by @renovate in https://github.com/kit-data-manager/base-repo/pull/382
33+
* Update repo-core to v1.2.5
34+
35+
1736
## [1.5.7] - 2025-01-17
1837
Fixed
1938
* Fixed ignored Elastic configuration in https://github.com/kit-data-manager/base-repo/pull/367
@@ -308,7 +327,8 @@ Added
308327

309328
- First public version
310329

311-
[Unreleased]: https://github.com/kit-data-manager/base-repo/compare/v1.5.7...HEAD
330+
[Unreleased]: https://github.com/kit-data-manager/base-repo/compare/v1.5.8...HEAD
331+
[1.5.8]: https://github.com/kit-data-manager/base-repo/compare/v1.5.7...v1.5.8
312332
[1.5.7]: https://github.com/kit-data-manager/base-repo/compare/v1.5.6...v1.5.7
313333
[1.5.6]: https://github.com/kit-data-manager/base-repo/compare/v1.5.5...v1.5.6
314334
[1.5.5]: https://github.com/kit-data-manager/base-repo/compare/v1.5.4...v1.5.5

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
plugins {
2-
id 'org.springframework.boot' version '3.4.1'
2+
id 'org.springframework.boot' version '3.4.2'
33
id 'io.spring.dependency-management' version '1.1.7'
4-
id 'io.freefair.lombok' version '8.11'
5-
id 'io.freefair.maven-publish-java' version '8.11'
6-
id 'org.owasp.dependencycheck' version '12.0.0'
4+
id 'io.freefair.lombok' version '8.12'
5+
id 'io.freefair.maven-publish-java' version '8.12'
6+
id 'org.owasp.dependencycheck' version '12.0.1'
77
id 'org.asciidoctor.jvm.convert' version '4.0.4'
88
id 'net.researchgate.release' version '3.1.0'
99
id 'com.gorylenko.gradle-git-properties' version '2.4.2'
@@ -30,7 +30,7 @@ repositories {
3030
ext {
3131
set('javersVersion', "7.7.0")
3232
set('springBootVersion', "3.2.1")
33-
set('springDocVersion', "2.8.3")
33+
set('springDocVersion', "2.8.4")
3434
set('keycloakVersion', "19.0.0")
3535

3636
// directory for generated code snippets during tests
@@ -60,7 +60,7 @@ dependencies {
6060
implementation "org.springframework.boot:spring-boot-starter-mail"
6161
implementation "org.springframework.boot:spring-boot-starter-security"
6262
implementation "org.springframework.boot:spring-boot-starter-actuator"
63-
implementation 'org.springframework.data:spring-data-elasticsearch:5.4.1'
63+
implementation 'org.springframework.data:spring-data-elasticsearch:5.4.2'
6464

6565
implementation "org.springframework:spring-messaging:6.2.2"
6666

@@ -75,7 +75,7 @@ dependencies {
7575
implementation "org.springdoc:springdoc-openapi-starter-common:${springDocVersion}"
7676
implementation "org.springdoc:springdoc-openapi-starter-webmvc-api:${springDocVersion}"
7777

78-
implementation "edu.kit.datamanager:repo-core:1.2.4"
78+
implementation "edu.kit.datamanager:repo-core:1.2.5"
7979
implementation "edu.kit.datamanager:service-base:1.3.3"
8080

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

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/java/edu/kit/datamanager/repo/web/impl/DataResourceController.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ public ResponseEntity<TabulatorLocalPagination> findAllForTabulator(@RequestPara
203203
response.addHeader(CONTENT_RANGE_HEADER, ControllerUtils.getContentRangeHeader(page.getNumber(), pageRequest.getPageSize(), page.getTotalElements()));
204204
TabulatorLocalPagination tabulatorLocalPagination = TabulatorLocalPagination.builder()
205205
.lastPage(page.getTotalPages())
206-
.data(DataResourceUtils.filterResources(page.getContent()))
206+
//.data(DataResourceUtils.filterResources(page.getContent()))
207+
.data(page.getContent())
207208
.build();
208209
return ResponseEntity.ok().body(tabulatorLocalPagination);
209210
}
@@ -222,7 +223,8 @@ public ResponseEntity<List<DataResource>> findByExample(@RequestBody DataResourc
222223
//set content-range header for react-admin (index_start-index_end/total
223224
PageRequest request = ControllerUtils.checkPaginationInformation(pgbl);
224225
response.addHeader(CONTENT_RANGE_HEADER, ControllerUtils.getContentRangeHeader(page.getNumber(), request.getPageSize(), page.getTotalElements()));
225-
return ResponseEntity.ok().body(DataResourceUtils.filterResources(page.getContent()));
226+
// return ResponseEntity.ok().body(DataResourceUtils.filterResources(page.getContent()));
227+
return ResponseEntity.ok().body(page.getContent());
226228
}
227229

228230
@Override
@@ -276,9 +278,11 @@ public ResponseEntity put(@PathVariable("id") final String identifier,
276278

277279
if (currentVersion > 0) {
278280
//trigger response creation and set etag...the response body is set automatically
279-
return ResponseEntity.ok().eTag("\"" + result.getEtag() + "\"").header(VERSION_HEADER, Long.toString(currentVersion)).body(DataResourceUtils.filterResource(result));
281+
//return ResponseEntity.ok().eTag("\"" + result.getEtag() + "\"").header(VERSION_HEADER, Long.toString(currentVersion)).body(DataResourceUtils.filterResource(result));
282+
return ResponseEntity.ok().eTag("\"" + result.getEtag() + "\"").header(VERSION_HEADER, Long.toString(currentVersion)).body(result);
280283
} else {
281-
return ResponseEntity.ok().eTag("\"" + result.getEtag() + "\"").body(DataResourceUtils.filterResource(result));
284+
//return ResponseEntity.ok().eTag("\"" + result.getEtag() + "\"").body(DataResourceUtils.filterResource(result));
285+
return ResponseEntity.ok().eTag("\"" + result.getEtag() + "\"").body(result);
282286
}
283287
}
284288

src/test/java/edu/kit/datamanager/repo/test/integration/DataResourceControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,9 @@ public void testDeleteResourceAsAdmin() throws Exception {
798798

799799
this.mockMvc.perform(delete("/api/v1/dataresources/" + sampleResource.getId()).header("If-Match", etag).header(HttpHeaders.AUTHORIZATION,
800800
"Bearer " + adminToken).contentType("application/json")).andExpect(status().isNoContent());
801-
//from now on, the resource should be in state GONE...HTTP GET should fail
801+
//from now on, the resource should be in state GONE...HTTP GET still succeeds as admin (since repo-core 1.2.5)
802802
this.mockMvc.perform(get("/api/v1/dataresources/" + sampleResource.getId()).header(HttpHeaders.AUTHORIZATION,
803-
"Bearer " + adminToken)).andDo(print()).andExpect(status().isNotFound());
803+
"Bearer " + adminToken)).andDo(print()).andExpect(status().isOk());
804804

805805
}
806806

src/test/java/edu/kit/datamanager/repo/test/integration/DataResourceControllerTestWithoutVersioning.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,9 @@ public void testDeleteResourceAsAdmin() throws Exception {
800800

801801
this.mockMvc.perform(delete("/api/v1/dataresources/" + sampleResource.getId()).header("If-Match", etag).header(HttpHeaders.AUTHORIZATION,
802802
"Bearer " + adminToken).contentType("application/json")).andExpect(status().isNoContent());
803-
//from now on, the resource should be in state GONE...HTTP GET should fail
803+
//from now on, the resource should be in state GONE...HTTP GET still succeeds as admin (since repo-core 1.2.5)
804804
this.mockMvc.perform(get("/api/v1/dataresources/" + sampleResource.getId()).header(HttpHeaders.AUTHORIZATION,
805-
"Bearer " + adminToken)).andDo(print()).andExpect(status().isNotFound());
805+
"Bearer " + adminToken)).andDo(print()).andExpect(status().isOk());
806806

807807
}
808808

src/test/java/edu/kit/datamanager/repo/test/integration/DataResourceControllerTestWithoutVersioningAndAudit.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,9 +801,9 @@ public void testDeleteResourceAsAdmin() throws Exception {
801801

802802
this.mockMvc.perform(delete("/api/v1/dataresources/" + sampleResource.getId()).header("If-Match", etag).header(HttpHeaders.AUTHORIZATION,
803803
"Bearer " + adminToken).contentType("application/json")).andExpect(status().isNoContent());
804-
//from now on, the resource should be in state GONE...HTTP GET should fail
804+
//from now on, the resource should be in state GONE...HTTP GET still succeeds as admin (since repo-core 1.2.5)
805805
this.mockMvc.perform(get("/api/v1/dataresources/" + sampleResource.getId()).header(HttpHeaders.AUTHORIZATION,
806-
"Bearer " + adminToken)).andDo(print()).andExpect(status().isNotFound());
806+
"Bearer " + adminToken)).andDo(print()).andExpect(status().isOk());
807807

808808
}
809809

0 commit comments

Comments
 (0)