-
Bug
-
Resolution: Duplicate
-
Major
-
None
After some time, a javascript error occurs when browsing a project page.
SyntaxError: missing ( before formal parameters
function build_id-1719326292(a) {
The side-effect is that when clicking on Build now (or another link that uses the same system to generate a POST request), we get redirected to a page telling us we should use the POST method.
I've narrowed down the problem to https://github.com/jenkinsci/jenkins/commit/3c01366e0bc5c3e8de23eb7337e8c3e4dbd7843c which introduced usage of Functions#generateId()
However, the iota used is an int, so after some time, it overflows, and becomes negative.
the issue is that it seems javascript functions cannot contain the character -, hence the problem.
The problem affects Jenkins 1.520+.
- duplicates
-
JENKINS-20085 Functions.globalIota overflow
- Resolved