Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 9415] summon could stand to have some sanity checking

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 9415] summon could stand to have some sanity checking
  • Date: Sun, 7 Aug 2005 16:32:17 -0700 (PDT)

http://bugs.sourcemage.org/show_bug.cgi?id=9415





------- Additional Comments From jblosser-smgl AT firinn.org 2005-08-07 16:32
-------
(In reply to comment #1)
> The main problem is, wget doesnt recognize that as an error (and it should
> IMO).

They aren't going to be seen as errors because they are HTTP status code 200,
which means the server said "this is the file you wanted, we are done". HTTP
200 is like a 0 exit code in shell.

> I think curl might be able to treat those cases as errors as they are
> usually
> accompanied by an http redirect.

HTTP redirects would usually be status code 301 or 302.

> 0 byte files could easily be special cased, an html page although not common
> might be a legitimate thing to download.

Right, I'm not suggesting we would want summon to assume something is wrong
just
because the file type isn't tar-compressed. We would only want it to think
something was wrong if it was requesting a tar.gz and got back an HTML page
(or
was requesting an HTML page and got back a tar.gz).


--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page