Bug 570925

Summary: Date in Daily Status Report subject is incorrectly formatted
Product: Red Hat Satellite 5 Reporter: Brandon Davidson <brandond>
Component: ServerAssignee: Šimon Lukašík <slukasik>
Status: CLOSED ERRATA QA Contact: Matej Kollar <mkollar>
Severity: medium Docs Contact:
Priority: low    
Version: 530CC: cperry, mkollar, slukasik, tlestach, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: spacewalk-java-1.2.39-110 Doc Type: Bug Fix
Doc Text:
Consequence: Daily Status Report mail contained both date and time of report in a subject line. Result: Daily Status Report mail contains only date of report.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-31 01:55:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 715348    

Description Brandon Davidson 2010-03-05 21:05:27 UTC
Description of problem:
Full date (including hh:mm:ss and timezone) is included in Daily Status Report subject line.

Per com/redhat/rhn/frontend/strings/template/StringResource_en_US.xml, argument 0 to dailysummary.email.subject should be "current time in short format". Unfortunately, queueOrgEmails in com/redhat/rhn/taskomatic/task/DailySummary.java calls ls.formatDate instead of ls.formatShortDate.

Version-Release number of selected component (if applicable):
spacewalk-java-0.5.44-66.el5sat

How reproducible:
Trivially.

Steps to Reproduce:
1. Enable daily status reports.
2. Perform an action that triggers a status report.
3. View subject line in e-mail client  

Actual results:
Subject is "UO RHN Satellite Daily Status Report for 3/5/10 5:00:01 AM PST"

Expected results:
Subject is "UO RHN Satellite Daily Status Report for 2010-03-05"

Additional info:
May be fixed upstream. Not sure, but it seems likely. The same long date format is also used in the report body, but that may be acceptable.

Comment 3 Šimon Lukašík 2011-08-16 08:23:36 UTC
spacewalk.git 19b29f1e22c892d87b553d3ed2c0eef98ccf52ab

Comment 6 Šimon Lukašík 2012-01-09 15:21:17 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Consequence:
Daily Status Report mail contained both date and time of report in a subject line.

Result:
Daily Status Report mail contains only date of report.

Comment 8 errata-xmlrpc 2012-01-31 01:55:53 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.

http://rhn.redhat.com/errata/RHBA-2012-0072.html