apache / apache/ponymail

Does not handle an invalid timezone offset well

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
80
Forks
32
PR merge metrics
No merged PRs in 30d

Description

The following message [1] has the date:

Date: Tue, 13 Jul 2004 17:09:05 -429496729500

This does not appear to be even a valid obsolete TZ specification.
As such, according to RFC2822/4.3 it should be considered as -0000.

The date appears as follows in the display:

Date: NaN-NaN-NaN NaN:NaN (+0100)

Where the date cannot be converted, it would be better to leave it as is.

[1] https://lists.apache.org/thread.html/d5d736fb78e5d99fcd9840dbfb6c21fc256bafad0864f301b9190490@15462972000545@%3Cdev.lucene.apache.org%3E

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the malformed Date header from the issue and trace the date parsing and display path in the repository; the payload names no specific file or test. Done means an invalid timezone offset is handled according to RFC 2822 as -0000, or the original date is left unchanged instead of rendering NaN values.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.