Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set correctionTypes as optional dependency in CorrectionTypeServiceImpl #501

Open
wants to merge 1 commit into
base: main-cris
Choose a base branch
from

Conversation

saschaszott
Copy link

Problem Description

This PR fixes a bug which is caused by a missing dependency in CorrectionTypeServiceImpl. We see this error on application startup:

2025-02-26 11:47:17 Field correctionTypes in org.dspace.correctiontype.service.impl.CorrectionTypeServiceImpl required a bean of type 'java.util.List' that could not be found.
2025-02-26 11:47:17 
2025-02-26 11:47:17 The injection point has the following annotations:
2025-02-26 11:47:17     - @org.springframework.beans.factory.annotation.Autowired(required=true)
2025-02-26 11:47:17 
2025-02-26 11:47:17 
2025-02-26 11:47:17 Action:
2025-02-26 11:47:17 
2025-02-26 11:47:17 Consider defining a bean of type 'java.util.List' in your configuration.
2025-02-26 11:47:17 

The required dependency should be transformed to an optional dependency since core-services.xml does not contain a correctionTypes list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant