Error with Logs Refresh Rate - Nexus 3.67.1-01 - Sonatype Nexus Repository - Sonatype Community
Error with Logs Refresh Rate - Nexus 3.67.1-01
post by Beardo on Apr 25, 2024
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?
post by tunisiano187 on May 3, 2024
Hello,
Same for me.
Someone have an idea ?
Thank you
post by mmartz on May 6, 2024
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.
post by Beardo on May 13, 2024
Based on my review of GitHub - sonatype/nexus-public: Sonatype Nexus Repository Open-source codebase mirror, the issue was likely introduced in 3.66.
function onChangePeriod({target}) {
const newPeriod = Number(target.value);
if (newPeriod == 0) {
send('MANUAL_REFRESH', {period: newPeriod});
} else {
send('UPDATE_PERIOD', {period: newPeriod});
}
}
vs
function onChangePeriod(period) {
if (period == 0) {
send('MANUAL_REFRESH', {period});
} else {
send('UPDATE_PERIOD', {period: newPeriod});
}
}
Note how the onchange method has been reworked.