[JIRA] (JENKINS-42597) Percent character (%) in filenames is not url-encoded in the CHANGES page

2 views
Skip to first unread message

afein@cloudbees.com (JIRA)

unread,
Mar 8, 2017, 11:30:02 PM3/8/17
to jenkinsc...@googlegroups.com
Aaron Fein created an issue
 
Jenkins / Bug JENKINS-42597
Percent character (%) in filenames is not url-encoded in the CHANGES page
Issue Type: Bug Bug
Assignee: Kirill Merkushev
Attachments: changes.png
Components: github-plugin
Created: 2017/Mar/09 4:29 AM
Priority: Minor Minor
Reporter: Aaron Fein

Percent character (%) in filenames is not url-encoded in the CHANGES page.  It results in broken links. See screenshot.  In this example the URL generated is 

https://github.beescloud.com/support-team/ZD-44831/blob/d51bb5f9d80eea1a9d7d3b5d52dc6485c25c4e33/conf_%.txt

whereas it should be 

https://github.beescloud.com/support-team/ZD-44831/blob/d51bb5f9d80eea1a9d7d3b5d52dc6485c25c4e33/conf_%25.txt

with the %25 encoding.  I believe change need in:

https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/browser/GithubWeb.java

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

lanwen@yandex.ru (JIRA)

unread,
Mar 9, 2017, 4:05:01 AM3/9/17
to jenkinsc...@googlegroups.com
Kirill Merkushev updated an issue
Change By: Kirill Merkushev
Component/s: git-plugin
Component/s: github-plugin

lanwen@yandex.ru (JIRA)

unread,
Mar 9, 2017, 4:05:01 AM3/9/17
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 9, 2017, 10:21:07 AM3/9/17
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Aug 20, 2018, 6:03:02 PM8/20/18
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-42597
 
Re: Percent character (%) in filenames is not url-encoded in the CHANGES page
I've duplicated the problem with the [ JENKINS-42597 job|https://github.com/MarkEWaite/docker-lfs/tree/lts-with-plugins/ref/jobs/Bugs-Individual/jobs/JENKINS-42597-percent-in-changed-filename-not-escaped] and with the [JENKINS-42597 branch|https://github.com/MarkEWaite/jenkins-bugs/tree/JENKINS-42597] which creates a pipeline job in my Docker image.  The steps I'd missed (note, this is not the complete set of steps to duplicate the problem, just the steps that I had failed to take from the user interface after defining the job):

# Submit a change to the github repository
# Poll the github repository for changes (in my case, in response to a notifyCommit)
# Confirm the build ran to completion
# Click the link for that specific build (number 12 in my case)
# Click the Changes link, confirm the summary shows a change to build-100%-number
# Click the link to build-100%-number, and see github report 404.  Clicking the diff link in at least one of my jobs correctly navigates to the diff on github

You can see the job definitions that show the problem in the [JENKINS-42597 branch|https://github.com/MarkEWaite/jenkins-bugs/tree/JENKINS-42597] in my jenkins-bugs repository and in the [JENKINS-42597 job|https://github.com/MarkEWaite/docker-lfs/tree/lts-with-plugins/ref/jobs/Bugs-Individual/jobs/JENKINS-42597-percent-in-changed-filename-not-escaped] in my Docker image.

Pictures captured the steps so that I'll remember them...
#  !step-01.PNG|thumbnail!
#  !step-02.PNG|thumbnail!
#  !step-03.PNG|thumbnail!
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

joseblas@gmail.com (JIRA)

unread,
Sep 6, 2018, 10:52:02 AM9/6/18
to jenkinsc...@googlegroups.com
Change By: Jose Blas Camacho Taboada
Assignee: Jose Blas Camacho Taboada
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

joseblas@gmail.com (JIRA)

unread,
Sep 6, 2018, 10:52:02 AM9/6/18
to jenkinsc...@googlegroups.com
Status: Open In Progress

joseblas@gmail.com (JIRA)

unread,
Sep 10, 2018, 4:05:04 AM9/10/18
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Nov 15, 2018, 12:08:05 PM11/15/18
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Nov 15, 2018, 12:09:02 PM11/15/18
to jenkinsc...@googlegroups.com
 

Should be included in version 4.0.0 of the git plugin once it is released.

Change By: Devin Nusbaum
Status: In Progress Fixed but Unreleased
Resolution: Fixed

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 2, 2019, 8:49:04 AM11/2/19
to jenkinsc...@googlegroups.com
Mark Waite updated Bug JENKINS-42597
 

Included in git plugin 4.0.0 released Nov 2, 2019

Change By: Mark Waite
Status: Fixed but Unreleased Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages