Menu

#1592 mingw-get.exe: unexpected status: code = 304

INSTALLER
open
None
Bug
none
Waiting_User_Response
True
2014-07-21
2011-11-03
No

Hi there,

behind a proxy (squid/2.6.STABLE5) I tried yesterday and today (3.Nov.2011)
to install MinGW with mingw-get-inst-20110802.exe on Windows XP prof SP3 as Administrator into a new not existent directory (c:\MinGW).

I choose the option "Use pre-packaged repository catalogues 20110802"

I selected the components C Compiler, C++ Compiler, Fortran Compiler and ObjCC Compiler.

From the mingw-get process I got warnings and error messages while downloading this two files:
gcc-4.5.2-1-mingw32-lic.tar.lzma
gcc-fortran-4.5.2-1-mingw32-bin.tar.lzma

After ending of the installation process these files are missing in C:\MinGW\var\cache\mingw-get\packages .

The concrete messages are:

************************
gcc-4.5.2-1-mingw32-lic.tar.lzma:
************************
mingw-get.exe: *** WARNING *** http://prdownloads.sourceforge.net/mingw/gcc-4.5.2-1-mingw32-lic.tar.lzma?download: opened with unexpected status: code = 304
mingw-get.exe: *** WARNING *** please report this to the mingw-get maintainer
mingw-get.exe: *** ERROR *** Get package: http://prdownloads.sourceforge.net/mingw/gcc-4.5.2-1-mingw32-lic.tar.lzma?download: download failed
************************

************************
gcc-fortran-4.5.2-1-mingw32-bin.tar.lzma
************************
mingw-get.exe: *** WARNING *** http://prdownloads.sourceforge.net/mingw/gcc-fortran-4.5.2-1-mingw32-bin.tar.lzma?download: opened with unexpected status: code = 304
mingw-get.exe: *** WARNING *** please report this to the mingw-get maintainer
mingw-get.exe: *** ERROR *** Get package: http://prdownloads.sourceforge.net/mingw/gcc-fortran-4.5.2-1-mingw32-bin.tar.lzma?download: download failed
************************

I think there shouldn't be a "If-Modified-Since" in HTTP-Header
at the GET command in the first mingw-get run, because in
C:\MinGW\var\cache\mingw-get\packages
there are no files at first.

In the attached files you can see

mingw-get-inst.txt: mingw-get's messages (copy & paste)

lic1.txt: wireshark's protocoll of
GET http://dfn.dl.sourceforge.net/project/mingw/MinGW/BaseSystem/GCC/Version4/gcc-4.5.2-1/gcc-4.5.2-1-mingw32-lic.tar.lzma HTTP/1.0\r\n

lic1a.txt: wireshark's protocoll of the response.

Best regards,
Robert Hartmann (Germany)

Discussion

<< < 1 2 (Page 2 of 2)
  • Robert Hartmann

    Robert Hartmann - 2011-12-06

    Hi Keith,

    I havn't forgot my promise, to help with debugging.
    I thought about some test cases. For that I am now programming a "small" IE 6 Cache Editor (Win XP), so that I am able to simulate some situations.

    Best regards,
    Robert

     
    • Robert Hartmann

      Robert Hartmann - 2017-03-31

      Hi Keith,
      I did not forgot my promise. Programming this "small" IE 6 Cache Editor for becoming able to
      simulate some Network-messages or manipulating existent IEcache-Entries took (and takes up
      to now) much more time, than I thought about 5 years ago.
      My Editor can search for or delete IE-cache entries.
      As soon as my editor can insert and update entries with fake information I am well prepared for
      doing more analyse.
      Best regards,
      Robert

       
  • Earnie Boyd

    Earnie Boyd - 2013-01-21
    • resolution: --> none
    • category: --> Waiting_User_Response
    • milestone: Waiting_User_Response --> INSTALLER
     
  • Earnie Boyd

    Earnie Boyd - 2013-02-08
    • labels: mingw-get -->
    • type: --> Bug
    • patch_attached: --> False
     
  • Sebastian Schuberth

    Any progress update on this issue? I'm seeing it, too, when I'm behind a proxy server. Seems like there's bug in mingw-get to retrieve contents from IE's local cache when HTTP status code 304 is received from the proxy server.

     
    • Earnie Boyd

      Earnie Boyd - 2013-04-10

      Sebastian, have you tried the alpha candidate? You can find it at https://sourceforge.net/projects/keithmarshall.u/files/mingw-get/ to give it a try.

       
    • Keith Marshall

      Keith Marshall - 2013-04-10

      Well, I contend that the bug lies within Microsoft's wininet.dll, and not within mingw-get.exe; if wininet.dll is going to, by default, insist on looking for existing cached content, (by gratuitous interposition of If-Modified-Since headers into my InternetOpenUrl requests), then it should also transparently, and by default, satisfy my InternetReadFile requests from said cache; it should not force me to run around in circles, cleaning up after its gross ineptitude. That said, perhaps mingw-get.exe could be more proactive in handling the situation.

      I do wonder why, in all the time mingw-get.exe has been "out in the wild", only two users worldwide seem to be afflicted by this issue. I am not, so it is difficult for me to effectively test possible solutions. I did offer a tentative patch, (attached to this ticket), but there has been no further action, pending testing by the OP, or another user who does experience the issue; (I see little advantage in applying a patch without confirmation that it does provide an effective solution).

      Beyond this, I am willing to consider patches, but I wonder if a simpler solution may not be to add any, or all of:--

      INTERNET_FLAG_RELOAD, 
      INTERNET_FLAG_PRAGMA_NOCACHE, 
      INTERNET_FLAG_NO_CACHE_WRITE, 
      
      and (unrelated, but maybe also useful) 
      INTERNET_FLAG_KEEP_CONNECTION.
      

      to the attributes specified for the InternetOpenUrl() request. However, without feedback from affected users, this issue isn't likely to be resolved any time soon.

       

      Last edit: Keith Marshall 2013-04-10
  • Keith Marshall

    Keith Marshall - 2013-04-10
    • Patch attached: False --> True
     
  • Sebastian Schuberth

    Sorry for the late response. Unfortunately, I'm unable to reliably reproduce the issue. However, I managed to reproduce it once from my home PC which is not behind a proxy. But I got the 304 error only for my own custom packages that are hosted on my Dropbox account; other upstream packages hosted on SF were downloaded just fine. So Dropbox probably also implements some proxy-like tricks to avoid transferring files again.

     
    • Earnie Boyd

      Earnie Boyd - 2013-04-22

      Why are you using Dropbox for your custom packages? You have a SF account, so use the tools under http://sf.net/u/eyebex instead for your custom packages. I really dislike Dropbox.

       
  • Sebastian Schuberth

    Because I in turn started to dislike SF. It has become incredibly slow over the years, and the UI is way to wasteful on screen space. Also, SF has not defined contribution workflow (like GitHub's pull requests, for example). And so on.

    Dropbox is just convenient to use while I'm still testing my packages. I'm planning to host them on Bintray [1] when I'm ready.

    But I guess this is all off-topic. mingw-get should work just fine nonetheless.

    [1] https://bintray.com/repo/browse/sschuberth/mingwGitDevEnv

     
<< < 1 2 (Page 2 of 2)