Merge pull request #11008 from DSpace/dependabot/maven/build-tools-0ef32859ab

Bump the build-tools group across 1 directory with 6 updates
This commit is contained in:
Tim Donohue
2025-07-28 16:11:00 -05:00
committed by GitHub
6 changed files with 20 additions and 9 deletions

View File

@@ -120,7 +120,7 @@ public class LDNInboxController {
}
} catch (SQLException sqle) {
throw new DSpaceBadRequestException("Notify Service [" + notification.getOrigin()
+ "] unknown. LDN message can not be received.");
+ "] unknown. LDN message can not be received.");
}
}
if (configurationService.getBooleanProperty("ldn.notify.inbox.block-untrusted-ip", true)) {
@@ -138,7 +138,7 @@ public class LDNInboxController {
}
} catch (SQLException sqle) {
throw new DSpaceBadRequestException("Notify Service [" + notification.getOrigin()
+ "] unknown. LDN message can not be received.");
+ "] unknown. LDN message can not be received.");
}
}
}

View File

@@ -1469,6 +1469,7 @@ public class CollectionRestRepositoryIT extends AbstractControllerIntegrationTes
authorizeService.removePoliciesActionFilter(context, eperson, Constants.WRITE);
}
@Test
public void patchCollectionMetadataAuthorized() throws Exception {
runPatchMetadataTests(admin, 200);
}

View File

@@ -913,6 +913,7 @@ public class WorkflowItemRestRepositoryIT extends AbstractControllerIntegrationT
*
* @throws Exception
*/
@Test
public void validationErrorsRequiredMetadataTest() throws Exception {
context.turnOffAuthorisationSystem();
@@ -936,6 +937,7 @@ public class WorkflowItemRestRepositoryIT extends AbstractControllerIntegrationT
XmlWorkflowItem witem = WorkflowItemBuilder.createWorkflowItem(context, col1)
.withTitle("Workflow Item 1")
.withIssueDate("2017-10-17")
.grantLicense()
.build();
//4. a workflow item without the dateissued required field
@@ -947,12 +949,12 @@ public class WorkflowItemRestRepositoryIT extends AbstractControllerIntegrationT
String authToken = getAuthToken(eperson.getEmail(), password);
getClient(authToken).perform(get("/api/workflow/worfklowitems/" + witem.getID()))
getClient(authToken).perform(get("/api/workflow/workflowitems/" + witem.getID()))
.andExpect(status().isOk())
.andExpect(jsonPath("$.errors").doesNotExist())
;
getClient(authToken).perform(get("/api/workflow/worfklowitems/" + witemMissingFields.getID()))
getClient(authToken).perform(get("/api/workflow/workflowitems/" + witemMissingFields.getID()))
.andExpect(status().isOk())
.andExpect(jsonPath("$.errors[?(@.message=='error.validation.required')]",
Matchers.contains(

View File

@@ -2621,6 +2621,7 @@ public class WorkspaceItemRestRepositoryIT extends AbstractControllerIntegration
(witem, "Workspace Item 1", "2019-01-01", "ExtraEntry"))));
}
@Test
public void patchReplaceMetadataOnItemStillInSubmissionTest() throws Exception {
context.turnOffAuthorisationSystem();
@@ -5922,6 +5923,7 @@ public class WorkspaceItemRestRepositoryIT extends AbstractControllerIntegration
.andExpect(jsonPath("$.sections.upload.files[0].accessConditions", empty()));
}
@Test
public void deleteWorkspaceItemWithMinRelationshipsTest() throws Exception {
context.turnOffAuthorisationSystem();
@@ -7964,6 +7966,7 @@ ResourcePolicyBuilder.createResourcePolicy(context, null, adminGroup)
)));
}
@Test
public void verifyBitstreamPolicyNotDuplicatedTest() throws Exception {
context.turnOffAuthorisationSystem();

View File

@@ -459,6 +459,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
.andExpect(jsonPath("$._embedded").doesNotExist());
}
@Test
public void requestACopyItemTypeLoggedAsAnonymous() throws Exception {
configurationService.setProperty("request.item.type", "logged");
@@ -493,6 +494,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
);
}
@Test
public void requestACopyItemTypeEmptyAsAnonymous() throws Exception {
configurationService.setProperty("request.item.type", "");
@@ -507,6 +509,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
.andExpect(jsonPath("$._embedded").doesNotExist());
}
@Test
public void requestACopyItemTypeEmptyAsEperson() throws Exception {
configurationService.setProperty("request.item.type", "");
@@ -523,6 +526,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
.andExpect(jsonPath("$._embedded").doesNotExist());
}
@Test
public void requestACopyItemTypeBogusValueAsAnonymous() throws Exception {
configurationService.setProperty("request.item.type", "invalid value");
@@ -537,6 +541,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
.andExpect(jsonPath("$._embedded").doesNotExist());
}
@Test
public void requestACopyItemTypeBogusValueAsEperson() throws Exception {
configurationService.setProperty("request.item.type", "invalid value");

10
pom.xml
View File

@@ -29,7 +29,7 @@
<solr.client.version>8.11.4</solr.client.version>
<ehcache.version>3.10.8</ehcache.version>
<errorprone.version>2.38.0</errorprone.version>
<errorprone.version>2.41.0</errorprone.version>
<!-- NOTE: when updating jackson.version, also sync jackson-databind.version below -->
<jackson.version>2.19.2</jackson.version>
<jackson-databind.version>2.19.2</jackson-databind.version>
@@ -92,7 +92,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version>
<version>3.6.1</version>
<executions>
<execution>
<id>enforce-java</id>
@@ -299,7 +299,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.25.0</version>
<version>10.26.1</version>
</dependency>
</dependencies>
</plugin>
@@ -402,7 +402,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<version>3.2.8</version>
</plugin>
<!-- Used for code coverage reporting (see 'measure-test-coverage' profile) -->
<plugin>
@@ -696,7 +696,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
<!-- This plugin only needs to be run on the Parent POM
as it aggregates results from all child POMs. -->
<inherited>false</inherited>