[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Jorge Cordoba updated JENKINS-60307 Seems the & was not being escaped in the xml. For XML files the ilegal characters are &, < and > (as well as " or ' in attributes). Writing "&+amp;" (without the + sign) instead of "&" should have no problems. As far as I can tell this is not a Jenkins issue, but an issue in the side of the one who sends the xml file. Jenkins / JENKINS-60307 CreateItem with rest api impossible with some character Change By: Jorge Cordoba Status: In Review Resolved Resolution: Not A Defect Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Jorge Cordoba updated JENKINS-60307 Jenkins / JENKINS-60307 CreateItem with rest api impossible with some character Change By: Jorge Cordoba Status: In Progress Review Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203302.157487527.9015.1574956380146%40Atlassian.JIRA.
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Yann-Thomas Le Moigne commented on JENKINS-60307 Re: CreateItem with rest api impossible with some character I am using CDATA for escape xml value in this case. Thank you. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203302.157487527.8500.1574932620592%40Atlassian.JIRA.
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Yann-Thomas Le Moigne edited a comment on JENKINS-60307 Re: CreateItem with rest api impossible with some character I am using CDATA for escape xml value in this case. Thank you. I think this ticket could be closed. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203302.157487527.8502.1574932621002%40Atlassian.JIRA.
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Jorge Cordoba edited a comment on JENKINS-60307 Re: CreateItem with rest api impossible with some character [~yatho], it seems you are not escaping the & in your XML body.For XML files the ilegal characters are {{&}}, {{<}} and {{>}} (as well as {{"}} or {{'}} in attributes).Writing "& + amp;" (without the + sign) instead of "&" should have no problems. As far as I can tell this is not a Jenkins issue, but an issue in the side of the one who sends the xml file. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203302.157487527.7999.1574899920156%40Atlassian.JIRA.
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Jorge Cordoba edited a comment on JENKINS-60307 Re: CreateItem with rest api impossible with some character [~yatho], it seems you are not escaping the & in your XML body.For XML files the ilegal characters are {{&}}, {{<}} and {{>}} (as well as {{"}} or {{'}} in attributes).Writing "" instead of "&" should have no problems.As far as I can tell this is not a Jenkins issue, but an issue in the side of the one who sends the xml file. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203302.157487527.7995.1574899810163%40Atlassian.JIRA.
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Jorge Cordoba commented on JENKINS-60307 Re: CreateItem with rest api impossible with some character Yann-Thomas Le Moigne, it seems you are not escaping the & in your XML body. For XML files the ilegal characters are &, < and > (as well as " or ' in attributes). Writing "&" instead of "&" should have no problems. As far as I can tell this is not a Jenkins issue, but an issue in the side of the one who sends the xml file. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203302.157487527.7993.1574899740181%40Atlassian.JIRA.
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Jorge Cordoba started work on JENKINS-60307 Change By: Jorge Cordoba Status: Open In Progress Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203302.157487527.7989.1574898660369%40Atlassian.JIRA.
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Jorge Cordoba assigned an issue to Jorge Cordoba Jenkins / JENKINS-60307 CreateItem with rest api impossible with some character Change By: Jorge Cordoba Assignee: Jorge Cordoba Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203302.157487527.7991.1574898660395%40Atlassian.JIRA.
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Jorge Cordoba commented on JENKINS-60307 Re: CreateItem with rest api impossible with some character I would like to try and fix this if no one is working in it. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203302.157487527.7979.1574898120219%40Atlassian.JIRA.
[JIRA] (JENKINS-60307) CreateItem with rest api impossible with some character
Title: Message Title Yann-Thomas Le Moigne created an issue Jenkins / JENKINS-60307 CreateItem with rest api impossible with some character Issue Type: Bug Assignee: Unassigned Attachments: resultCreateItemWithSpecialCharacter.PNG Components: core Created: 2019-11-27 17:21 Labels: api createItem Priority: Minor Reporter: Yann-Thomas Le Moigne When I would create a new job with the xml rest api route, and a description with special character as &, then jenkins server answer a 500 internal server error to my postman. If the description value contains any special character, then it's working correctly. My url : /createItem?name=yatho-test Header : content-type : application/xml Basic authent for the credentials Body : '1.1' encoding='UTF-8'?> "workflow-multibranch@2.21"> I am testing & and é and á ... "pipeline-maven@3.8.1"> "jenkins.mvn.DefaultSettingsProvider"/> "jenkins.mvn.DefaultGlobalSettingsProvider"/> false "pipeline-model-definition@1.3.9"> "docker-commons@1.15"/> "jenkins.branch.MultiBranchProjectViewHolder" plugin="branch-api@2.5.4"> "org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/> "cloudbees-folder@6.9"> false "jenkins.branch.MetadataActionFolderIcon" plugin="branch-api@2.5.4"> "org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/>