You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-22028] HTML in job description does not get rendered (all html tags escaped) #22924
We have html job descriptions for most of our jobs. Since upgrading to the latest jenkins version 1.553 (from 1.538) the html tags do not get rendered. Instead plain html code is shown.
The same applies for the "Preview" when editing the job description.
We have html job descriptions for most of our jobs. Since upgrading to the latest jenkins version 1.553 (from 1.538) the html tags do not get rendered. Instead plain html code is shown.
The same applies for the "Preview" when editing the job description.
environment: Ubuntu, Tomcat 7.0.52, jenkins war distribution
Images (from /userContent) and links aren't rendered anymore, only shown as plain HTML. Which is hindering usability...
Addition: this not only applies to job descriptions, but also elsewhere, e.g. the system message that can be configured in the system-wide configuration settings and gets displayed on the top page.
Same issue since 1.553.
Images (from /userContent) and links aren't rendered anymore, only shown as plain HTML. Which is hindering usability...
Addition: this not only applies to job descriptions, but also elsewhere, e.g. the system message that can be configured in the system-wide configuration settings and gets displayed on the top page.
In 1.553 the Raw HTML Formatter was moved to the new antisamy-markup-formatter plugin.
This seems to have changed the default HTML formatter from Raw HTML to Escaped HTML, which escapes all HTML.
You can restore the original behavior by selecting Raw HTML as the Markup Formatter on the Configure Global Security page.
In 1.553 the Raw HTML Formatter was moved to the new antisamy-markup-formatter plugin.
This seems to have changed the default HTML formatter from Raw HTML to Escaped HTML, which escapes all HTML.
You can restore the original behavior by selecting Raw HTML as the Markup Formatter on the Configure Global Security page.
On the Configure Global Security page my only options are Enable security and Prevent Cross Site Request Forgery Exploits. I'm not seeing a Markup Formatter option on that page.
I'm seeing this same issue with 1.553.
On the Configure Global Security page my only options are Enable security and Prevent Cross Site Request Forgery Exploits. I'm not seeing a Markup Formatter option on that page.
The Markup Formatter option is only available if you Enable security.
It's a bit strange that you first have to enable security in order to change the formatter to a potentially dangerous one. This would make more sense if the default formatter were Escaped HTML.
I think the default formatter should be Raw HTML and the Markup Formatter option should be moved directly to the Configure Global Security page, just like Prevent Cross Site Request Forgery Exploits,
The Markup Formatter option is only available if you Enable security.
It's a bit strange that you first have to enable security in order to change the formatter to a potentially dangerous one. This would make more sense if the default formatter were Escaped HTML.
I think the default formatter should be Raw HTML and the Markup Formatter option should be moved directly to the Configure Global Security page, just like Prevent Cross Site Request Forgery Exploits,
The workaround described above worked for us:
"Configure Global Security" -> Check "Enable Security" -> Choose Markup Formatter = "Raw HTML", then pressing "Save" (without selecting any other option).
Interestingly, when going to "Configure Global Security" again, the checkbox "Enable Security" is unchecked again. But still the default for Markup Formatter has been changed to "Raw HTML". So I agree that the the option Markup Formatter should probably be moved out of "Enable Security".
The workaround described above worked for us:
"Configure Global Security" -> Check "Enable Security" -> Choose Markup Formatter = "Raw HTML", then pressing "Save" (without selecting any other option).
Interestingly, when going to "Configure Global Security" again, the checkbox "Enable Security" is unchecked again. But still the default for Markup Formatter has been changed to "Raw HTML". So I agree that the the option Markup Formatter should probably be moved out of "Enable Security".
I am not sure this is related, but I can't see an iframe in the description get rendered any more. I was rendered before and now it is not.
I do have RAW HTML enabled and other HTML is rendered OK.
I am not sure this is related, but I can't see an iframe in the description get rendered any more. I was rendered before and now it is not.
I do have RAW HTML enabled and other HTML is rendered OK.
I have the same problem on the Jenkinswhich install on Windows(sinice update to 1.555 or later, I think) , but the Jenkins which install on suse works well
I have the same problem on the Jenkinswhich install on Windows(sinice update to 1.555 or later, I think) , but the Jenkins which install on suse works well
pablaasmo: Contrary to what the name indicates, "Raw HTML" doesn't allow potentially unsafe HTML (like iframes). Use the Anything goes Formatter for this.
pablaasmo: Contrary to what the name indicates, "Raw HTML" doesn't allow potentially unsafe HTML (like iframes). Use the Anything goes Formatter for this.
The currently unreleased Jenkins 1.564 will allow selection of a markup formatter even with security disabled (similar to the CSRF protection).
Additionally, changed name and description of 'Raw HTML' formatter to better reflect what it actually does. Will be part of the next release of the antisamy-markup-formatter plugin.
If you experience this issue, update to Jenkins 1.564 or newer and select 'Raw HTML' or 'Safe HTML' on the Configure Global Security page.
The currently unreleased Jenkins 1.564 will allow selection of a markup formatter even with security disabled (similar to the CSRF protection).
Additionally, changed name and description of 'Raw HTML' formatter to better reflect what it actually does. Will be part of the next release of the antisamy-markup-formatter plugin.
Code changed in jenkins
User: Daniel Beck
Path:
core/src/main/java/hudson/security/GlobalSecurityConfiguration.java
core/src/main/java/jenkins/model/Jenkins.java
core/src/main/resources/hudson/security/GlobalSecurityConfiguration/index.groovy
http://jenkins-ci.org/commit/jenkins/ac3a5cd61461c5f7f063c57fba81a5aec6409664
Log:
[FIX JENKINS-22028] Allow MarkupFormatter without enabling security
Given the current default of 'Escaped HTML', it makes no sense
to require users to 'Enable Security' to set up a less secure
alternative. So show it on the global security configuration page
on top level.
Code changed in jenkins
User: Daniel Beck
Path:
core/src/main/java/hudson/security/GlobalSecurityConfiguration.java
core/src/main/java/jenkins/model/Jenkins.java
core/src/main/resources/hudson/security/GlobalSecurityConfiguration/index.groovy http://jenkins-ci.org/commit/jenkins/ac3a5cd61461c5f7f063c57fba81a5aec6409664
Log: [FIX JENKINS-22028] Allow MarkupFormatter without enabling security
Given the current default of 'Escaped HTML', it makes no sense
to require users to 'Enable Security' to set up a less secure
alternative. So show it on the global security configuration page
on top level.
Activity
jenkins-infra-bot commentedon Mar 5, 2014
cb372:
Raw content of original comment:
Same problem here after upgrading to 1.553. This entry from the changelog looks suspicious:
jenkins-infra-bot commentedon Mar 5, 2014
belpk:
Raw content of original comment:
Same issue since 1.553.
Images (from /userContent) and links aren't rendered anymore, only shown as plain HTML. Which is hindering usability...
Addition: this not only applies to job descriptions, but also elsewhere, e.g. the system message that can be configured in the system-wide configuration settings and gets displayed on the top page.
jenkins-infra-bot commentedon Mar 5, 2014
Raw content of original comment:
In 1.553 the Raw HTML Formatter was moved to the new antisamy-markup-formatter plugin.
This seems to have changed the default HTML formatter from Raw HTML to Escaped HTML, which escapes all HTML.
You can restore the original behavior by selecting Raw HTML as the Markup Formatter on the Configure Global Security page.
jenkins-infra-bot commentedon Mar 5, 2014
gpatten:
Raw content of original comment:
I'm seeing this same issue with 1.553.
On the Configure Global Security page my only options are Enable security and Prevent Cross Site Request Forgery Exploits. I'm not seeing a Markup Formatter option on that page.
jenkins-infra-bot commentedon Mar 5, 2014
Raw content of original comment:
The Markup Formatter option is only available if you Enable security.
It's a bit strange that you first have to enable security in order to change the formatter to a potentially dangerous one. This would make more sense if the default formatter were Escaped HTML.
I think the default formatter should be Raw HTML and the Markup Formatter option should be moved directly to the Configure Global Security page, just like Prevent Cross Site Request Forgery Exploits,
jenkins-infra-bot commentedon Mar 6, 2014
Raw content of original comment:
The workaround described above worked for us:
"Configure Global Security" -> Check "Enable Security" -> Choose Markup Formatter = "Raw HTML", then pressing "Save" (without selecting any other option).
Interestingly, when going to "Configure Global Security" again, the checkbox "Enable Security" is unchecked again. But still the default for Markup Formatter has been changed to "Raw HTML". So I agree that the the option Markup Formatter should probably be moved out of "Enable Security".
jenkins-infra-bot commentedon Apr 7, 2014
Raw content of original comment:
I am not sure this is related, but I can't see an iframe in the description get rendered any more. I was rendered before and now it is not.
I do have RAW HTML enabled and other HTML is rendered OK.
jenkins-infra-bot commentedon Apr 14, 2014
Raw content of original comment:
We have the same problem with iframes defined in the description fields not being rendered. All other HTML works fine though.
jenkins-infra-bot commentedon Apr 22, 2014
Raw content of original comment:
I have the same issue when migrating from 1.538 to 1.560
jenkins-infra-bot commentedon May 6, 2014
Raw content of original comment:
I have the same problem on the Jenkinswhich install on Windows(sinice update to 1.555 or later, I think) , but the Jenkins which install on suse works well
jenkins-infra-bot commentedon May 6, 2014
Raw content of original comment:
pablaasmo: Contrary to what the name indicates, "Raw HTML" doesn't allow potentially unsafe HTML (like iframes). Use the Anything goes Formatter for this.
jenkins-infra-bot commentedon May 11, 2014
Raw content of original comment:
Allow configuring the markup formatter without requiring "Enable Security":
#1235
Change the display name and description of the bundled 'Raw HTML' formatter plugin to match its behavior:
jenkinsci/antisamy-markup-formatter-plugin#1
jenkins-infra-bot commentedon May 12, 2014
Raw content of original comment:
Jesse Glick : f3943a4ef707697e4cd512463c81b07f9bec95bc Files :
Integrated in
jenkins_main_trunk #3374
[FIX JENKINS-22028] Allow MarkupFormatter without enabling security (Revision ac3a5cd)
JENKINS-22028Noting merge of #1235. (Revision f3943a4)Result = SUCCESS
daniel-beck : ac3a5cd61461c5f7f063c57fba81a5aec6409664
Files :
Jesse Glick : f3943a4ef707697e4cd512463c81b07f9bec95bc
Files :
jenkins-infra-bot commentedon May 15, 2014
Raw content of original comment:
The currently unreleased Jenkins 1.564 will allow selection of a markup formatter even with security disabled (similar to the CSRF protection).
Additionally, changed name and description of 'Raw HTML' formatter to better reflect what it actually does. Will be part of the next release of the antisamy-markup-formatter plugin.
In case of no existing security configuration, the default was changed from Raw/Safe HTML to Escaped HTML in 1.553. I don't think this is bad enough to warrant additional backwards compatibility changes as it's easily changed in the config, especially in 1.564 onward. Therefore I'm closing this.
If you experience this issue, update to Jenkins 1.564 or newer and select 'Raw HTML' or 'Safe HTML' on the Configure Global Security page.
jenkins-infra-bot commentedon May 19, 2014
Raw content of original comment:
Code changed in jenkins
User: Daniel Beck
Path:
core/src/main/java/hudson/security/GlobalSecurityConfiguration.java
core/src/main/java/jenkins/model/Jenkins.java
core/src/main/resources/hudson/security/GlobalSecurityConfiguration/index.groovy
http://jenkins-ci.org/commit/jenkins/ac3a5cd61461c5f7f063c57fba81a5aec6409664
Log:
[FIX JENKINS-22028] Allow MarkupFormatter without enabling security
Given the current default of 'Escaped HTML', it makes no sense
to require users to 'Enable Security' to set up a less secure
alternative. So show it on the global security configuration page
on top level.
13 remaining items
jenkins-infra-bot commentedon Jun 19, 2015
Raw content of original comment:
Code changed in jenkins
User: Radek Antoniuk
Path:
core/src/main/resources/hudson/markup/Messages.properties
http://jenkins-ci.org/commit/jenkins/d758818b09ecd8d3eebebc927409e0ed58b2938a
Log:
JENKINS-22028- update label to reflect actual behaviorjenkins-infra-bot commentedon Jun 19, 2015
Raw content of original comment:
Code changed in jenkins
User: Daniel Beck
Path:
core/src/main/resources/hudson/markup/Messages.properties
http://jenkins-ci.org/commit/jenkins/107a502db4a55122f9be13ef0e31bebde8fe733d
Log:
Merge pull request #1742 from QUIDDIA/master
JENKINS-22028update label to reflect actual behaviorCompare: 76f4c35...107a502
jenkins-infra-bot commentedon Dec 9, 2015
jsdevel:
Raw content of original comment:
Reopening as the initial fix only changed the display name, not the info message (see screenshot). Verified in 1.625.2

jenkins-infra-bot commentedon Dec 9, 2015
jsdevel:
Raw content of original comment:
Pending PR https://github.com/kogosoftwarellc/jenkins/pull/1
jenkins-infra-bot commentedon Dec 9, 2015
Raw content of original comment:
First, the message is true. It's just that you did not enable markup formatting, so there's no formatting applied.
Second, nobody on this tracker cares about PRs to your own forks of Jenkins.
jenkins-infra-bot commentedon Nov 24, 2025
[Original
is_duplicated_byfrom Jira: JENKINS-22266]jenkins-infra-bot commentedon Nov 24, 2025
[Original
relates_tofrom Jira: JENKINS-26565]