<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hello,<div>I found the problem!</div><div>0xa9 is indeed an incorrect UTF8 encoding. This is the copyright logo.</div><div>Which put on the path to the resolution:</div><div>In spacewalk 1.5, the file path are checked against incorrect encoding... put not the license field.</div><div>So the issue is in file /usr/lib/python2.4/site-packages/spacewalk/server/importlib/packageImport.py, line 218</div><div><br></div><div><div> # Change copyright to license</div><div>    219         # XXX</div><div>    220         license_fixed = self._fix_encoding(package['license'])</div><div>    221         package['copyright'] = license_fixed</div><div>    222         #package['copyright'] = package['license']</div></div><div> </div><div><br></div><div>I know this is not the right mailing list for this kind of topic.</div><div>I'm not a developper, so sorry for the quality of the code!</div><div><br></div><div>I'm completing bug 658296 with these information</div><div><br></div><div>Pierre<br><br><div><hr id="stopSpelling">From: pedro109@hotmail.com<br>To: spacewalk-list@redhat.com<br>Date: Fri, 22 Jul 2011 10:30:55 +0000<br>Subject: Re: [Spacewalk-list] Error 500 when using rhnpush<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>

<div dir="ltr">
<font class="ecxApple-style-span" face="Tahoma" size="2">I continued to dig around this problem.</font><div style="font-family:Tahoma;font-size:10pt">So I found bug 658296 on bugzilla, for the same error, but with package aspell-is.</div><div style="font-family:Tahoma;font-size:10pt">With spacewalk 1.5, I can rhnpush this package correctly.</div><div style="font-family:Tahoma;font-size:10pt">But I still fail to import package redhat-logos.</div><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">But I wonder if the problem is really the same:</div><div style="font-family:Tahoma;font-size:10pt">In bug 658296, the error is : <span class="ecxApple-style-span" style="font-family:monospace;white-space:pre-wrap;font-size:12pt">DataError: invalid byte sequence for encoding "UTF8": 0xed736c</span></div><div style="font-family:Tahoma;font-size:10pt">This is an encoding error.</div><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">On redhat-logos, I get : DataError: invalid byte sequence for encoding "UTF8": 0xa9</div><div style="font-family:Tahoma;font-size:10pt">0xa9 is a correct UTF-8 encoding.</div><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">Could someone try to push redhat-logos-4.9.16-1.noarch.rpm from RHEL 5.6 DVD ISO, please?</div><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">By the way, I think you can close bug 658296<span class="ecxApple-style-span" style="font-family:Tahoma;font-size:13px"> </span></div><div style="font-family:Tahoma;font-size:10pt"><span class="ecxApple-style-span" style="font-family:Tahoma;font-size:13px"><br></span></div><div style="font-family:Tahoma;font-size:10pt"><span class="ecxApple-style-span" style="font-family:Tahoma;font-size:13px">Thanks,</span></div><div style="font-family:Tahoma;font-size:10pt"><br><br><div><hr id="ecxstopSpelling">From: pedro109@hotmail.com<br>To: spacewalk-list@redhat.com<br>Date: Fri, 22 Jul 2011 05:43:15 +0000<br>Subject: Re: [Spacewalk-list] Error 500 when using rhnpush<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>

<div dir="ltr">
Hello,<div>I've upgraded to spacewalk 1.5 last night... and I still have the same issue:</div><div><div>Exception Handler Information</div><div>Traceback (most recent call last):</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/apacheUploadServer.py", line 100, in _wrapper</div><div>    ret = function(req)</div><div>  File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py", line 136, in handler</div><div>    relative_path=self.rel_package_path, org_id=self.org_id)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnPackageUpload.py", line 166, in push_package</div><div>    importer.run()</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/importLib.py", line 625, in run</div><div>    self.submit()</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/packageImport.py", line 309, in submit</div><div>    transactional=self.transactional)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 667, in processPackages</div><div>    transactional=transactional)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1515, in __processObjectCollection__</div><div>    return self.__doDML(dml)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1623, in __doDML</div><div>    self.__doInsert(dml.insert, dml.tables)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1630, in __doInsert</div><div>    self.__doInsertTable(tname, dict)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1644, in __doInsertTable</div><div>    insertObj.query(hash)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backendLib.py", line 433, in query</div><div>    executeStatement(statement, values, self.count)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backendLib.py", line 463, in executeStatement</div><div>    count = count + apply(statement.executemany, (), tempdict)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 172, in executemany</div><div>    return apply(self._execute_wrapper, (self._executemany, ) + p, kw)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 264, in _execute_wrapper</div><div>    retval = apply(function, p, kw)</div><div>  File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 300, in _executemany</div><div>    self._real_cursor.executemany(self.sql, all_kwargs)</div><div>DataError: invalid byte sequence for encoding "UTF8": 0xa9</div><div>HINT:  This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".</div><div><br></div><div>Maybe my postgresql installation is incorrect?</div><div><br></div><div>Thanks in advance for your help</div><br><div><hr id="ecxstopSpelling">From: pedro109@hotmail.com<br>To: spacewalk-list@redhat.com<br>Date: Tue, 19 Jul 2011 06:24:18 +0000<br>Subject: Re: [Spacewalk-list] Error 500 when using rhnpush<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>

<div dir="ltr">
<font class="ecxApple-style-span" face="Tahoma" size="2">Hello,</font><div style="font-family:Tahoma;font-size:10pt">I've just applied the patch on file /usr/lib/python2.4/site-packages/spacewalk/server/importlib/packageImport.py and recompiled it this way:</div><div><font class="ecxApple-style-span" face="Tahoma" size="2">python -O -mpy_compile /usr/lib/python2.4/site-packages/spacewalk/server/importlib/packageImport.py</font></div><div><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="ecxApple-style-span" face="Tahoma" size="2">Then, I restarted the spacewalk server.</font></div><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">But rhnpush of redhat-logos rpm still fails with the same exception (except that the line number changes in the traceback in file packageImport.py)</div><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">Is there something else to do to have the patch applied?</div><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">Thanks,</div><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt"><br><br><div>> Date: Wed, 13 Jul 2011 16:33:04 +0200<br>> From: jpazdziora@redhat.com<br>> To: spacewalk-list@redhat.com<br>> Subject: Re: [Spacewalk-list] Error 500 when using rhnpush<br>> <br>> On Wed, Jul 13, 2011 at 01:13:25PM +0000, Pierre Casenove wrote:<br>> > <br>> > Hello,Before executing yum pugrade on the latest nightly build, I want to be quite sure I won't break everything.Do I need to follow https://fedorahosted.org/spacewalk/wiki/HowToUpgrade instructions? As these instruction are for 1.4, I prefer to ask.<br>> <br>> You only want to move to nightly if you know what you are doing, while<br>> understanding that we do not provide a way to upgrade *from* nightly<br>> to any newer release, nor among nightlies.<br>> <br>> If all you want is fix the rhnpush issue, I recommend you just patch<br>> your 1.4 installation with the patch Michael has indicated.<br>> <br>> -- <br>> Jan Pazdziora<br>> Principal Software Engineer, Satellite Engineering, Red Hat<br>> <br>> _______________________________________________<br>> Spacewalk-list mailing list<br>> Spacewalk-list@redhat.com<br>> https://www.redhat.com/mailman/listinfo/spacewalk-list<br></div></div>                                        </div>
<br>_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list</div></div>                                    </div>
<br>_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list</div></div>                                    </div>
<br>_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list</div></div>                                    </div></body>
</html>