Bug 434168
Summary: | exceptions.OverflowError when up2date'ing rpm bigger than 2GB | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Jan Pazdziora <jpazdziora> |
Component: | up2date | Assignee: | Sayli Karmarkar <skarmark> |
Status: | CLOSED ERRATA | QA Contact: | desktop-bugs <desktop-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 4.6 | CC: | cperry |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHBA-2008-0771 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-07-24 20:05:58 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: |
Description
Jan Pazdziora
2008-02-22 15:39:56 UTC
If I wrap that fd.read() with try except and print the exception, I get: requested number of bytes is more than a Python string can hold An error has occurred: exceptions.OverflowError So ... we use that SmartIO thingy to download the file to a temporary file in tmp, and then try to read the whole content of that tmp file into memory. Is that correct? Hmmm. Plus, that f.write(fd.read()) in /usr/share/rhn/up2date_client/repoBackends/up2dateRepo.py:214 does not look like a good approach either. It slurps the whole file into memory and then writes it to the filePath. Why can't the self.s.getPackage get another argument, the directory to which to store that temporary file, and then just do a rename in that directory? This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. If you need to generate some 2+GB rpm to test, look into bug 433795 for a spec file. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2008-0771.html |