Error when POSTing to fcrepo-reindexing REST endpoint

50 views
Skip to first unread message

Peter Matthew Eichman

unread,
Apr 6, 2016, 4:56:26 PM4/6/16
to fedor...@googlegroups.com
Hello all,

I just installed the fcrepo-camel 4.4.1 and toolbox-features 4.5.0 (thank you Aaron Coburn et al.!) into Karaf. I am getting an odd error when I try to POST to the fcrepo-reindexing route's REST endpoint:
$ curl -XPOST http://fcrepodev.lib.umd.edu:9080/reindexing -H'Content-Type: application/json' -d '["activemq:queue:solr.reindex"]'
java.net.MalformedURLException: no protocol: /reindexing
	at java.net.URL.<init>(URL.java:586)
	at java.net.URL.<init>(URL.java:483)
	at java.net.URL.<init>(URL.java:432)
	at org.fcrepo.camel.reindexing.RestProcessor.process(RestProcessor.java:59)
[snipped rest of stack trace]
If I try appending a specific path after the "/reindexing", I just get a 404:
$ curl -XPOST http://fcrepodev.lib.umd.edu:9080/reindexing/tmp -H'Content-Type: application/json' -d '["activemq:queue:solr.reindex"]'
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /reindexing/tmp. Reason:
<pre>    Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>

</body>
</html>
I also noticed that this version of the reindexer is binding to the host's external IP address rather than to localhost as I remember it doing before. I don't know if that is connected to the MalformedURLException.
Has anyone else run into this?
Thanks,

Andrew Woods

unread,
Apr 6, 2016, 10:42:58 PM4/6/16
to fedor...@googlegroups.com
Hello Peter,
I see the same behavior.
Andrew

--
You received this message because you are subscribed to the Google Groups "Fedora Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedora-tech...@googlegroups.com.
To post to this group, send email to fedor...@googlegroups.com.
Visit this group at https://groups.google.com/group/fedora-tech.
For more options, visit https://groups.google.com/d/optout.

Aaron Coburn

unread,
Apr 7, 2016, 2:07:59 PM4/7/16
to fedor...@googlegroups.com
Hello Peter,
Sure enough, this is an error with how the reindexing mechanism binds to an HTTP endpoint. I have a issued a fix for this, and once it goes through a review, I can issue a patch release for fcrepo-camel-toolbox.

Thanks for reporting this!
Aaron

Peter Matthew Eichman

unread,
Apr 12, 2016, 11:50:43 AM4/12/16
to fedor...@googlegroups.com
Hi Aaron,

Thanks for the quick turnaround on this fix. I just got 4.5.1 installed (using camel 2.16.2 and activemq 5.13.2) and reindexing is working again!

-Peter
Reply all
Reply to author
Forward
0 new messages