Closed leefrank9527 closed 3 years ago
Reviewed and tested locally and in our UAT env, with and without setting a context of '/wct' in Webapp. Everything worked as expected.
I'm getting this exception at index time:
Exception in thread "Thread-5" java.lang.IllegalArgumentException: [null/harvest-coordinator/finalise-index/{harvest-result-oid}] is not a valid HTTP URL at org.springframework.web.util.UriComponentsBuilder.fromHttpUrl(UriComponentsBuilder.java:290) at org.webcurator.core.store.IndexerBase.finaliseIndex(IndexerBase.java:93) at org.webcurator.core.store.IndexerBase.markComplete(IndexerBase.java:80) at org.webcurator.core.store.IndexerBase.run(IndexerBase.java:64) at java.lang.Thread.run(Thread.java:748)
The base URL of one of the Indexers is null, so it's probably not being propagated from the config. I'm not overriding that value in my application-local.properties, so it should be okay. Are you seeing this as well?
@hannakoppelaar There are some Index related classes aren't initialed correctly. I've fixed them and update to this branch: v3.0/add-context-path. Modification list:
I did an end-to-end test including indexing and it looks good now.
Thanks @hannakoppelaar @leefrank9527. I'll merge into master now