Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDN XML Formatting #10

Closed
mrwilson opened this issue May 23, 2018 · 3 comments
Closed

CDN XML Formatting #10

mrwilson opened this issue May 23, 2018 · 3 comments
Assignees
Labels
data Issues related to errata data

Comments

@mrwilson
Copy link

Hi,

We've noticed that the CDN-served errata.xml is being reformatted which is breaking XML parsing in downstream applications (see wied03/centos-package-cron#24)

In the "raw" (still on GitHub) an entry is formatted as

<CEBA-2018--0330 description="Not available" from="centos-announce@centos.org" issue_date="2018-04-26 17:41:10" notes="Not available" product="CentOS Linux" references="https://access.redhat.com/errata/RHBA-2018:0330 https://lists.centos.org/pipermail/centos-cr-announce/2018-April/004796.html" release="1" solution="Not available" synopsis="CentOS fio BugFix Update" topic="Not available" type="Bug Fix Advisory">
    <os_arch>x86_64</os_arch>
    <os_release>7</os_release>
    <packages>fio-3.1-2.el7.x86_64.rpm</packages>
  </CEBA-2018--0330>

In the version served from the CDN

<CEBA-2018--0330 description="Not available" from="centos-announce@centos.org" issue_date="2018-04-26 17:41:10" notes="Not available" os_arch="x86_64" os_release="7" packages="fio-3.1-2.el7.x86_64.rpm" product="CentOS Linux" references="https://access.redhat.com/errata/RHBA-2018:0330 https://lists.centos.org/pipermail/centos-cr-announce/2018-April/004796.html" release="1" solution="Not available" synopsis="CentOS fio BugFix Update" topic="Not available" type="Bug Fix Advisory"/>

What we're observing is that single-instance properties e.g. os_release are pulled into the root node as properties rather than child XML elements.

Thanks,

@mrwilson and @tsetsova

@stevemeier
Copy link
Owner

Oh, the wonders of XML.

I have updated the script that minifies the file delivered through the CDN and pushed out a new version, purging the old one. This should now be fixed.

Please let me know if that fixes your issue.

@stevemeier stevemeier self-assigned this May 23, 2018
@stevemeier stevemeier added the data Issues related to errata data label May 23, 2018
@stevemeier
Copy link
Owner

@mrwilson
Copy link
Author

Thanks for the speedy response! It's certainly fixed the centos-package-cron parsing. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Issues related to errata data
Projects
None yet
Development

No branches or pull requests

2 participants