Skip to content
Browse files
[FIXED JENKINS-19613] 49c731f made PROXY_HEADER static under the assu…
…mption that XStream would treat that like a missing field.

Unfortunately it threw an error instead, breaking startup; fixed by renaming the constant.

(cherry picked from commit d82ba3b)
  • Loading branch information
jglick authored and olivergondza committed Oct 18, 2013
1 parent 7501dbe commit 582a87f2028773e3886a7abcceb36245bcd36506
Showing with 5 additions and 3 deletions.
  1. +3 −1 changelog.html
  2. +2 −2 core/src/main/java/hudson/security/csrf/
@@ -55,7 +55,9 @@
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=>
<li class='major bug'>
Default crumb issuer configurations saved in older releases did not load as of Jenkins 1.531.
(<a href="">issue 19613</a>)

@@ -100,11 +100,11 @@ public boolean validateCrumb(ServletRequest request, String salt, String crumb)
return false;

private static final String PROXY_HEADER = "X-Forwarded-For";
private static final String X_FORWARDED_FOR = "X-Forwarded-For";

private String getClientIP(HttpServletRequest req) {
String defaultAddress = req.getRemoteAddr();
String forwarded = req.getHeader(PROXY_HEADER);
String forwarded = req.getHeader(X_FORWARDED_FOR);
if (forwarded != null) {
String[] hopList = forwarded.split(",");
if (hopList.length >= 1) {

0 comments on commit 582a87f

Please sign in to comment.