geonetwork / geonetwork/core-geonetwork
CSW Harvest operation does not work
- Dominant language
- Java
- Stars
- 521
- Forks
- 514
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 19
Description
**Describe the bug**
When an Harvest operation is POSTed to csw-publication, the exception `org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'CswService.Harvest' is defined` is thrown.
**To Reproduce**
1. Send a POST request to the csw-publication service:
e.g.
```
curl -i -u USER:PASS -d @YourRequestHarvest.xml -XPOST -H "Content-type: text/xml" 'http://YOUR_SERVER/geonetwork/srv/eng/csw-publication'
```
2. You'll get the error:
```
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'CswService.Harvest' is defined
```
**Expected behavior**
Not an exception :)
**Additional context**
Notes:
- The `Harvest` class is in the `harvesters` module, while the other CSW operation classes are in the `csw-server` one; this is made probably in order to use other util classes in the `harvesters` module.
- The `Harvest` class is not aligned with the other CSW services class, so I guess it has been missed in an old service refactoring.
Contributor guide
Assessment
This issue has not been assessed yet.