Bug 239625

Summary: yast package manager does not show correct package versions (log redirects)
Product: [openSUSE] openSUSE 10.2 Reporter: Trango Towers <trango>
Component: YaST2Assignee: Jan Kupec <jkupec>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P5 - None CC: casualprogrammer, mvidner
Version: Final   
Target Milestone: ---   
Hardware: 32bit   
OS: Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Trango Towers 2007-01-27 16:00:20 UTC
As I wanted to upgrade kde to the last version 3.5.6, I added the opensuse build repository in yast>installationsource :
http://software.opensuse.org/download/KDE:/KDE3/openSUSE_10.2/
under software management, the kde packages version indicated version (for kdebase) 3.5.5-134 instead of 3.5.6-25
I tried the same thing with other repositories (X11, xorg, etc...) and got the same problem.
Trying to install these packages gives a download error 
- - -
Don't know if this problem is due to the opensuse build service or to the yast package manager though...
Comment 1 Trango Towers 2007-01-27 16:10:54 UTC
BTW...
I get very often the problem indicated in bug239372.
Is there a conncection between these 2 bugs ?
Comment 2 Stefan Hundhammer 2007-01-29 15:47:37 UTC
What versions? What dialog? What part of that dialog?

Did you check the "Versions" tab what versions are installed, elected as candidate (that will be installed if you set that package to update or install)?

What connection do you see to bug #239372?
Comment 3 Martin Vidner 2007-01-29 15:54:22 UTC
I have reproduced the problem. It is outdated metadata, which seems to be the same problem like in bug 238095.
This is nasty, getting such problems as bugs. Christoph, can we come up with
something better?

Jano, perhaps we should log the redirects (302 Moved Temporarily) so that we
can better diagnose such problems and pinpoint the outdated server.
Comment 4 Christoph Thiel 2007-01-29 19:17:13 UTC
Martin, I think, looking redirects on the user-side makes a lot of sense, to be able to better debug those kind of problems. In addition to that, we already log redirectos on our side.

We are currently working hard improving the overall situation. One solution might be to not redirect requests for metadata files.
Comment 5 Martin Vidner 2007-02-19 09:39:08 UTC
Jano, try to log the redirects please.
Comment 6 Jan Kupec 2007-02-19 10:31:00 UTC
Marius, i see curl_easy_perform() doesn't tell anything about redirects, it only reports errors. Do you know of a way how to detect a redirect within MediaCurl without making major changes to the code? If not, i'll investigate deeper.
Comment 7 Marius Tomaschewski 2007-02-21 12:40:42 UTC
AFAIK there is no option it in curl to log redirects only except of
   export ZYPP_MEDIA_CURL_DEBUG=1
(or 2) enabling curl (header) logging in general.

The only possibility would IMO be to disable following in curl and to
follow them manually.
Comment 8 Martin Vidner 2007-02-21 12:48:56 UTC
Then perhaps we do not need to modify code and it is just enough to document the debugging variables such as ZYPP_MEDIA_CURL_DEBUG at http://en.opensuse.org/Debugging_YaST.
Comment 9 Jan Kupec 2007-02-23 17:20:19 UTC
Done.
Comment 10 Jan Kupec 2007-02-23 17:20:40 UTC
closed by accident
Comment 11 Jan Kupec 2007-02-23 17:28:28 UTC
Martin, how do these redirects work? I mean how is the target location chosen? If there's no guarantee that the redirects will lead into a synced source, then we should indeed just disable them.
Comment 12 Martin Vidner 2007-02-26 12:35:32 UTC
That is a question for the maintainers of software.opensuse.org. According to  bug 238095 comment 11 they are already disabled for metadata. So if adding logging would mean much work or risk introducing new bugs then I think that we do not need to log the redirects after all. At least until we get a new splash of bug reports :)
Comment 13 Jan Kupec 2007-05-10 18:49:56 UTC
*** Bug 251275 has been marked as a duplicate of this bug. ***
Comment 14 Jan Kupec 2007-05-10 19:13:44 UTC
Logging redirects is not an option here - we can't dig in the logs each time we get bugs like these just to close them with a "this is because redirects to mirrors that are not in sync" comment.

*** This bug has been marked as a duplicate of bug 238095 ***