-
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
-
[JENKINS-19333] After a given uptime of Jenkins, build now link doesn't work as expected
Description |
Original:
After some time, a javascript error occurs when browsing a project page. {quote} SyntaxError: missing ( before formal parameters function build_id-1719326292(a) { {quote} 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 caracter *-*, hence the problem. The problem affects Jenkins 1.520+. |
New:
After some time, a javascript error occurs when browsing a project page. {quote} SyntaxError: missing ( before formal parameters function build_id-1719326292(a) { {quote} The side-effect is that when clicking on Build now, 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 caracter *-*, hence the problem. The problem affects Jenkins 1.520+. |
Description |
Original:
After some time, a javascript error occurs when browsing a project page. {quote} SyntaxError: missing ( before formal parameters function build_id-1719326292(a) { {quote} The side-effect is that when clicking on Build now, 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 caracter *-*, hence the problem. The problem affects Jenkins 1.520+. |
New:
After some time, a javascript error occurs when browsing a project page. {quote} SyntaxError: missing ( before formal parameters function build_id-1719326292(a) { {quote} 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 caracter *-*, hence the problem. The problem affects Jenkins 1.520+. |
Description |
Original:
After some time, a javascript error occurs when browsing a project page. {quote} SyntaxError: missing ( before formal parameters function build_id-1719326292(a) { {quote} 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 caracter *-*, hence the problem. The problem affects Jenkins 1.520+. |
New:
After some time, a javascript error occurs when browsing a project page. {quote} SyntaxError: missing ( before formal parameters function build_id-1719326292(a) { {quote} 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+. |
Link |
New:
This issue duplicates |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 150781 ] | New: JNJira + In-Review [ 206896 ] |