Closed whikloj closed 8 years ago
That solr bit might be a red herring. We should make another ticket to move to osgi fcrepo-camel-toolbox and not install the solr indexer since we get that for free with Drupal.
The not getting deleted from Fedora bit is still extremely relevant, though!
Yeah I just noted it was looking for Solr on the wrong port (localhost:8983). So that is not relevant.
Yeah, that's the camel tool box. We should probably custom compile that with the proper configuration.
In case someone gets around to this before me, I recently did it for fcrepo4-vagrant in preperation for HydraConnect 2015.
See: https://github.com/fcrepo4-exts/fcrepo4-vagrant/commit/82d1da565497d0e777a10378537d8ba3dd121c0b
...you already have karaf installed, so I'll work to add the fcrepo-camel-toolbox.script.
I think we just need to set the solr.baseUrl
as described here, and then compile... instead of just grabbing the war.
...or not use Solr, because we're using Drupal's Solr :smile:
I'd just switch over to using karaf and then not install the indexing-solr feature.
Yeah but the karaf is easier, I've got a PR for the fcrepo-webapp-plus. You can even set the path once it's running and it just works. I may be coming around to OSGi.
I just tested this out on the #47 branch, and it deleted fine.
fcrepo web interface:
Discovered tombstone resource at /26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82 {jcr:createdBy=bypassAdmin, jcr:primaryType=fedora:Tombstone, jcr:created=2015-10-07T01:55:23.596Z}
catalina.out
INFO 01:55:23.594 (FedoraLdp) Delete resource '26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82'
INFO 01:55:23.653 (audit) Audit Event: /26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82 :: <http://example.com/event/bdbfe384-9966-4270-82fb-24633ed486c4>
INFO 01:55:23.685 (TriplestoreRouter) Deleting Triplestore Object /26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82
ERROR: LexiconConfiguration.java:618: 2015-10-07T01:46:37 00:00: value=2015-10-07T01:46:37 00:00
ERROR: LexiconConfiguration.java:618: 2015-10-07T01:46:37 00:00: value=2015-10-07T01:46:37 00:00
ERROR: LexiconConfiguration.java:618: 2015-10-07T01:46:37 00:00: value=2015-10-07T01:46:37 00:00
INFO 01:55:24.161 (SolrRouter) Deleting Solr Object /26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82
karaf:
rdf:updateNode], executable=php, timeout=9223372036854775807, outFile=null, workingDir=/home/vagrant/islandora/camel/commands/bin, useStderrOnEmptyStdout=false] had exit value 0
2015-10-07 01:55:23,722 | ERROR | Consumer[fedora] | DefaultErrorHandler | 109 - org.apache.camel.camel-core - 2.15.2 | Failed delivery for (MessageId: ID:islandora-38181-1444182246311-3:1:1:1:8 on ExchangeId: ID-islandora-48429-1444182243199-0-54). Exhausted after delivery attempt: 1 caught: org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/user/login with statusCode: 401
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)
[fedoraEventStream ] [fedoraEventStream ] [activemq://topic:fedora ] [ 77]
[fedoraEventStream ] [setProperty21 ] [setProperty[CamelFcrepoBaseUrl] ] [ 0]
[fedoraEventStream ] [setProperty22 ] [setProperty[CamelFcrepoIdentifier] ] [ 0]
[fedoraEventStream ] [choice5 ] [when[simple{${headers[org.fcrepo.jms.eventType]} contains 'http://fedora.info/] [ 79]
[fedoraEventStream ] [to38 ] [direct:handleNodeRemovedEvent ] [ 79]
[nodeRemoveHandler ] [to32 ] [direct:getDrupalAuthInfo ] [ 81]
[getDrupalAuthInfo ] [to15 ] [direct:getCookieFromCache ] [ 81]
[getCookieFromCache] [setHeader13 ] [setHeader[CamelCacheOperation] ] [ 0]
[getCookieFromCache] [setHeader14 ] [setHeader[CamelCacheKey] ] [ 0]
[getCookieFromCache] [to13 ] [cache://cookies?maxElementsInMemory=1000&eternal=true&timeToIdleSeconds=0&time] [ 10]
[getCookieFromCache] [choice2 ] [when[simple{${headers.CamelCacheElementWasFound} == ${null}}]choice[] ] [ 80]
[getCookieFromCache] [to14 ] [direct:drupalAuthenticate ] [ 80]
[drupalAuthenticate] [doTry1 ] [doTry ] [ 80]
[drupalAuthenticate] [to9 ] [direct:drupalLogin ] [ 80]
[drupalLogin ] [removeHeaders2 ] [removeHeaders[*] ] [ 0]
[drupalLogin ] [setHeader9 ] [setHeader[CamelHttpMethod] ] [ 0]
[drupalLogin ] [setHeader10 ] [setHeader[Content-Type] ] [ 0]
[drupalLogin ] [setBody2 ] [setBody[simple{{"username": "admin", "password" : "islandora"}}] ] [ 0]
[drupalLogin ] [to6 ] [http:localhost/islandora/user/login ] [ 67]
Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
Id ID-islandora-48429-1444182243199-0-54
ExchangePattern InOnly
Headers {CamelHttpMethod=POST, CamelRedelivered=false, CamelRedeliveryCounter=0, Content-Type=application/json}
BodyType String
Body {"username": "admin", "password" : "islandora"}
]
Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/user/login with statusCode: 401
at org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:230)[166:org.apache.camel.camel-http:2.15.2]
at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:156)[166:org.apache.camel.camel-http:2.15.2]
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:113)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:84)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:103)[144:org.apache.camel.camel-jms:2.15.2]
at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1101)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1093)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:990)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
2015-10-07 01:55:24,058 | WARN | Consumer[fedora] | EndpointMessageListener | 109 - org.apache.camel.camel-core - 2.15.2 | Execution of JMS message listener failed. Caused by: [org.apache.camel.RuntimeCamelException - org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/delete_by_fedora_uri with statusCode: 404]
org.apache.camel.RuntimeCamelException: org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/delete_by_fedora_uri with statusCode: 404
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1619)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.jms.EndpointMessageListener$EndpointMessageListenerAsyncCallback.done(EndpointMessageListener.java:186)[144:org.apache.camel.camel-jms:2.15.2]
at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:107)[144:org.apache.camel.camel-jms:2.15.2]
at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1101)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1093)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:990)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
Caused by: org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/delete_by_fedora_uri with statusCode: 404
at org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:230)[166:org.apache.camel.camel-http:2.15.2]
at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:156)[166:org.apache.camel.camel-http:2.15.2]
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)[109:org.apache.camel.camel-core:2.15.2]
at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:103)[144:org.apache.camel.camel-jms:2.15.2]
... 11 more
@dmoses is going to test, and confirm whether or not this is still an issue.
I created a collection object in Drupal. I then Edit > Delete the Collection in Drupal. When I viewed it on Fedora I get this message:
Discovered tombstone resource at /b4/8d/9c/fc/b48d9cfc-4b7a-429d-bd29-d2c6a25aa15b {jcr:createdBy=bypassAdmin, jcr:primaryType=fedora:Tombstone, jcr:created=2015-11-03T21:38:19.715Z}
@dmoses, other of the particularities of LDP + Fedora4. Fedora makes tombstones for deleted resources, when deleting, resources get wiped out, but the resource path persists (means you can not reuse the same path), so it's expected behaviour. @daniel-dgi, do you know if there was a workaround at fedora level for this?
I've deleted the tombstones with curl
curl -X DELETE http://localhost:8080/fcrepo/rest/mycollection
deletes the collection but then you get the tombstone, so next do
curl -X DELETE http://localhost:8080/fcrepo/rest/mycollection/fcr:tombstone
then you can use that name again to add
I like the idea of tombstone data ... I think it is the UUID that can't be reused ... may be wrong though? There may be good reasons from a preservation perspective that you want to maintain tombstone info. dm
@dmoses, we are using UUID, but for fedora, the unique id for a resource is the path. If they match (partially) depends on the pid minter used and/or the way we are creating our path. I also like having it, you are true, very useful in production, but sometimes trouble when you are testing/developing.
By the way @bsw2, thanks!
Tombstones are the intended behaviour.
This is the old 7.x-2.x architecture. Microservices is different and does delete.
@whikloj close/won't fix? How's that sound?
:+1:
Created a collection via the Drupal interface.
(It did have the title "Archives & Special Collections")
When I went to delete it, it is removed from Drupal. But this is what I saw in the catalina.out logs.
It is not removed from Fedora.