obiba / mica2

Mica is a web portal for epidemiological study consortia.
http://www.obiba.org/pages/products/mica/
GNU General Public License v3.0
10 stars 15 forks source link

Mica metrics call adds the application path twice #4339

Closed hjvdwijk closed 2 years ago

hjvdwijk commented 2 years ago

The new Mica 5 version uses a call to retrieve the metrics. Constructing the url has a bug, The application path (/pub) is added twice : https://dw.clinicalresearch.nl/pub/pub/ws/config/metrics

The bug is in the MetricsService. The normalizeUrl is executed twice and therefore /pub is added twice:

class MetricsService { static getStats(onsuccess, onfailure) { axios.get(MicaService.normalizeUrl(MicaService.normalizeUrl('/ws/config/metrics')))

hjvdwijk commented 2 years ago

The issues has already been resolved I see: https://github.com/obiba/mica2/commit/e7a00432572d4a64968b759aabae42516d85d859

When can a new build be released?