all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#19799: Tangentally related to eww-mode Invalid Date bug just filed
@ 2015-02-07  5:15 Matthew Carter
  2015-02-08 19:28 ` Paul Eggert
  0 siblings, 1 reply; 12+ messages in thread
From: Matthew Carter @ 2015-02-07  5:15 UTC (permalink / raw)
  To: 19799

Excuse the new thread (just signed up to bug-gnu-emacs list, whereas I
filed the original bug via the report function).

I've pinpointed the eww-mode bug to an issue with #'date-to-time in
time-date.el.

It appears to be a manifestation of the Year 2038 problem and caused by
the fact that the cookie being sent has an expiration date beyond year
2038.

As it turns out, I am unable to reproduce the issue on a 64-bit machine
(it only happens on my 32-bit ones).

Would it be better to rework #'date-to-time to handle future dates in a
more graceful manner on 32-bit machines, or to have eww-mode ignore
triggers that cause it to parse dates it cannot handle?

-- 
Matthew Carter (m@ahungry.com)
http://ahungry.com





^ permalink raw reply	[flat|nested] 12+ messages in thread
* bug#19798: 24.4; eww-mode error in process sentinel 'Invalid date' when receiving a valid date
@ 2015-02-07  4:49 Matthew Carter
  2015-02-07  8:17 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Matthew Carter @ 2015-02-07  4:49 UTC (permalink / raw)
  To: 19798

When running eww-mode and visiting a site using a cookie expiration date
set to "Mon, 06 Mar 2130 20:55:03 GMT" eww-mode will fail to load
subsequent URLs on the domain (in this case http://ahungry.com) and
instead simply print the following message in the echo area:

error in process sentinel: Invalid date: Mon, 06 Mar 2130 20:55:03 GMT

According to Wikipedia and other sources I can find online regarding the
HTTP cookie expires field, this date format is valid
(https://en.wikipedia.org/wiki/HTTP_cookie) and should not be causing 
an error in the process sentinel (and even if some site sent an invalid
date, I don't think it should halt further site interaction, but either
ignore the invalid date, or ignore the cookie).

Steps to reproduce under emacs -Q:

eww
ahungry.com
RET
TAB
TAB
RET

You'll then see the error pop up (instead of visiting the Blog link on
the site).

-- 
Matthew Carter (m@ahungry.com)
http://ahungry.com





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-02-09  6:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-07  5:15 bug#19799: Tangentally related to eww-mode Invalid Date bug just filed Matthew Carter
2015-02-08 19:28 ` Paul Eggert
2015-02-08 20:25   ` Matthew Carter
2015-02-09  2:45     ` bug#19798: 24.4; eww-mode error in process sentinel 'Invalid date' when receiving a valid date Paul Eggert
2015-02-09  2:50     ` bug#19799: Tangentally related to eww-mode Invalid Date bug just filed Paul Eggert
2015-02-09  3:14       ` Matthew Carter
2015-02-09  6:29         ` bug#19798: " Paul Eggert
  -- strict thread matches above, loose matches on Subject: below --
2015-02-07  4:49 bug#19798: 24.4; eww-mode error in process sentinel 'Invalid date' when receiving a valid date Matthew Carter
2015-02-07  8:17 ` Eli Zaretskii
2015-02-07 13:46 ` Matthew Carter
2015-02-08 19:30 ` Paul Eggert
2015-02-08 20:29   ` Matthew Carter

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.