Bug 45101 - DirContextURLConnection - Format Date Header Values per HTTP spec
Summary: DirContextURLConnection - Format Date Header Values per HTTP spec
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-29 13:42 UTC by Chris Hubick
Modified: 2008-06-11 13:12 UTC (History)
0 users



Attachments
Return Date header values in HTTP format (2.32 KB, patch)
2008-05-29 13:42 UTC, Chris Hubick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Hubick 2008-05-29 13:42:51 UTC
Created attachment 22035 [details]
Return Date header values in HTTP format

When you retrieve a header value from a DirContextURLConnection, it currently returns a string by simply calling .toString() on the internal object, no matter the type of that Object.  For Date value headers such as 'Last-Modified', this results in a String formatted according to Java standards, rather than the Date format specified by the HTTP standard as clients of the API would expect.

This is a follow-up to bug 44611.
Comment 1 Mark Thomas 2008-05-29 14:36:49 UTC
This has been fixed in trunk and proposed for 6.0.x

Many thanks for the patch.
Comment 2 Mark Thomas 2008-06-11 13:12:04 UTC
The patch has been committed to 6.0.x and will be in 6.0.17 onwards.

Again, thanks for the patch.