[JIRA] (JENKINS-7501) POST'ing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc)
jglick commented on JENKINS-7501 POSTing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc) Confirmed that this is broken in Jenkins dev for both creating and modifying jobs, though they seem to use different code paths: curl -d @config.xml -H 'Content-Type: text/xml' 'http://localhost:8080/createItem?name=new' curl -d @config.xml http://localhost:8080/job/existing/config.xml 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
[JIRA] (JENKINS-7501) POST'ing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc)
jglick edited a comment on JENKINS-7501 POSTing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc) Confirmed that this is broken in Jenkins dev for both creating and modifying jobs, though they seem to use different code paths: curl -d @config.xml -H 'Content-Type: text/xml' 'http://localhost:8080/createItem?name=new' curl -d @config.xml http://localhost:8080/job/existing/config.xml 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
[JIRA] (JENKINS-7501) POST'ing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc)
jglick resolved JENKINS-7501 as Not A Defect POSTing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc) In fact Jenkins is working fine. The problem is in your script: you need to use -data-binary rather than -data. Change By: jglick (25/Jul/12 1:11 PM) Status: Open Resolved Resolution: NotADefect 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
[JIRA] (JENKINS-7501) POST'ing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc)
jglick commented on JENKINS-7501 POSTing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc) I suspect the use of javax.xml.transform.Transformer is to blame; this has been there since the POST support was added in 2008 (eabb943). 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
[JIRA] (JENKINS-7501) POST'ing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc)
Bernhard Wiedemann commented on JENKINS-7501 POSTing a config.xml to create a new job via the XML API results in newlines being removed from XML elements containing them (ant build steps, winbatch steps, etc) still present in Jenkins 1.461 It is breaking backup/restore for us because we have multi-line properties to set multiple shell variables 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