[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-05 Thread francis.lab...@gmail.com (JIRA)














































Francis Labrie
 created  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















Issue Type:


Bug



Affects Versions:


current



Assignee:


Ulli Hafner



Components:


analysis-collector, core, warnings



Created:


05/Sep/14 4:42 PM



Description:


When a job name contains non-ASCII characters (Montréal for example), the URL generated for the redirection process to the last build analysis reports get bad encoding.

For example:


	Job name: Montréal
	Hyperlinks on main job page:
	
		Static Analysis Warning: /job/Ville%20de%20Montr%C3%A9al%20Reporter%20iOS%20Application/warnings10
	
	



This URL is correctly encoded using UTF-8. So clicking on this link perform the expected result. Unfortunately, by clicking this hyperlink, Jenkins redirect the request to the last build warning result, generating new URL with bad encoding. These are the detailed header of the multiple requests following the redirection:


	GET /job/Ville%20de%20Montr%C3%A9al%20Reporter%20iOS%20Application/warnings10
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Fri, 05 Sep 2014 16:28:28 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://jenkins.foobar.com/job/Ville%20de%20Montr%E9al%20Reporter%20iOS%20Application/43/warnings10Result

	GET /job/Ville%20de%20Montr%E9al%20Reporter%20iOS%20Application/43/warnings10Result
HTTP/1.1 502 Bad Gateway
Server: nginx
Date: Fri, 05 Sep 2014 16:35:25 GMT
Content-Type: text/html
Content-Length: 537
Connection: keep-alive
ETag: "51fbbaa1-219"

An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.




If you check at the URLs, you'll see that in the first request, the é is encoded into %C3%A9 code (which is correct in UTF-8). But the Location: header in the response change this encoding to %E9 (ISO-8859-1), which is incorrect. That's why the redirection fail with this 502 HTTP status message:


An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.




Environment:


OS X Server 10.9.4




Project:


Jenkins



Priority:


Blocker



Reporter:


Francis Labrie

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-05 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 updated  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports
















Reducing priority due to straightforward workaround: Use only characters from the portable filename character set as job names, make the UI look nice using Display Name in Advanced Project Options.





Change By:


Daniel Beck
(05/Sep/14 5:30 PM)




Priority:


Blocker
Major



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-21 Thread ullrich.haf...@gmail.com (JIRA)














































Ulli Hafner
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















Which Jenkins version are you using? Which browser on which OS? I tried to reproduce without success. 

I tried to click the link "http://localhost:8080/job/Montr%C3%A9al/warnings34", it is resolved to "http://localhost:8080/job/Montr%C3%A9al/6/warnings34Result/".



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-21 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















Which container is Jenkins running in? Is it running behind a reverse proxy? If so, which? Is there a reverse proxy warning shown in /manage ?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-21 Thread francis.lab...@gmail.com (JIRA)














































Francis Labrie
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















Our current Jenkins version is 1.580. It's running on Mac OS X 10.9.5 Server using the default container provided by the installer / JAR. This issue is reproductible in both environment: 1) using a direct access on the 8080 port; 2) using the nginx proxy host.

There is no reverse proxy warning in the /manage page.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-21 Thread francis.lab...@gmail.com (JIRA)














































Francis Labrie
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















I don't know if it could be a factor: I don't think so. But for your information, on Mac OS X, the default UTF-8 encoding used on HFS+ filesystem uses NFD (Normalization Form D), and not NFC (Normalization Form C) like Windows and Linux.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-22 Thread ullrich.haf...@gmail.com (JIRA)














































Ulli Hafner
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















I'm also running OS X. Which browser and OS are you using on the client side?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-22 Thread francis.lab...@gmail.com (JIRA)














































Francis Labrie
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















I did perform test with both Safari 7.1 application and Curl 7.30.0 command line tool on Mac OS X 10.9.5.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-22 Thread ullrich.haf...@gmail.com (JIRA)














































Ulli Hafner
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















Can you please attach the log of curl? (E.g. curl -ILv http://localhost:8080/job/Montr%C3%A9al/warnings34). I get the following log:

* Adding handle: conn: 0x7f8ec280aa00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f8ec280aa00) send_pipe: 1, recv_pipe: 0
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0* About to connect() to localhost port 8080 (#0)
*   Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> HEAD /job/Montr%C3%A9al/warnings34 HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8080
> Accept: */*
> 
< HTTP/1.1 302 Found
< Set-Cookie: JSESSIONID.c86bba97=yvu2h8rtv5ro1ebpat5gz3z7e;Path=/
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Location: http://localhost:8080/job/Montr%C3%A9al/warnings34/
< Content-Length: 0
* Server Jetty(8.y.z-SNAPSHOT) is not blacklisted
< Server: Jetty(8.y.z-SNAPSHOT)
< 
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0
* Connection #0 to host localhost left intact
* Issue another request to this URL: 'http://localhost:8080/job/Montr%C3%A9al/warnings34/'
* Found bundle for host localhost: 0x7f8ec1d09080
* Re-using existing connection! (#0) with host localhost
* Connected to localhost (::1) port 8080 (#0)
* Adding handle: conn: 0x7f8ec280aa00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f8ec280aa00) send_pipe: 1, recv_pipe: 0
> HEAD /job/Montr%C3%A9al/warnings34/ HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8080
> Accept: */*
> 
< HTTP/1.1 302 Found
< Set-Cookie: JSESSIONID.c86bba97=hv07ef2amc5q142a8f94q9taa;Path=/
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Location: http://localhost:8080/job/Montr%C3%A9al/6/warnings34Result
< Content-Length: 0
* Server Jetty(8.y.z-SNAPSHOT) is not blacklisted
< Server: Jetty(8.y.z-SNAPSHOT)
< 
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0
* Connection #0 to host localhost left intact
* Issue another request to this URL: 'http://localhost:8080/job/Montr%C3%A9al/6/warnings34Result'
* Found bundle for host localhost: 0x7f8ec1d09080
* Re-using existing connection! (#0) with host localhost
* Connected to localhost (::1) port 8080 (#0)
* Adding handle: conn: 0x7f8ec280aa00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f8ec280aa00) send_pipe: 1, recv_pipe: 0
> HEAD /job/Montr%C3%A9al/6/warnings34Result HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8080
> Accept: */*
> 
< HTTP/1.1 302 Found
< Set-Cookie: JSESSIONID.c86bba97=16b3y7m97ucks1727hlro91q5d;Path=/
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Location: http://localhost:8080/job/Montr%C3%A9al/6/warnings34Result/
< Content-Length: 0
* Server Jetty(8.y.z-SNAPSHOT) is not blacklisted
< Server: Jetty(8.y.z-SNAPSHOT)
< 
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:-- 0
* Connection #0 to host localhost left intact
* Issue another request to this URL: 'http://localhost:8080/job/Montr%C3%A9al/6/warnings34Result/'
* Found bundle for host localhost: 0x7f8ec1d09080
* Re-using existing connection! (#0) with host localhost
* Connected to localhost (::1) port 8080 (#0)
* Adding handle: conn: 0x7f8ec280aa00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f8ec280aa00) send_pipe: 1, recv_pipe: 0
> HEAD /job/Montr%C3%A9al/6/warnings34Result/ HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8080
> Accept: */*
> 
< HTTP/1.1 200 OK
< Set-Cookie: JSESSIONID.c86bba97=1u24prdea4bwl1s0abclbdje0s;Path=/
< Expires: 0
< Cache-Control: no-cache,no-store,must-revalidate
< X-Hudson-Theme: default
< X-Frame-Options: sameorigin
< X-Hudson: 1.395
< X-Jenkins: 1.580
< X-Jenkins-Session: 46d529fc
< X-Hudson-CLI-Port: 59608
< X-Jenkins-CLI-Port: 59608
< X-Jenkins-CLI2-Port: 59608
< X-Instance-Identity: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjVSHebSbq3wcfAB6D79KMyoKJe/HNNeiATdQgYED7GBUu8o44g+riUOgJAAViflekTixqVvi4bYGSe/Pw4k3zzlPVeZqs/EePhifMtoU6UBGpzN+ffx3B6ayRccDHGf74yK3/BpuzhZJhiGL2TNwqkqcNE1lruVbqtmOVuTL+KZGql5bd6rBNTVOi/0j+9WUv4vhHmkqiTxiFjrraG70jk/4qNdye2hj7i4lJW9YZGGpTWdaR6NjVyWjmQA

[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-22 Thread francis.lab...@gmail.com (JIRA)














































Francis Labrie
 updated  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports
















You'll find the Curl logs here.





Change By:


Francis Labrie
(22/Sep/14 2:06 PM)




Attachment:


curl.log



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-22 Thread ullrich.haf...@gmail.com (JIRA)














































Ulli Hafner
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















Thanks. Still no idea why this works on my machine... But anyway, I think I can change the way the redirection is handled. Do you think it is possible to test a new version of the plugin before I'm releasing it? 



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-22 Thread francis.lab...@gmail.com (JIRA)














































Francis Labrie
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















This is a production server and we don't have a test nor staging one for Jenkins.

But if I can quickly install the new plugin, perform tests and restore the previous one if anything goes wrong, it should be OK.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-23 Thread scm_issue_l...@java.net (JIRA)















































SCM/JIRA link daemon
 resolved  JENKINS-24603 as Fixed


Bad URL encoding generated on redirection to warnings analysis reports
















Change By:


SCM/JIRA link daemon
(23/Sep/14 10:52 AM)




Status:


Open
Resolved





Resolution:


Fixed



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-23 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















Code changed in jenkins
User: Ulli Hafner
Path:
 src/main/java/hudson/plugins/analysis/core/AbstractProjectAction.java
http://jenkins-ci.org/commit/analysis-core-plugin/a5042bebb4b0da4cbc6d6217640e44032bc740e0
Log:
  [FIXED JENKINS-24603] Use sendRedirect when navigating to results.

Seems that sendRedirect2 scrambles accents.





























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-23 Thread ullrich.haf...@gmail.com (JIRA)














































Ulli Hafner
 commented on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports















YOu can grab the latest snapshot from https://jenkins.ci.cloudbees.com/job/plugins/job/analysis-core-plugin/73/org.jvnet.hudson.plugins$analysis-core/



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-23 Thread ullrich.haf...@gmail.com (JIRA)












































  
Ulli Hafner
 edited a comment on  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports
















You can grab the latest snapshot from https://jenkins.ci.cloudbees.com/job/plugins/job/analysis-core-plugin/73/org.jvnet.hudson.plugins$analysis-core/



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [analysis-collector] (JENKINS-24603) Bad URL encoding generated on redirection to warnings analysis reports

2014-09-23 Thread francis.lab...@gmail.com (JIRA)














































Francis Labrie
 reopened  JENKINS-24603


Bad URL encoding generated on redirection to warnings analysis reports
















Unfortunately, the change in version 1.60 doesn't fix the problem: I get the exact same behaviour when selecting warnings report links on the left menu. 





Change By:


Francis Labrie
(23/Sep/14 11:52 AM)




Resolution:


Fixed





Status:


Resolved
Reopened



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.