Beardo
(Beardo)
April 25, 2024, 4:39pm
1
Recently upgraded to Nexus 3.67, but noticed a weird behaviour. When I access the logs within the UI, they display without issue. However, changing the Refresh Rate from manual to any other option produces the following error:
Uncaught ReferenceError: newPeriod is not defined (*******/static/nexus-rapture-bundle.js?_v=3.67.1-01&_e=OSS&_c=2024-04-10-1510-15685:2)
Any thoughts?
1 Like
Hello,
Same for me.
Someone have an idea ?
Thank you
mmartz
(Mmartz)
May 6, 2024, 7:02pm
3
We have a bug internally tracking this issue, and it should be fixed in a future release. I don’t believe there is any workaround for now.
Beardo
(Beardo)
May 13, 2024, 3:13pm
4
Based on my review of GitHub - sonatype/nexus-public: Sonatype Nexus Repository Open-source codebase mirror , the issue was likely introduced in 3.66.
/blob/release-3.65.0-02/plugins/nexus-coreui-plugin/src/frontend/src/components/pages/admin/Logs/LogViewer.jsx
function onChangePeriod({target}) {
const newPeriod = Number(target.value);
if (newPeriod == 0) {
send(‘MANUAL_REFRESH’, {period: newPeriod});
}
else {
send(‘UPDATE_PERIOD’, {period: newPeriod});
}
}
vs
/blob/release-3.66.0-02/plugins/nexus-coreui-plugin/src/frontend/src/components/pages/admin/Logs/LogViewer.jsx
function onChangePeriod(period) {
if (period == 0) {
send(‘MANUAL_REFRESH’, {period});
}
else {
send(‘UPDATE_PERIOD’, {period: newPeriod});
}
}
Note how the onchange method has been reworked.