You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Roman Kalukiewicz (JIRA)" <ji...@apache.org> on 2009/03/26 16:46:10 UTC
[jira] Created: (CXF-2134) ResponseBuilder implementation sets date
headers with Date.toString() method
ResponseBuilder implementation sets date headers with Date.toString() method
----------------------------------------------------------------------------
Key: CXF-2134
URL: https://issues.apache.org/jira/browse/CXF-2134
Project: CXF
Issue Type: Bug
Components: REST
Affects Versions: 2.2
Reporter: Roman Kalukiewicz
{{expires()}} and {{lastModified()}} methods of {{ResponseBuilderImpl}} sets response headers with {{Date.toString()}} method, while they should obey time format specified by RFC1123.
This means that the date should be formated like
{code}
new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH).format(expires);
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-2134) ResponseBuilder implementation sets
date headers with Date.toString() method
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin reassigned CXF-2134:
-------------------------------------
Assignee: Sergey Beryozkin
> ResponseBuilder implementation sets date headers with Date.toString() method
> ----------------------------------------------------------------------------
>
> Key: CXF-2134
> URL: https://issues.apache.org/jira/browse/CXF-2134
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2
> Reporter: Roman Kalukiewicz
> Assignee: Sergey Beryozkin
> Fix For: 2.2.1
>
>
> {{expires()}} and {{lastModified()}} methods of {{ResponseBuilderImpl}} sets response headers with {{Date.toString()}} method, while they should obey time format specified by RFC1123.
> This means that the date should be formated like
> {code}
> new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH).format(expires);
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2134) ResponseBuilder implementation sets
date headers with Date.toString() method
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689577#action_12689577 ]
Sergey Beryozkin commented on CXF-2134:
---------------------------------------
fix will go shortly - though the format is created slightly differently
{code}
public static SimpleDateFormat getHttpDateFormat() {
SimpleDateFormat dateFormat =
new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
TimeZone tZone = TimeZone.getTimeZone("GMT");
dateFormat.setTimeZone(tZone);
return dateFormat;
}
{code}
I reckon it's correct, right ?
> ResponseBuilder implementation sets date headers with Date.toString() method
> ----------------------------------------------------------------------------
>
> Key: CXF-2134
> URL: https://issues.apache.org/jira/browse/CXF-2134
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2
> Reporter: Roman Kalukiewicz
>
> {{expires()}} and {{lastModified()}} methods of {{ResponseBuilderImpl}} sets response headers with {{Date.toString()}} method, while they should obey time format specified by RFC1123.
> This means that the date should be formated like
> {code}
> new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH).format(expires);
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-2134) ResponseBuilder implementation sets
date headers with Date.toString() method
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-2134.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.2.1
> ResponseBuilder implementation sets date headers with Date.toString() method
> ----------------------------------------------------------------------------
>
> Key: CXF-2134
> URL: https://issues.apache.org/jira/browse/CXF-2134
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2
> Reporter: Roman Kalukiewicz
> Assignee: Sergey Beryozkin
> Fix For: 2.2.1
>
>
> {{expires()}} and {{lastModified()}} methods of {{ResponseBuilderImpl}} sets response headers with {{Date.toString()}} method, while they should obey time format specified by RFC1123.
> This means that the date should be formated like
> {code}
> new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH).format(expires);
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.