Actions
Issue #1263
closedrepomd.xml parsing fails when an empty revision tag is present
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6.2 Beta
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
The NSA SIMP 5.1.X repodata contains a <revision /> tag which busts sync
with the following splat:
Downloading metadata from https://dl.bintray.com/simp/5.1.X/.
Starting new HTTPS connection (1): dl.bintray.com
Parsing metadata.
sync failed
Traceback (most recent call last):
File ".../sync.py", line 142, in run
metadata_files = self.get_metadata()
File ".../sync.py", line 226, in get_metadata
metadata_files.parse_repomd()
File ".../metadata.py", line 165, in parse_repomd
self.revision = int(element.text)
TypeError: int() argument must be a string or a number, not 'NoneType'
Related issues
Added by roysjosh about 9 years ago
Updated by jortel@redhat.com about 9 years ago
- Assignee set to amacdona@redhat.com
Updated by amacdona@redhat.com about 9 years ago
- Status changed from NEW to POST
- Platform Release set to master
Updated by amacdona@redhat.com about 9 years ago
- Status changed from POST to MODIFIED
- Platform Release changed from master to 2.8.0
Updated by amacdona@redhat.com about 9 years ago
- Related to Issue #1357: When trying to sync a repository i get "int() argument must be a string or a number, not 'NoneType'" added
Updated by dkliban@redhat.com over 8 years ago
- Status changed from MODIFIED to 5
Updated by ipanova@redhat.com over 8 years ago
- Has duplicate Issue #1746: Beta 2.8.0-0.7, RPM1004 - Error retrieving metadata: Not found added
Updated by dkliban@redhat.com over 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
Fix repomd.xml parsing with an empty revision tag
The NSA SIMP 5.1.X repodata contains a tag which busts sync with the following splat:
Downloading metadata from https://dl.bintray.com/simp/5.1.X/. Starting new HTTPS connection (1): dl.bintray.com Parsing metadata. sync failed Traceback (most recent call last): File ".../sync.py", line 142, in run metadata_files = self.get_metadata() File ".../sync.py", line 226, in get_metadata metadata_files.parse_repomd() File ".../metadata.py", line 165, in parse_repomd self.revision = int(element.text) TypeError: int() argument must be a string or a number, not 'NoneType'
closes #710 https://pulp.plan.io/issues/1263