geonetwork / geonetwork/core-geonetwork

CSW Harvest operation does not work

Open
#3,258 1 comment 0 reactions 1 assignee Claimed by @etj View on GitHub
bug stale
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.