[Bug 210882] New: osc creates non well-formed XML output
https://bugzilla.novell.com/show_bug.cgi?id=210882 Summary: osc creates non well-formed XML output Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: thomas.schraitle@novell.com QAContact: adrian@novell.com Run: $ osc results_meta > /tmp/osc.output.xml The file "osc.output.xml" is not a well-formed XML file. There are more than one packageresult elements as a root element. However, the XML specification states that in a file can only exists ONE root element. To be conform with the XML specification, the packageresult elements must be wrapped inside a parent element to be a well-formed XML file. The package version of osc is osc-0.8-18.1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882 thomas.schraitle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|osc creates non well-formed |osc creates non well-formed XML output |XML output |(subcommand results_meta) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882 stbinner@suse.de changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |poeml@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882 poeml@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |thomas.schraitle@novell.com ------- Comment #1 from poeml@novell.com 2006-10-09 03:04 MST ------- What osc prints out is the concatenated output of one xml result for each target (one request is made for each). This is likely going to be changed with a redesign of the output, because the current necessity of requesting the status for each target is not optimal. (The is a project-wide status but it doesn't yield as much detail.) Did you find this by accident, or do you actually use the output for something? I'm asking also because I have been wondering wether a --xml option might make sense, as subversion has. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882 ------- Comment #2 from thomas.schraitle@novell.com 2006-10-10 00:59 MST -------
Did you find this by accident, or do you actually use the output for something?
I found this by accident. :) At the moment I don't use the output but maybe in the future.
I'm asking also because I have been wondering wether a --xml option might make sense, as subversion has.
I like this idea! :-) Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882 ------- Comment #3 from thomas.schraitle@novell.com 2007-01-30 08:37 MST ------- Peter, do you need more information from me? :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882 ------- Comment #4 from poeml@novell.com 2007-01-30 08:42 MST ------- I don't think I'm going to fix this soon, sorry. There are many other things with higher priority. Thanks for asking though. I'm also not clear how to fix it: - change results_meta to the "platform" argument becomes mandatory (so one would need to iterate over the targets) - remove it altogether, and implement it back later (maybe), per results --xml switch - other ideas? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882 ------- Comment #5 from milisav.radmanic@novell.com 2007-02-09 07:14 MST ------- should we track this as a feature request in Fate rather than in bugzilla? Fate provides better support to handle priority and similar. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882 ------- Comment #6 from poeml@novell.com 2007-02-09 12:21 MST ------- No, it is not worth the overhead. Unless someone wants to do that work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882 ------- Comment #7 from thomas.schraitle@novell.com 2007-02-09 13:27 MST ------- Created an attachment (id=118414) --> (https://bugzilla.novell.com/attachment.cgi?id=118414&action=view) Patch against osc-0.9-11.1 to introduce root element packageresults This patch for osc version 0.9-11.1 introduces a new root element packageresults. Feel free to correct it to your needs. At least it creates a well-formed XML file, although you might change your underlying code in the future. Hope that helps. :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210882#c8 Peter Poeml <poeml@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|thomas.schraitle@novell.com | Resolution| |FIXED --- Comment #8 from Peter Poeml <poeml@novell.com> 2007-07-13 06:41:48 MST --- The results_meta output looks different nowadays, and seems to meet the requirements. Thus, I consider the bug fixed. Example: % osc results_meta . <resultlist state="016f2edc2559de7fced83668c1d547f2"> <result project="home:poeml" repository="Debian_Etch" arch="i586"> <status package="scapy" code="succeeded" /> </result> <result project="home:poeml" repository="Fedora_Core_5" arch="i586"> <status package="scapy" code="failed" /> </result> <result project="home:poeml" repository="openSUSE_10.2" arch="i586"> <status package="scapy" code="succeeded" /> </result> <result project="home:poeml" repository="openSUSE_10.2" arch="x86_64"> <status package="scapy" code="succeeded" /> </result> <result project="home:poeml" repository="openSUSE_Factory" arch="i586"> <status package="scapy" code="succeeded" /> </result> <result project="home:poeml" repository="openSUSE_Factory" arch="x86_64"> <status package="scapy" code="succeeded" /> </result> <result project="home:poeml" repository="SuSE_Linux_10.0" arch="i586"> <status package="scapy" code="failed" /> </result> <result project="home:poeml" repository="SuSE_Linux_10.0" arch="x86_64"> <status package="scapy" code="succeeded" /> </result> <result project="home:poeml" repository="SuSE_Linux_10.1" arch="i586"> <status package="scapy" code="succeeded" /> </result> <result project="home:poeml" repository="SuSE_Linux_10.1" arch="x86_64"> <status package="scapy" code="succeeded" /> </result> </resultlist> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com