GNU bug report logs - #14128
web/http.scm: bad-header date check (UTC?)

Previous Next

Package: guile;

Reported by: Aleix Conchillo Flaqué <aconchillo <at> gmail.com>

Date: Wed, 3 Apr 2013 08:03:02 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Mark H Weaver <mhw <at> netris.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#14128: closed (web/http.scm: bad-header date check (UTC?))
Date: Tue, 19 Nov 2013 08:36:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 19 Nov 2013 03:35:23 -0500
with message-id <87ob5g3i2c.fsf <at> netris.org>
and subject line Re: bug#14128: web/http.scm: bad-header date check (UTC?)
has caused the debbugs.gnu.org bug report #14128,
regarding web/http.scm: bad-header date check (UTC?)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
14128: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14128
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Aleix Conchillo Flaqué <aconchillo <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: web/http.scm: bad-header date check (UTC?)
Date: Wed, 3 Apr 2013 00:59:03 -0700
[Message part 3 (text/plain, inline)]
Hi,

I was doing a test using gnutls and connecting to twitter api
services. Example attached.

I successfully passed the TLS/SSL part, but then I got this HTTP bad
header issue. I am running Guile 2.0.5 from Debian/unstable but
current stable-2.0 branch also suffers from the safe problem (I
think).

=============
184: 1 [read-header #<input-output: gnutls-session-port 2e94c30>]
 754: 0 [parse-asctime-date "Wed, 03 Apr 2013 07:29:49 UTC"]

web/http.scm:754:6: In procedure parse-asctime-date:
web/http.scm:754:6: Throw to key `bad-header' with args `(date "Wed,
03 Apr 2013 07:29:49 UTC")'.
=============

Basically, the problem is that web/http.scm only accepts a GMT suffix
and the twitter server sends UTC. I think the RFC 822 standard accepts
UT instead of UTC, so it would be wrong as well.

Really, not sure what's the right way to fix this considering that
even the twitter server does not send a correct day (as far as I
understood the RFC).

Thanks,

Aleix
[twitter-user-timeline.scm (application/octet-stream, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Mark H Weaver <mhw <at> netris.org>
To: Aleix Conchillo Flaqué <aconchillo <at> gmail.com>
Cc: 14128-done <at> debbugs.gnu.org
Subject: Re: bug#14128: web/http.scm: bad-header date check (UTC?)
Date: Tue, 19 Nov 2013 03:35:23 -0500
Andy Wingo agreed on IRC to accepting UTC, since we've since discovered
that not only various web servers, but also some transparent web proxies
put UTC in the date header, which was causing problems for many people.

So, I've pushed a change to stable-2.0 to accept UTC.

http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commit;h=8904b7a9362ede0de324e55701d8ea1d018f8738

I'm closing this bug now.  Thanks for the report!

      Mark


This bug report was last modified 11 years and 217 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.