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

Comments

Projects
None yet
2 participants
@mrwilson

mrwilson commented May 23, 2018

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

This comment has been minimized.

Owner

stevemeier commented May 23, 2018

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 label May 23, 2018

@stevemeier

This comment has been minimized.

@mrwilson

This comment has been minimized.

mrwilson commented May 30, 2018

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

@stevemeier stevemeier closed this May 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment