Bug 207291

Summary: smart reads corrupted data from cache
Product: [openSUSE] openSUSE 10.3 Reporter: Forgotten User sxozS5NPY1 <forgotten_sxozS5NPY1>
Component: OtherAssignee: Christoph Thiel <cthiel>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: andreas.hanke, crrodriguez, mrueckert, pascal.bleser
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User sxozS5NPY1 2006-09-21 08:50:21 UTC
When data is corrupted in the cache (e.g. because of wrong metadata on some server), the metadata is not downloaded in the next run (becuase it may be fixed) but read from the cache where it's ALWAYS corrupted. So the only way is to manually delete the cache to solve the problem.
Comment 1 Marcus Rückert 2006-09-21 08:52:48 UTC
[[[
 smart update
Traceback (most recent call last):                                   ################################################################################################  ( 99%)
  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib64/python2.4/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib64/python2.4/site-packages/smart/commands/update.py", line 77, in main
    ctrl.reloadChannels()
  File "/usr/lib64/python2.4/site-packages/smart/control.py", line 375, in reloadChannels
    self._cache.load()
  File "/usr/lib64/python2.4/site-packages/smart/backends/rpm/metadata.py", line 321, in loadFileProvides
    self.parseFilesList(fndict)
  File "/usr/lib64/python2.4/site-packages/smart/backends/rpm/metadata.py", line 346, in parseFilesList
    for event, elem in cElementTree.iterparse(file, ("start", "end")):
  File "<string>", line 64, in __iter__
SyntaxError: not well-formed (invalid token): line 479344, column 58
]]]

the stacktrace shows it already fails on reading the cache.
Comment 2 Forgotten User hF2Xo_CmFP 2006-09-22 11:15:10 UTC
there was a update off smart true apt-get, but the problems are still there.
Comment 3 Christoph Thiel 2006-11-12 16:16:53 UTC
Something for the 10.3 timeframe.
Comment 4 Christoph Thiel 2007-02-16 12:47:33 UTC
Closing as LATER for now. Needs to be fixed upstream.
Comment 5 Bugzilla Account Maintenance 2008-09-02 18:07:46 UTC
Because the LATER and REMIND resolutions have been removed, the resolution of this bug has changed from LATER to WONTFIX. If this bug needs to be reconsidered, reopen it and set a future "Target Milestone for Fix."