<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hmm...still don't know, why this errata is parsed different right now. Within the updateinfo.xml.gz, this one (for examle) is imported correctly (as it looks)</div>

<div> </div>

<div>
<p>  <update from="<a href="mailto:maint-coord@suse.de">maint-coord@suse.de</a>" status="stable" type="security" version="2740"><br/>
    <id>sdksp1-tomcat6</id><br/>
    <title>Security update for tomcat6</title><br/>
    <release>SUSE Linux Enterprise Software Development Kit 11 SP1</release><br/>
    <issued date="1279521920" /><br/>
    <references><br/>
      <reference href="<a href="https://bugzilla.novell.com/show_bug.cgi?id=622188">https://bugzilla.novell.com/show_bug.cgi?id=622188</a>" id="622188" title="bug number 622188" type="bugzilla" /><br/>
      <reference href="<a href="https://bugzilla.novell.com/show_bug.cgi?id=599554">https://bugzilla.novell.com/show_bug.cgi?id=599554</a>" id="599554" title="bug number 599554" type="bugzilla" /><br/>
      <reference href="<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-2227">http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-2227</a>" id="CVE-2010-2227" title="CVE-2010-2227" type="cve" /><br/>
      <reference href="<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-1157">http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-1157</a>" id="CVE-2010-1157" title="CVE-2010-1157" type="cve" /><br/>
    </references><br/>
    <description><br/>
This update of tomcat fixes denial of service and information disclosure<br/>
vulnerabilities which could potentially be exploited by remote attackers to<br/>
crash tomcat or to obtain sensitive information (CVE-2010-2227,<br/>
CVE-2010-1157).</p>

<p>Security Issues:</p>

<div><br/>
    * CVE-2010-2227<br/>
      &lt;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-2227&gt;<br/>
    * CVE-2010-1157<br/>
      &lt;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-1157&gt;</div>

<div></description><br/>
    <pkglist><br/>
      <collection><br/>
        <package name="tomcat6" version="6.0.18" release="20.5.1" arch="noarch"><br/>
          <filename>tomcat6-6.0.18-20.5.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-admin-webapps" version="6.0.18" release="20.5.1" arch="noarch"><br/>
          <filename>tomcat6-admin-webapps-6.0.18-20.5.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-docs-webapp" version="6.0.18" release="20.5.1" arch="noarch"><br/>
          <filename>tomcat6-docs-webapp-6.0.18-20.5.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-javadoc" version="6.0.18" release="20.5.1" arch="noarch"><br/>
          <filename>tomcat6-javadoc-6.0.18-20.5.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-jsp-2_1-api" version="6.0.18" release="20.5.1" arch="noarch"><br/>
          <filename>tomcat6-jsp-2_1-api-6.0.18-20.5.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-lib" version="6.0.18" release="20.5.1" arch="noarch"><br/>
          <filename>tomcat6-lib-6.0.18-20.5.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-servlet-2_5-api" version="6.0.18" release="20.5.1" arch="noarch"><br/>
          <filename>tomcat6-servlet-2_5-api-6.0.18-20.5.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-webapps" version="6.0.18" release="20.5.1" arch="noarch"><br/>
          <filename>tomcat6-webapps-6.0.18-20.5.1.noarch.rpm</filename><br/>
        </package><br/>
      </collection><br/>
    </pkglist><br/>
  </update></div>

<div> </div>

<div>But this one not. In the errata above (and all others?), "erratum['packages']" is a "dict()". And in the one below, it is a "list()", causing the error.</div>

<div> </div>

<div>
<p>  <update from="<a href="mailto:maint-coord@suse.de">maint-coord@suse.de</a>" status="stable" type="recommended" version="4361"><br/>
    <id>sdksp1-tomcat6</id><br/>
    <title>Recommended update for tomcat6</title><br/>
    <release>SUSE Linux Enterprise Software Development Kit 11 SP1</release><br/>
    <issued date="1302612141" /><br/>
    <references><br/>
      <reference href="<a href="https://bugzilla.novell.com/show_bug.cgi?id=681914">https://bugzilla.novell.com/show_bug.cgi?id=681914</a>" id="681914" title="bug number 681914" type="bugzilla" /><br/>
    </references><br/>
    <description><br/>
This update fixes the Expression Language parser.</p>

<p>The parser was previously unable parse expressions without additional<br/>
whitespaces - like '${not(true)}'. This is addressed in apache bug #45511.<br/>
And the last character of namespace is lost during a parsing, which makes<br/>
this feature unusable. This is apache bug #45648. Both issues are fixed by<br/>
this update.</p>

<p></description><br/>
    <pkglist><br/>
      <collection><br/>
        <package name="tomcat6" version="6.0.18" release="20.23.1" arch="noarch"><br/>
          <filename>tomcat6-6.0.18-20.23.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-admin-webapps" version="6.0.18" release="20.23.1" arch="noarch"><br/>
          <filename>tomcat6-admin-webapps-6.0.18-20.23.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-docs-webapp" version="6.0.18" release="20.23.1" arch="noarch"><br/>
          <filename>tomcat6-docs-webapp-6.0.18-20.23.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-javadoc" version="6.0.18" release="20.23.1" arch="noarch"><br/>
          <filename>tomcat6-javadoc-6.0.18-20.23.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-jsp-2_1-api" version="6.0.18" release="20.23.1" arch="noarch"><br/>
          <filename>tomcat6-jsp-2_1-api-6.0.18-20.23.1.noarch.rpm</filename><br/>
        </package></p>

<p>        <package name="tomcat6-lib" version="6.0.18" release="20.23.1" arch="noarch"><br/>
          <filename>tomcat6-lib-6.0.18-20.23.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-servlet-2_5-api" version="6.0.18" release="20.23.1" arch="noarch"><br/>
          <filename>tomcat6-servlet-2_5-api-6.0.18-20.23.1.noarch.rpm</filename><br/>
        </package><br/>
        <package name="tomcat6-webapps" version="6.0.18" release="20.23.1" arch="noarch"><br/>
          <filename>tomcat6-webapps-6.0.18-20.23.1.noarch.rpm</filename><br/>
        </package><br/>
      </collection><br/>
    </pkglist><br/>
  </update><br/>
 </p>

<p> </p>
</div>
</div>

<div> 
<div name="quote" style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left-color: rgb(195, 217, 229); border-left-width: 2px; border-left-style: solid; -ms-word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin: 0px 0px 10px;"><b>Gesendet:</b> Donnerstag, 28. September 2017 um 15:06 Uhr<br/>
<b>Von:</b> "Robert Paschedag" <robert.paschedag@web.de><br/>
<b>An:</b> "Paul Robert Marino" <prmarino1@gmail.com><br/>
<b>Cc:</b> "spacewalk-list@redhat.com" <spacewalk-list@redhat.com><br/>
<b>Betreff:</b> Re: [Spacewalk-list] Importing errata from RPM channel failes with ERROR: 'list' object has no attribute 'keys'</div>

<div name="quoted-content">
<div style="font-family: Verdana; font-size: 12px;">
<div>
<div>this is exactly what I have done. This is a test system and I ran nightly because of PR500 (debian and ubuntu package version handling) and that is what I have tested. Now that 2.7 has been released, I wanted to upgrade to the "release" and test all other stuff.</div>

<div> </div>

<div>No....had started debugging and located the error in some "old" erratas.</div>

<div> </div>

<div>Sorry for long output. But this is the line in "errataImport.py", where the error occures. As you can see in this "one" errata I debugged now, "packages" is truely a "list" of "IncompletePackage" instances and not a "dict".</div>

<div> </div>

<div>263             # 'package in erratum['packages'].values()' here. But for (to me) unknown<br/>
264             # reason it sometimes has package.id == None which makes whole import fail.<br/>
265             # And self.packages[nevrao].id contains always right value.<br/>
266             for nevrao in erratum['packages'].keys():<br/>
(Pdb) p erratum<br/>
[<spacewalk.server.importlib.importLib.Erratum instance; attributes={'advisory_name': 'sdksp1-tomcat6', 'advisory': 'sdksp1-tomcat6-4361', 'product': 'SUSE Linux Enterprise Software Development Kit 11 SP1', 'description': "\nThis update fixes the Expression Language parser.\n\nThe parser was previously unable parse expressions without additional \nwhitespaces - like '${not(true)}'. This is addressed in apache bug #45511. \nAnd the last character of namespace is lost during a parsing, which makes \nthis feature unusable. This is apache bug #45648. Both issues are fixed by \nthis update.\n\n", 'errata_from': <a href="mailto:'maint-coord@suse.de'" onclick="parent.window.location.href='\'maint-coord@suse.de\''; return false;" target="_blank">'maint-coord@suse.de'</a>, 'locally_modified': None, 'refers_to': None, 'solution': ' ', 'topic': ' ', 'last_modified': None, 'keywords': [],</div>

<div> </div>

<div>list starts...</div>

<div> </div>

<div>'packages': [[<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'package_size': None, 'name': 'tomcat6', 'src': None, 'checksum_list': None, 'md5sum': None, 'org_id': 1, 'epoch': None, 'filename': 'tomcat6-6.0.18-20.23.1.noarch.rpm', 'channels': None, 'package_id': 21326, 'last_modified': None, 'version': '6.0.18', 'checksum_type': 'md5', 'release': '20.23.1', 'checksums': {'md5': '5b887c3e6b5d060f6a1875fa50e897db'}, 'checksum': '5b887c3e6b5d060f6a1875fa50e897db', 'arch': 'noarch'}], [<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'package_size': None, 'name': 'tomcat6-admin-webapps', 'src': None, 'checksum_list': None, 'md5sum': None, 'org_id': 1, 'epoch': None, 'filename': 'tomcat6-admin-webapps-6.0.18-20.23.1.noarch.rpm', 'channels': None, 'package_id': 21328, 'last_modified': None, 'version': '6.0.18', 'checksum_type': 'md5', 'release': '20.23.1', 'checksums': {'md5': '8a68846141b10f46e3003ca74baa793b'}, 'checksum': '8a68846141b10f46e3003ca74baa793b', 'arch': 'noarch'}], [<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'package_size': None, 'name': 'tomcat6-docs-webapp', 'src': None, 'checksum_list': None, 'md5sum': None, 'org_id': 1, 'epoch': None, 'filename': 'tomcat6-docs-webapp-6.0.18-20.23.1.noarch.rpm', 'channels': None, 'package_id': 21323, 'last_modified': None, 'version': '6.0.18', 'checksum_type': 'md5', 'release': '20.23.1', 'checksums': {'md5': '58e759e5fccad6f265096341f323307d'}, 'checksum': '58e759e5fccad6f265096341f323307d', 'arch': 'noarch'}], [<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'package_size': None, 'name': 'tomcat6-javadoc', 'src': None, 'checksum_list': None, 'md5sum': None, 'org_id': 1, 'epoch': None, 'filename': 'tomcat6-javadoc-6.0.18-20.23.1.noarch.rpm', 'channels': None, 'package_id': 21327, 'last_modified': None, 'version': '6.0.18', 'checksum_type': 'md5', 'release': '20.23.1', 'checksums': {'md5': '53dbb12db41537a1d8adb949b52b018e'}, 'checksum': '53dbb12db41537a1d8adb949b52b018e', 'arch': 'noarch'}], [<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'package_size': None, 'name': 'tomcat6-jsp-2_1-api', 'src': None, 'checksum_list': None, 'md5sum': None, 'org_id': 1, 'epoch': None, 'filename': 'tomcat6-jsp-2_1-api-6.0.18-20.23.1.noarch.rpm', 'channels': None, 'package_id': 21324, 'last_modified': None, 'version': '6.0.18', 'checksum_type': 'md5', 'release': '20.23.1', 'checksums': {'md5': 'a72147cfba8d1e0f1ac9c1922d393d85'}, 'checksum': 'a72147cfba8d1e0f1ac9c1922d393d85', 'arch': 'noarch'}], [<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'package_size': None, 'name': 'tomcat6-lib', 'src': None, 'checksum_list': None, 'md5sum': None, 'org_id': 1, 'epoch': None, 'filename': 'tomcat6-lib-6.0.18-20.23.1.noarch.rpm', 'channels': None, 'package_id': 21330, 'last_modified': None, 'version': '6.0.18', 'checksum_type': 'md5', 'release': '20.23.1', 'checksums': {'md5': 'f5b1e10d6d78331cb07526ebf8dee6bf'}, 'checksum': 'f5b1e10d6d78331cb07526ebf8dee6bf', 'arch': 'noarch'}], [<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'package_size': None, 'name': 'tomcat6-servlet-2_5-api', 'src': None, 'checksum_list': None, 'md5sum': None, 'org_id': 1, 'epoch': None, 'filename': 'tomcat6-servlet-2_5-api-6.0.18-20.23.1.noarch.rpm', 'channels': None, 'package_id': 21329, 'last_modified': None, 'version': '6.0.18', 'checksum_type': 'md5', 'release': '20.23.1', 'checksums': {'md5': 'ea0410c4628b7e570412d319dac4f466'}, 'checksum': 'ea0410c4628b7e570412d319dac4f466', 'arch': 'noarch'}], [<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'package_size': None, 'name': 'tomcat6-webapps', 'src': None, 'checksum_list': None, 'md5sum': None, 'org_id': 1, 'epoch': None, 'filename': 'tomcat6-webapps-6.0.18-20.23.1.noarch.rpm', 'channels': None, 'package_id': 21325, 'last_modified': None, 'version': '6.0.18', 'checksum_type': 'md5', 'release': '20.23.1', 'checksums': {'md5': '69436a9c144a06e0d7e47d71610e24e3'}, 'checksum': '69436a9c144a06e0d7e47d71610e24e3', 'arch': 'noarch'}]],</div>

<div> </div>

<div>list ended...</div>

<div> </div>

<div> 'files': [], 'advisory_type': 'Bug Fix Advisory', 'issue_date': '2011-04-12 14:42:21', 'notes': '', 'org_id': 1, 'bugs': [[<spacewalk.server.importlib.importLib.Bug instance; attributes={'bug_id': 681914, 'href': '<a href="https://bugzilla.novell.com/show_bug.cgi?id=681914'" target="_blank">https://bugzilla.novell.com/show_bug.cgi?id=681914'</a>, 'summary': 'bug number 681914'}]], 'advisory_rel': '4361', 'synopsis': 'Recommended update for tomcat6', 'cve': [], 'update_date': '2011-04-12 14:42:21', 'channels': [{'label': 'sle11-sdk-sp1-updates-x86_64'}]}]</div>

<div>...</div>

<div>
<div> </div>

<div>I wil try to remove that errata (and following, that break the import) and see, if this is "reimported" correctly.</div>

<div> </div>

<div>Robert</div>

<div> </div>

<div style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left-color: rgb(195, 217, 229); border-left-width: 2px; border-left-style: solid;">
<div style="margin: 0px 0px 10px;"><b>Gesendet:</b> Donnerstag, 28. September 2017 um 14:12 Uhr<br/>
<b>Von:</b> "Paul Robert Marino" <prmarino1@gmail.com><br/>
<b>An:</b> "Robert Paschedag" <robert.paschedag@web.de><br/>
<b>Cc:</b> "spacewalk-list@redhat.com" <spacewalk-list@redhat.com><br/>
<b>Betreff:</b> Re: Re: [Spacewalk-list] Importing errata from RPM channel failes with ERROR: 'list' object has no attribute 'keys'</div>

<div>
<div>well and that may be the root of your problem. you should never run the nightly version in production! Only run the nightly version in a QA/Dev environment here you are specifically testing for the next release of spacewalk. if you run the nightly version in production you are asking for things to break, while in theory you should be able to upgrade fom a nightly to a new release that doesn't mean that damage done by a broken nightly version will corrected.
<div>the only time i ever run a nightly build is when I'm trying to test prior to a new release or if i wrote a patch and want to test it against the latest version of the code, and when i do it is usually an instance on a VM that manages a few other VM's just to test functionality.</div>
</div>

<div class="gmail_extra"> 
<div class="gmail_quote">On Thu, Sep 28, 2017 at 6:49 AM, Robert Paschedag <span><<a href="mailto:robert.paschedag@web.de" onclick="parent.window.location.href='robert.paschedag@web.de'; return false;" target="_blank">robert.paschedag@web.de</a>></span> wrote:

<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">Damn....looks like I got this error before upgrading to 2.7 release. Went back to snapshot (with 2.7 nightly) and this error is present. Will start to debug this.<br/>
<br/>
> Gesendet: Donnerstag, 28. September 2017 um 08:31 Uhr<br/>
> Von: "Robert Paschedag" <<a href="mailto:robert.paschedag@web.de" onclick="parent.window.location.href='robert.paschedag@web.de'; return false;" target="_blank">robert.paschedag@web.de</a>><br/>
> An: <a href="mailto:spacewalk-list@redhat.com" onclick="parent.window.location.href='spacewalk-list@redhat.com'; return false;" target="_blank">spacewalk-list@redhat.com</a>, "Paul Robert Marino" <<a href="mailto:prmarino1@gmail.com" onclick="parent.window.location.href='prmarino1@gmail.com'; return false;" target="_blank">prmarino1@gmail.com</a>>, "Spacewalk Userlist" <<a href="mailto:spacewalk-list@redhat.com" onclick="parent.window.location.href='spacewalk-list@redhat.com'; return false;" target="_blank">spacewalk-list@redhat.com</a>><br/>
> Betreff: Re: [Spacewalk-list] Importing errata from RPM channel failes with ERROR: 'list' object has no attribute 'keys'
<div class="HOEnZb">
<div class="h5">><br/>
> Am 27. September 2017 23:58:29 MESZ schrieb Paul Robert Marino <<a href="mailto:prmarino1@gmail.com" onclick="parent.window.location.href='prmarino1@gmail.com'; return false;" target="_blank">prmarino1@gmail.com</a>>:<br/>
> >_______________________________________________<br/>
> >Spacewalk-list mailing list<br/>
> ><a href="mailto:Spacewalk-list@redhat.com" onclick="parent.window.location.href='Spacewalk-list@redhat.com'; return false;" target="_blank">Spacewalk-list@redhat.com</a><br/>
> ><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br/>
><br/>
> This is 2.7. Just upgraded from nightly. But I'm not sure, if I had this error within nightly as I was testing other stuff all time.<br/>
><br/>
><br/>
> _______________________________________________<br/>
> Spacewalk-list mailing list<br/>
> <a href="mailto:Spacewalk-list@redhat.com" onclick="parent.window.location.href='Spacewalk-list@redhat.com'; return false;" target="_blank">Spacewalk-list@redhat.com</a><br/>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br/>
></div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></div>
</div>
</div>
</div></div></body></html>