Description
Describe the bug
The home page is not updated with the last index timestamp using the -U param in the indexer or after calling the configuration
api method using the webapp context (http://localhost:8080/source
).
To Reproduce
Calling the api method:
curl -X PUT -H "Content-Type: application/xml" --data "@/var/opengrok/etc/configuration.xml" http://localhost:8080/source/api/v1/configuration?reindex=true
produces the next output in tomcat:
20-Apr-2020 09:58:13.240 INFO [http-nio-127.0.0.1-8080-exec-5] org.opengrok.indexer.util.Statistics.report done invalidating 4119 repositories (took 52.275 seconds)
20-Apr-2020 10:00:30.336 INFO [http-nio-127.0.0.1-8080-exec-5] org.opengrok.indexer.configuration.RuntimeEnvironment.applyConfig Configuration updated
20-Apr-2020 10:00:30.336 INFO [http-nio-127.0.0.1-8080-exec-5] org.opengrok.indexer.configuration.WatchDogService.stop Watchdog stoped
20-Apr-2020 10:00:30.336 WARNING [http-nio-127.0.0.1-8080-exec-5] org.opengrok.indexer.framework.PluginFramework.reload Plugin directory not found or not readable: /var/opengrok/data/../plugins. All requests allowed.
20-Apr-2020 10:00:30.336 INFO [http-nio-127.0.0.1-8080-exec-5] org.opengrok.web.api.v1.suggester.provider.service.impl.SuggesterServiceImpl.initSuggester Suggester disabled
But the home page is not refreshed with the date of the timestamp file. The date of the timestamp file in the DATA directory is properly updated. Same effect adding the -U param in the indexer.
The home page is properly updated after calling the same api method but without the context (source
). But the page doesn't show any project during the api call:
curl -X PUT -H "Content-Type: application/xml" --data "@/var/opengrok/etc/configuration.xml" http://localhost:8080//api/v1/configuration?reindex=true