New branch 'IDN' available with the following commits:
commit 5ace7918cdb026a1c4d362ddd2c8dc2dbc375ac9
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Mar 11 17:37:06 2011 +0100
set envelope From to traceback email
This is relict from BZ 132067
addressing:
Standard-error: ERROR: upon attempt to write to log file: 'ascii' codec
can't encode character u'\u017e' in position 65: ordinal not in
range(128)ERROR: upon attempt to write to log file: 'ascii' codec can't encode
character u'\u017e' in position 119: ordinal not in range(128)Traceback (most
recent call last):
File "/usr/bin/satellite-sync", line 175, in ?
systemExit_exception(7, "SYNC ERROR: attempting to display as much
information as possible:", e)
File "/usr/bin/satellite-sync", line 125, in systemExit_exception
satsync.sendMail(forceEmail=1)
File
"/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line
362, in sendMail
rhnMail.send(headers, body, sender=sndr)
File "/usr/lib/python2.4/site-packages/spacewalk/common/rhnMail.py", line
57, in send
server.sendmail(sender, toaddrs, "%s\n%s\n" % (joined_headers, body))
File "/usr/lib64/python2.4/smtplib.py", line 680, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (553, '5.5.4 <rhn-satellite>... Domain name
required for sender address rhn-satellite', 'rhn-satellite')
commit 2a50468070cda34630f223d71595ed298174a5cd
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Mar 11 16:50:55 2011 +0100
683200 - instead of encodings.idna use wrapper from rhn.connections, which workaround
corner cases
commit e3918f527f3f24377e111fbd461ebe55f90873e7
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Mar 11 13:28:38 2011 +0100
683200 - refactor rhnMail to use python smtplib
rhnMail has problem sending unicode characters, instead of fixing this I choosed
to use python standard module
addressing:
Standard-error: ERROR: upon attempt to write to log file: 'ascii' codec
can't encode character u'\u017e' in position 65: ordinal not in
range(128)ERROR: upon attempt to write to log file: 'ascii' codec can't encode
character u'\u017e' in position 119: ordinal not in range(128)Traceback (most
recent call last):
File "/usr/bin/satellite-sync", line 175, in ?
systemExit_exception(7, "SYNC ERROR: attempting to display as much
information as possible:", e)
File "/usr/bin/satellite-sync", line 125, in systemExit_exception
satsync.sendMail(forceEmail=1)
File
"/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line
362, in sendMail
rhnMail.send(headers, body, sender=sndr)
File "/usr/lib/python2.4/site-packages/spacewalk/common/rhnMail.py", line
71, in send
os.write(write, "\n%s\n" % body)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u017e'
in position 48: ordinal not in range(128)
commit 72aa15828a843cd2ffef5290f814879c8078f894
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Mar 11 11:29:55 2011 +0100
683200 - cStringIO could not handle Unicode
addressing:
Standard-error: ERROR: upon attempt to write to log file: 'ascii' codec
can't encode character u'\u017e' in position 65: ordinal not in
range(128)ERROR: upon attempt to write to log file: 'ascii' codec can't encode
character u'\u017e' in position 119: ordinal not in range(128)Traceback (most
recent call last):
File "/usr/bin/satellite-sync", line 175, in ?
systemExit_exception(7, "SYNC ERROR: attempting to display as much
information as possible:", e)
File "/usr/bin/satellite-sync", line 120, in systemExit_exception
syncLib.log2email(-1, tb)
File
"/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/syncLib.py", line
119, in log2email
log2stream(level, msg, cleanYN, notimeYN, EMAIL_LOG)
File
"/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/syncLib.py", line
110, in log2stream
stream.write(_prepLogMsg(m, cleanYN, notimeYN, shortYN=1) + '\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u017e'
in position 101: ordinal not in range(128)
commit f24311f217d1da8f7a96f9102eac6456f9d579a4
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Thu Mar 10 11:07:57 2011 +0100
683200 - since email may be in Unicode we could not use cStringIO and we should set
content type to utf-8
commit 808f87865367c408833bf8786c2182a373ea6698
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Wed Mar 9 12:20:01 2011 +0100
683200 - when reading hostname from config or command line, convert it to Pune
encoding
commit e1a60b18082afc2b631b55993bcb65e6dc12940f
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Wed Mar 9 16:00:56 2011 +0100
683200 - when sending Traceback, convert hostname from Pune to Unicode
commit e009b89eaa5dbb09aecf7ee4f1d9ccd37597a262
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 23:42:37 2011 +0100
683200 - client/rhn-client-tools - when making profile name from hostname, convert it
from Pune encoding
commit 9cf77b6e8e9f30baf2992a446da16918bc319a12
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 23:42:05 2011 +0100
683200 - client/solaris - when making profile name from hostname, convert it from Pune
encoding
commit 17194f4c15c78009fd62de71d50ac4415e820a5f
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 23:40:41 2011 +0100
683200 - rhnpush.py - convert servername from input to Pune encodings
commit 0e28df76babfc483f73aeac1686fc4580e167ef0
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 23:39:58 2011 +0100
683200 - spacewalk-create-channel - convert servername from input to Pune encodings
commit 869118314e510a3f86e046d465e6d8548eff68c8
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 21:41:21 2011 +0100
683200 - convert db-host from IDN to ascii
db will not probably support it - definitelly Oracle,
but we can be step ahead