Project

Profile

Help

Issue #3435

closed

Account for different datetime format in Suse errata

Added by jcalla about 6 years ago. Updated about 5 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

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.

Actions #1

Updated by bizhang about 6 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

Actions #2

Updated by dalley about 6 years ago

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

Updated by ttereshc about 6 years 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.

Actions #4

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF