Commit Graph

7143 Commits

Author SHA1 Message Date
Tim Donohue
4cf06cbc3d Remove unnecessary SQL "GROUP BY" clauses. There are no aggregate functions requiring a GROUP BY, and they throw errors now in latest Hibernate/Postgres 2024-03-27 16:28:05 -05:00
Tim Donohue
66402b2d62 Fix PatchMetadataIT failures by ensuring MetadataValue place is updated for virtual fields as well. Also minor code cleanup in PatchMetadataIT. 2024-03-27 14:38:35 -05:00
Tim Donohue
befef7f7b1 Add new CacheableDSpaceObject abstract class for Hibernate second-level caching. Required in Hibernate 6 as subclasses cannot use @Cache annotation 2024-03-26 15:02:46 -05:00
Tim Donohue
f422e61a75 In Hibernate 6, to support Postgres + H2, all @Lob columns must now be Length.LONG32 2024-03-25 12:28:22 -05:00
Tim Donohue
5c58d9e2ba In Hibernate 6, columnDefinition of "integer" should be @JdbcTypeCode(SqlTypes.INTEGER) 2024-03-25 12:28:22 -05:00
Tim Donohue
d094865ad4 Hibernate syntax fixes. Count methods must return Long 2024-03-25 12:28:22 -05:00
Tim Donohue
b181cda2a1 Enhance logging of 400 exceptions in tests. These are difficult to debug otherwise 2024-03-25 12:28:22 -05:00
Tim Donohue
fafb16ad6b Fix Hibernate 6 syntax of several queries. Must use Hibernate name and not SQL database column name. 2024-03-25 12:28:21 -05:00
Tim Donohue
86d9d308a0 Handle Server & Jetty cleanup. Make Jetty a runtime dependency as its only needed for Handle Server. Fix dependency issues & migrate code to jakarta.el 2024-03-25 12:28:21 -05:00
Tim Donohue
4439f0ed0c Fix several NullPointerExceptions thrown by Hibernate 6. New Hibernate is less tolerant of null objects, so we need to add null checks ourselves. 2024-03-20 09:43:09 -05:00
Tim Donohue
814012272e Fix data cleanup bug in ITs caused by NullPointerException. Update error handling in AbstractIntegrationTestWithDatabase to provide better errors for when this occurs. 2024-03-20 09:43:09 -05:00
Tim Donohue
cc54c01b49 Fix Hibernate errors in LDN / COAR Notify. NotifyServiceEntity requires a name -- update code to fully require it. LDNMessageEntity doesn't seem to require a message -- remove nullable=false 2024-03-20 09:43:09 -05:00
Tim Donohue
ec7415e43a Minor POM cleanup. dspace.dir should not end in a slash. 2024-03-20 09:43:09 -05:00
Tim Donohue
a6b333cba9 Minor fixes to ItemImport/Export ITs. Delete temp files on exit instead of immediately (as immediately sometimes fails) 2024-03-20 09:43:09 -05:00
Tim Donohue
85cd8bc2e7 ORCID-MODEL replacement. Migrate to Jakarta version distributed by https://oicr.on.ca until official version is updated to Jakarta 2024-03-20 09:43:09 -05:00
Tim Donohue
07c44f3fb8 Remove unnecessary @Component annotation from IdentifierProviders which are enabled via Spring XML. 2024-03-20 09:43:09 -05:00
Tim Donohue
41229fdc57 Fix BitstreamFormatTest error where it could encounter invalid BitstreamFormats. Stop tests from creating unnecessary BitstreamFormats & cleanup where necessary. 2024-03-20 09:43:09 -05:00
Tim Donohue
c6184afc56 When using Lower() function must now cast to string 2024-03-20 09:43:09 -05:00
Tim Donohue
3a0ad487c4 Count queries MUST always return Long now. Cleanup all that do not. 2024-03-20 09:43:09 -05:00
Tim Donohue
f18d1e1cf0 Fixing various Hibernate 6 syntax errors in queries. 2024-03-20 09:43:09 -05:00
Tim Donohue
4c510fd61b Fix several unit tests which are not properly cleaning up their data 2024-03-20 09:43:09 -05:00
Tim Donohue
11a824059c Parameters are no longer valid at beginning of "IN" clause. Convert offending queries to isMember() using CriteriaBuilder 2024-03-20 09:43:09 -05:00
Tim Donohue
1442c2513f Minor syntax fixes for Hibernate v6 and Spring Boot v3 2024-03-20 09:43:09 -05:00
Tim Donohue
9b899a7e80 Upgrade to Flyway 10 2024-03-20 09:43:05 -05:00
Tim Donohue
1612858e79 NEW BEHAVIOR: Hibernate second-level caching inherited by ALL DSpaceObject classes. It can no longer be on subclasses as the @Cache annotation is only allowed on root classes. 2024-03-20 09:41:52 -05:00
Tim Donohue
4275ab8bde Fix NoSuchBeanDefinitionException: No qualifying bean of type 'java.lang.String' available 2024-03-20 09:41:51 -05:00
Tim Donohue
e0fc07ddc7 Cleanup recently added new features and update JAXB maven plugin 2024-03-20 09:41:51 -05:00
Tim Donohue
7b25144684 Upgrade to Hibernate 6. Migrate more javax to jakarta. Realign imports to fix checkstyle errors 2024-03-20 09:41:51 -05:00
Tim Donohue
cb07f0193a Switch to using 'io.gdcc' SWORDv2 server codebase as it is maintained. Update dspace-rdf code to Apache Jena 4 to align with new SWORDv2 module. Other dependency updates to align. 2024-03-20 09:41:51 -05:00
Tim Donohue
c689851a2b More migrations from javax to jakarta. Remove SWORD's example ServletClient as it is very old unused code not compatible with Jakarta. 2024-03-20 09:41:51 -05:00
Tim Donohue
4374dd6a02 Partial update to Spring 6. Replace all javax with jakarta & resolve dependency convergence issues. 2024-03-20 09:41:50 -05:00
Tim Donohue
eee0bfd2b1 Merge pull request #9268 from 4Science/coar-notify-7-part-two
Coar Notify Integration - Administer/Log
2024-03-04 16:32:14 -06:00
frabacche
57a52f6c72 LDN message Index: not searchable item logical operator fix 2024-03-04 22:15:46 +01:00
frabacche
a65902ca0c LDN message Index: check the item before adding related solr document' properties 2024-03-04 22:01:47 +01:00
frabacche
c3ab2a1dfa check item linked to ldnMessage before storing a new solr document 2024-03-04 11:47:54 +01:00
frabacche
f2683da032 javadocs, refactor item cast to item search 2024-03-04 11:15:34 +01:00
Kim Shepherd
15012790c4 [TLC-674] Duplicate fixes per review feedback 2024-03-04 11:41:05 +13:00
Kim Shepherd
0a3713de0e [TLC-674] Consolidate shared 'build comparison value' code, ensure multivalues pass 2024-03-04 11:41:05 +13:00
Kim Shepherd
1350f87ca1 [TLC-674] Replace all references of "signature" with "comparison value"
To avoid any confusion to DSpace-CRIS work.

Also allow multiple fields in comparison value building.
2024-03-04 11:41:05 +13:00
Kim Shepherd
9fc5b71ae3 Detect dupe: null item ref in ex message 2024-03-04 11:40:38 +13:00
Kim Shepherd
8a16c338bf [TLC-674] Long title and exact match duplicate tests 2024-03-04 11:40:38 +13:00
Kim Shepherd
c43c82c167 [TLC-674] Checkstyle fixes for ITs 2024-03-04 11:40:38 +13:00
Kim Shepherd
bcbf33afb0 [TLC-674] Remove unused test class 2024-03-04 11:40:38 +13:00
Kim Shepherd
485e716e00 [TLC-674] Escape solr reserved characters (and new test coverage) 2024-03-04 11:40:38 +13:00
Kim Shepherd
878ab75d73 [TLC-674] IT and checkstyle fixes 2024-03-04 11:40:38 +13:00
Kim Shepherd
4e3e68fe56 [TLC-674] Duplicate detection integration tests
One workflow REST IT test still failing even though
the same test in dspace-api service passes...
2024-03-04 11:40:38 +13:00
Kim Shepherd
554338b29d [TLC-674] broken IT (multi items created?!) 2024-03-04 11:40:38 +13:00
Kim Shepherd
3e307cd582 [TLC-674] Duplicate detection integration tests 2024-03-04 11:40:36 +13:00
Kim Shepherd
069674e7ee [TLC-674] Duplicate Detection service and submission step
Service, submission step, integration tests
2024-03-04 11:39:48 +13:00
frabacche
507d61a03a Merge remote-tracking branch 'dspacegithub/main' into coar-notify-7-part-two-merge-main 2024-03-01 09:16:18 +01:00