Bug 1402124 - /usr/bin/delete-old-systems-interactive script fails with Wide character in print at line 79.
Summary: /usr/bin/delete-old-systems-interactive script fails with Wide character in p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 560
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On:
Blocks: 465198 sat58-errata sat58-nth
TreeView+ depends on / blocked
 
Reported: 2016-12-06 20:30 UTC by Camry Fedei
Modified: 2020-01-17 16:18 UTC (History)
5 users (show)

Fixed In Version: spacewalk-utils-2.5.1-28-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-05 13:57:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
add support to print multichar characters from systems (769 bytes, patch)
2016-12-06 22:40 UTC, Shannon Hughes
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0274 0 normal SHIPPED_LIVE Red Hat Satellite 5.8.0 bug fix update 2018-02-09 23:18:15 UTC

Description Camry Fedei 2016-12-06 20:30:49 UTC
Running the following command:
 # /usr/bin/delete-old-systems-interactive --idle=60d --username=xxxxname --force

Results in:
 Wide character in print at /usr/bin/delete-old-systems-interactive line 79.


Line 79 of script:
 print "System [$sys->{name}] id [$sys->{id}] last checking [$sys->{last_checkin}] ";

Found upon removing [$sys->{name}] from the above line, the script completes successfully, and customer is able to remove ~1000 client systems successfully.

Comment 2 Shannon Hughes 2016-12-06 22:40:26 UTC
Created attachment 1228688 [details]
add support to print multichar characters from systems

patch to support mutichar systems when printing to STDOUT

Comment 3 Ondrej Gajdusek 2017-06-26 14:35:01 UTC
delete-old-systems-interactive tool has been rewritten into Python. (spacewalk.git 38d22159e77353a981e313fd2ff8547989ff440e) So this bug is no longer reproducible - tested ith upstream.
However in Satellite 5.8 is still present old version written in Perl.
I've tested this patch and it works. Thank you, Shannon.
Switching to MODIFIED.

Comment 10 errata-xmlrpc 2018-02-05 13:57:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0274


Note You need to log in before you can comment on or make changes to this bug.