fcrepo-exts / fcrepo-camel-toolbox

A collection of ready-to-use messaging applications with fcrepo-camel
Apache License 2.0
13 stars 26 forks source link

Fix CamelFcrepoUri header when reindexing #171

Closed mikejritter closed 2 years ago

mikejritter commented 2 years ago

JIRA Ticket: https://fedora-repository.atlassian.net/browse/FCREPO-3759

What does this Pull Request do?

Updates the CamelFcrepoUri header to include the fcrepoBaseUrl when reindexing.

How should this be tested?

Start up Fedora, Solr, and Fuseki then run the camel toolbox, create a resource, and issue a reindex command on the created resource uuid:

java -jar fcrepo-camel-toolbox-app/target/fcrepo-camel-toolbox-app-6.0.0-SNAPSHOT-driver.jar -c configuration.properties
curl -X POST --user fedoraAdmin:fedoraAdmin http://localhost:8080/fcrepo/rest
curl -XPOST localhost:9080/reindexing/${UUID} -H"Content-Type: application/json" -d '["broker:queue:solr.reindex"]'

Interested parties

@fcrepo/committers