-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CIRC-1893 Hold Shelf Expiration Date does not respect Closed Library Dates (#1357) * CIRC-1893-2 Added logs * CIRC-1893-2 Added logs * CIRC-1893-2 Added ZoneSameInstant with tenantTimeZone * CIRC-1893 Removed Logs (cherry picked from commit a521a1e) * CIRC-1946 Add field, "loan.additionalInfo" to notice context (cherry picked from commit 29c86d5) * CIRC-1954: Drools 7.74.1, xstream 1.4.20 Upgrade Drools from 7.73.0.Final to 7.74.1.Final. This indirectly upgrades xstream from 1.4.19 to 1.4.20 fixing Denial of Service (DoS): https://nvd.nist.gov/vuln/detail/CVE-2022-41966 Note that our last attempt to upgrade to Drools 8 failed: #1214 https://issues.folio.org/browse/CIRC-1676 (cherry picked from commit 4f30fb3) * CIRC-1962: RMB 35.1.1, Vert.x 4.4.6, mod-pubsub-client 2.11.2 Upgrade RMB/Vert.x from Orchid version to Poppy version. Upgrade RMB from 35.0.4 to 35.1.1. Upgrade Vert.x from 4.3.5 to 4.4.6. Upgrade Log4j from 2.19.0 to 2.20.0. Upgrade mod-pubsub-client from 2.7.0 to 2.11.2. The RMB upgrade requires to upgrade Vert.x, Log4j and mod-pubsub-client to ensure compatible version, for details see https://github.com/folio-org/raml-module-builder/blob/master/doc/upgrading.md#version-351 The mod-pubsub-client upgrade indirectly removes the spring-expression dependency that has out of memory vulnerabilities: https://nvd.nist.gov/vuln/detail/CVE-2023-20863 , https://nvd.nist.gov/vuln/detail/CVE-2023-20861 (cherry picked from commit 5285667) * Update NEWS * [maven-release-plugin] prepare release v24.0.6 * [maven-release-plugin] prepare for next development iteration --------- Co-authored-by: Pavankumar <[email protected]> Co-authored-by: Niels Erik Nielsen <[email protected]> Co-authored-by: Julian Ladisch <[email protected]>
- Loading branch information
1 parent
5693eda
commit 175800e
Showing
32 changed files
with
467 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/org/folio/circulation/domain/LoanHistory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.folio.circulation.domain; | ||
|
||
import io.vertx.core.json.JsonObject; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
import static lombok.AccessLevel.PRIVATE; | ||
import static org.folio.circulation.support.json.JsonPropertyFetcher.getObjectProperty; | ||
import static org.folio.circulation.support.json.JsonPropertyFetcher.getProperty; | ||
|
||
@AllArgsConstructor(access = PRIVATE) | ||
@ToString(onlyExplicitlyIncluded = true) | ||
@Getter | ||
public class LoanHistory { | ||
private final String id; | ||
@ToString.Include | ||
private final JsonObject representation; | ||
private final String operation; | ||
private final Loan loan; | ||
|
||
public static LoanHistory from(JsonObject representation) { | ||
return new LoanHistory(getProperty(representation, "id"), | ||
representation, getProperty(representation, "operation"), | ||
Loan.from(getObjectProperty(representation, "loan"))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.