Project

Profile

Help

Issue #3435

Account for different datetime format in Suse errata

Added by jcalla almost 2 years ago. Updated 8 months ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
3. High
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
Yes
Sprint:

Description

Suse uses a different datetime format than what pulp currently expects. Instead of a formatted data and time, they use seconds since Epoch. This is preventing pulp from correctly parsing the date, leading to a blank entry.

Example: <issued date="1519129773" />

Suse's documentation on their updateinfo metadata: https://en.opensuse.org/openSUSE:Standards_Rpm_Metadata_UpdateInfo

Verification steps:
1. Sync a suse repository that contains errata.
- http://download.opensuse.org/update/openSUSE-stable/
2. Check that pulp correctly has the expected date.

History

#1 Updated by bizhang almost 2 years ago

I've talked to @ttereshc about this, issued date in pulp is just a string, so pulp store whatever is provided in the suse errata to the database. This is one errata item from SUSE in the pulp db after sync [0], note that issued date is present.

Issued date is also not used for comparison anywhere, so the different format should not be a problem.

Updated date on the other hand is used for comparison, but SUSE does not use the updated field, so that should not be an issue either.

[0] https://paste.fedoraproject.org/paste/xPVqjG3ze1VcZ7B4C8YREA

#2 Updated by dalley over 1 year ago

  • Status changed from NEW to CLOSED - NOTABUG
  • Triaged changed from No to Yes

#3 Updated by ttereshc over 1 year ago

"issued" date is not blank in Pulp database. After some discussion with reporter, this date is likey not parsed correctly by Katello, so Katello issue will be filed.

#4 Updated by bmbouter 8 months ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF